public byte[] GetRLPEncoded() { if (rlpSignedEncoded != null) { return(rlpSignedEncoded); } rlpSignedEncoded = RLPEncoder.EncodeSigned(new SignedData(Data, Signature), numberOfEncodingElements); return(rlpSignedEncoded); }
public override byte[] Encode(Transaction1559 transaction) { var encodedData = GetEncodedElements(transaction); RLPEncoder.AddSignatureToEncodedData(transaction.Signature, encodedData); var encodedBytes = RLP.RLP.EncodeList(encodedData.ToArray()); var returnBytes = AddTypeToEncodedBytes(encodedBytes, Type); return(returnBytes); }
public byte[] GetRLPEncodedRaw() { rlpRawWitNoSignature = RLPEncoder.EncodeData(Data); return(rlpRawWitNoSignature); }