コード例 #1
0
        public Keccak DecodeStorageRootOnly(RlpStream rlpStream)
        {
            rlpStream.SkipLength();
            rlpStream.SkipItem();
            rlpStream.SkipItem();
            Keccak storageRoot = rlpStream.DecodeKeccak();

            return(storageRoot);
        }
コード例 #2
0
        public (Keccak CodeHash, Keccak StorageRoot) DecodeHashesOnly(RlpStream rlpStream, RlpBehaviors rlpBehaviors = RlpBehaviors.None)
        {
            rlpStream.SkipLength();
            rlpStream.SkipItem();
            rlpStream.SkipItem();
            Keccak storageRoot = rlpStream.DecodeKeccak();
            Keccak codeHash    = rlpStream.DecodeKeccak();

            return(codeHash, storageRoot);
        }
コード例 #3
0
        public (Keccak CodeHash, Keccak StorageRoot) DecodeHashesOnly(RlpStream rlpStream)
        {
            rlpStream.SkipLength();
            rlpStream.SkipItem();
            rlpStream.SkipItem();

            Keccak storageRoot = DecodeStorageRoot(rlpStream);
            Keccak codeHash    = DecodeCodeHash(rlpStream);

            return(codeHash, storageRoot);
        }