Ejemplo n.º 1
0
 /// <summary>
 /// Ctor
 /// </summary>
 public AntChainHelper(string accessId, string accessKey, string tenantId, string account, string mykmsKeyId)
 {
     Config            = new AntChainConfig();
     Config.AccessId   = accessId;
     Config.AccessKey  = accessKey;
     Config.TenantId   = tenantId;
     Config.Account    = account;
     Config.MykmsKeyId = mykmsKeyId;
     RefreshAccessToken();
 }
Ejemplo n.º 2
0
 private SinoChainHelper()
 {
     config = new AntChainConfig()
     {
         AccessId   = "UaP57TiaLEUNSLQR",
         AccessKey  = GetAccessKey(),
         TenantId   = "LEUNSLQR",
         Account    = "sinocloud",
         MykmsKeyId = "X16U3lOwLEUNSLQR1596598416300",
     };
     chainHelper = new AntChainHelper(config);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Ctor
 /// </summary>
 public AntChainHelper(AntChainConfig config)
 {
     this.Config = config;
     RefreshAccessToken();
 }