Exemplo n.º 1
0
 private PrivateKeyAccount(byte[] privateKey, char scheme)
 {
     this.scheme     = scheme;
     publicKey       = GetPublicKeyFromPrivateKey(privateKey);
     address         = AddressEncoding.GetAddressFromPublicKey(publicKey, scheme);
     this.privateKey = privateKey;
 }
Exemplo n.º 2
0
        public override DictionaryObject GetJson()
        {
            var result = new DictionaryObject
            {
                { "type", (byte)TransactionType.Alias },
                { "senderPublicKey", SenderPublicKey.ToBase58() },
                { "alias", Alias },
                { "fee", Assets.WAVES.AmountToLong(Fee) },
                { "timestamp", Timestamp.ToLong() }
            };

            if (Sender != null)
            {
                result.Add("sender", AddressEncoding.GetAddressFromPublicKey(SenderPublicKey, ChainId));
            }

            return(result);
        }
Exemplo n.º 3
0
 private PrivateKeyAccount(byte[] privateKey, char scheme)
 {
     _publicKey  = GetPublicKeyFromPrivateKey(privateKey);
     Address     = AddressEncoding.GetAddressFromPublicKey(PublicKey, scheme);
     _privateKey = privateKey;
 }