예제 #1
0
 public HashLock(SecretHash secretHash, string address) : this()
 {
     SecretHash = secretHash;
     Address    = address;
 }
        private static Internals.HashLock CreateHashLock(HashLock declaration)
        {
            var secretHash = new Internals.SecretHash(declaration.SecretHash.Type, Convert.ToBase64String(declaration.SecretHash.Hash.Bytes));

            return(new Internals.HashLock(secretHash, declaration.Address.Encoded));
        }