public override GetAddressInfoResponse LoadFromJson(JObject raw, Network network)
 {
     base.LoadFromJson(raw, network);
     Confidential    = new BitcoinBlindedAddress(raw.Property("confidential").Value.Value <string>(), network);
     Unconfidential  = BitcoinAddress.Create(raw.Property("unconfidential").Value.Value <string>(), network);
     ConfidentialKey = new PubKey(raw.Property("confidential_key").Value.Value <string>());
     return(this);
 }
예제 #2
0
 public override bool TryParse(string str, Network network, Type targetType, out IBitcoinString result)
 {
     if (typeof(BitcoinAddress).GetTypeInfo().IsAssignableFrom(targetType.GetTypeInfo()))
     {
         try
         {
             result = new BitcoinBlindedAddress(str, network);
             return(true);
         }
         catch
         {
         }
     }
     return(base.TryParse(str, network, targetType, out result));
 }
 public static Task <RPCResponse> ImportBlindingKey(this RPCClient rpcClient,
                                                    BitcoinBlindedAddress bitcoinBlindedAddress, Key blindingKey)
 {
     return(rpcClient.SendCommandAsync(ElementsRPCOperations.importblindingkey,
                                       bitcoinBlindedAddress.ToString(), blindingKey.ToHex()));
 }