コード例 #1
0
        private Keccak DecodeCodeHash(RlpStream rlpStream)
        {
            Keccak codeHash = null;

            if (_slimFormat && rlpStream.IsNextItemEmptyArray())
            {
                rlpStream.ReadByte();
                codeHash = Keccak.OfAnEmptyString;
            }
            else
            {
                codeHash = rlpStream.DecodeKeccak();
            }

            return(codeHash);
        }
コード例 #2
0
        private Keccak DecodeStorageRoot(RlpStream rlpStream)
        {
            Keccak storageRoot = null;

            if (_slimFormat && rlpStream.IsNextItemEmptyArray())
            {
                rlpStream.ReadByte();
                storageRoot = Keccak.EmptyTreeHash;
            }
            else
            {
                storageRoot = rlpStream.DecodeKeccak();
            }

            return(storageRoot);
        }