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