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)); }
public async Task SignExternallyAsync(IEthECKeyExternalSigner externalSigner) { //Hack not passing hash Signature = await externalSigner.SignAndCalculateVAsync(GetRLPEncodedRaw()); rlpSignedEncoded = null; }
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)); }
public async Task SignExternallyAsync(IEthECKeyExternalSigner externalSigner) { if (externalSigner.ExternalSignerFormat == ExternalSignerFormat.RLP) { Signature = await externalSigner.SignAndCalculateVAsync(GetRLPEncodedRaw()); } else { Signature = await externalSigner.SignAndCalculateVAsync(RawHash); } rlpSignedEncoded = null; }
public ExternalAccount(string address, IEthECKeyExternalSigner externalSigner, BigInteger? chainId = null) { ChainId = chainId; Address = address; ExternalSigner = externalSigner; }
public ExternalAccount(IEthECKeyExternalSigner externalSigner, BigInteger? chainId = null) { ExternalSigner = externalSigner; ChainId = chainId; }
public virtual async Task SignExternallyAsync(IEthECKeyExternalSigner externalSigner) { await SimpleRlpSigner.SignExternallyAsync(externalSigner).ConfigureAwait(false); }
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)); }
private async Task <string> SignTransactionAsync(IEthECKeyExternalSigner externalSigner, TransactionChainId transaction) { await transaction.SignExternallyAsync(externalSigner).ConfigureAwait(false); return(transaction.GetRLPEncoded().ToHex()); }
public override async Task SignExternallyAsync(IEthECKeyExternalSigner externalSigner) { await SimpleRlpSigner.SignExternallyAsync(externalSigner, GetChainIdAsBigInteger()).ConfigureAwait(false); }