Esempio n. 1
0
        public GetReceiptsMessage Deserialize(IByteBuffer byteBuffer)
        {
            RlpStream rlpStream = new NettyRlpStream(byteBuffer);

            Keccak[] hashes = rlpStream.DecodeArray(itemContext => itemContext.DecodeKeccak());
            return(new GetReceiptsMessage(hashes));
        }
        public NodeDataMessage Deserialize(IByteBuffer byteBuffer)
        {
            RlpStream rlpStream = new NettyRlpStream(byteBuffer);

            byte[][] result = rlpStream.DecodeArray(stream => stream.DecodeByteArray());
            return(new NodeDataMessage(result));
        }
Esempio n. 3
0
        public GetNodeDataMessage Deserialize(IByteBuffer byteBuffer)
        {
            RlpStream rlpStream = new NettyRlpStream(byteBuffer);

            Keccak[] result = rlpStream.DecodeArray(stream => stream.DecodeKeccak());
            return(new GetNodeDataMessage(result));
        }