Exemplo n.º 1
0
 public byte[] GetRLPEncoded()
 {
     if (rlpSignedEncoded != null)
     {
         return(rlpSignedEncoded);
     }
     rlpSignedEncoded = RLPEncoder.EncodeSigned(new SignedData(Data, Signature), numberOfEncodingElements);
     return(rlpSignedEncoded);
 }
Exemplo n.º 2
0
        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);
        }
Exemplo n.º 3
0
 public byte[] GetRLPEncodedRaw()
 {
     rlpRawWitNoSignature = RLPEncoder.EncodeData(Data);
     return(rlpRawWitNoSignature);
 }