private void AppendDataForHashRecovery(BigInteger chainId)
 {
     //append the chainId, r and s so it can be recovered using the raw hash
     //the encoding has only the default 6 values
     SimpleRlpSigner.AppendData(chainId.ToBytesForRLPEncoding(), RHASH_DEFAULT,
                                SHASH_DEFAULT);
 }
 public void SetSignature(EthECDSASignature signature)
 {
     SimpleRlpSigner.SetSignature(signature);
 }
 public virtual void Sign(EthECKey key)
 {
     SimpleRlpSigner.Sign(key);
 }
 public byte[] GetRLPEncodedRaw()
 {
     return(SimpleRlpSigner.GetRLPEncodedRaw());
 }
 public override void Sign(EthECKey key)
 {
     SimpleRlpSigner.Sign(key, GetChainIdAsBigInteger());
 }
Exemple #6
0
 public virtual async Task SignExternallyAsync(IEthECKeyExternalSigner externalSigner)
 {
     await SimpleRlpSigner.SignExternallyAsync(externalSigner).ConfigureAwait(false);
 }
 public override void Sign(EthECKey key)
 {
     SimpleRlpSigner.SignLegacy(key);
 }
 public override async Task SignExternallyAsync(IEthECKeyExternalSigner externalSigner)
 {
     await SimpleRlpSigner.SignExternallyAsync(externalSigner, GetChainIdAsBigInteger()).ConfigureAwait(false);
 }