更新时间:2023-05-31 GMT+08:00
分享

SDK配置

SDK在不同环境下支持的实例安全机制如下:
  • Windows环境:ECDSA
  • Linux环境:ECDSA
  • 环境需要安装openssl
  • 目前仅支持共享版数字资产链的调用

SDK中相关方法的使用示例,可参考应用程序的示例Samples/sample1.php(dac-php-sdk下载地址)。

  1. 项目安装依赖。
    composer install
  2. 配置时区
    php.ini中设置时区为国内
    date.timezone = asia/shanghai
  3. 配置openssl Config(可选)
    在DAC 配置文件conf.yaml中增加
    # windows
    opensslCnf: D:\xampp\php\extras\ssl\openssl.cnf
    # linux
    opensslCnf: /root/openssl.cnf 
分享:

    相关文档

    相关产品