コード例 #1
0
 private string SignTransaction(byte[] privateKey, TransactionChainId transaction)
 {
     transaction.Sign(new EthECKey(privateKey, true));
     return(transaction.GetRLPEncoded().ToHex());
 }
コード例 #2
0
        private async Task <string> SignTransactionAsync(IEthECKeyExternalSigner externalSigner, TransactionChainId transaction)
        {
            await transaction.SignExternallyAsync(externalSigner).ConfigureAwait(false);

            return(transaction.GetRLPEncoded().ToHex());
        }