コード例 #1
0
        public Task <string> SignTransactionAsync(IEthECKeyExternalSigner externalSigner, BigInteger chainId, string to, BigInteger amount,
                                                  BigInteger nonce, string data)
        {
            var transaction = new TransactionChainId(to, amount, nonce, data, chainId);

            return(SignTransactionAsync(externalSigner, transaction));
        }
コード例 #2
0
ファイル: RLPSigner.cs プロジェクト: zzz8415/Nethereum
        public async Task SignExternallyAsync(IEthECKeyExternalSigner externalSigner)
        {
            //Hack not passing hash
            Signature = await externalSigner.SignAndCalculateVAsync(GetRLPEncodedRaw());

            rlpSignedEncoded = null;
        }
コード例 #3
0
        public Task <string> SignTransactionAsync(IEthECKeyExternalSigner externalSigner, string to, BigInteger amount, BigInteger nonce,
                                                  BigInteger gasPrice,
                                                  BigInteger gasLimit, string data)
        {
            var transaction = new Transaction(to, amount, nonce, gasPrice, gasLimit, data);

            return(SignTransactionAsync(externalSigner, transaction));
        }
コード例 #4
0
        public async Task SignExternallyAsync(IEthECKeyExternalSigner externalSigner)
        {
            if (externalSigner.ExternalSignerFormat == ExternalSignerFormat.RLP)
            {
                Signature = await externalSigner.SignAndCalculateVAsync(GetRLPEncodedRaw());
            }
            else
            {
                Signature = await externalSigner.SignAndCalculateVAsync(RawHash);
            }

            rlpSignedEncoded = null;
        }
コード例 #5
0
 public ExternalAccount(string address, IEthECKeyExternalSigner externalSigner, BigInteger? chainId = null)
 {
     ChainId = chainId;
     Address = address;
     ExternalSigner = externalSigner;
 }
コード例 #6
0
 public ExternalAccount(IEthECKeyExternalSigner externalSigner, BigInteger? chainId = null)
 {
     ExternalSigner = externalSigner;
     ChainId = chainId;
 }
コード例 #7
0
 public virtual async Task SignExternallyAsync(IEthECKeyExternalSigner externalSigner)
 {
     await SimpleRlpSigner.SignExternallyAsync(externalSigner).ConfigureAwait(false);
 }
コード例 #8
0
 public Task <string> SignTransactionAsync(IEthECKeyExternalSigner externalSigner, Chain chain, string to, BigInteger amount,
                                           BigInteger nonce, BigInteger gasPrice,
                                           BigInteger gasLimit, string data)
 {
     return(SignTransactionAsync(externalSigner, (int)chain, to, amount, nonce, gasPrice, gasLimit, data));
 }
コード例 #9
0
        private async Task <string> SignTransactionAsync(IEthECKeyExternalSigner externalSigner, TransactionChainId transaction)
        {
            await transaction.SignExternallyAsync(externalSigner).ConfigureAwait(false);

            return(transaction.GetRLPEncoded().ToHex());
        }
コード例 #10
0
 public override async Task SignExternallyAsync(IEthECKeyExternalSigner externalSigner)
 {
     await SimpleRlpSigner.SignExternallyAsync(externalSigner, GetChainIdAsBigInteger()).ConfigureAwait(false);
 }