Пример #1
0
        private async Task <string> SignTransactionAsync(ICeloEthExternalSigner externalSigner, CeloTransactionChainId transaction)
        {
            await transaction.SignExternallyAsync(externalSigner).ConfigureAwait(false);

            return(transaction.GetRLPEncoded().ToHex());
        }
Пример #2
0
 private string SignTransaction(byte[] privateKey, CeloTransactionChainId transaction)
 {
     transaction.Sign(new EthECKey(privateKey, true));
     return(transaction.GetRLPEncoded().ToHex());
 }