protected async Task SignRLPTransactionAsync(Transaction1559 transaction) { if (ExternalSignerTransactionFormat == ExternalSignerTransactionFormat.RLP) { var signature = await SignAndCalculateYParityVAsync(transaction.GetRLPEncodedRaw()).ConfigureAwait(false); transaction.SetSignature(signature); } }
protected async Task SignHashTransactionAsync(Transaction1559 transaction) { if (ExternalSignerTransactionFormat == ExternalSignerTransactionFormat.Hash) { var signature = await SignAndCalculateYParityVAsync(transaction.RawHash).ConfigureAwait(false); transaction.SetSignature(signature); } }
public abstract Task SignAsync(Transaction1559 transaction);