class Ethereum::TransientTrie
Public Instance Methods
root_hash()
click to toggle source
# File lib/ethereum/transient_trie.rb, line 15 def root_hash @transient_root_hash end
set_root_hash(hash)
click to toggle source
# File lib/ethereum/transient_trie.rb, line 19 def set_root_hash(hash) raise TypeError, "root hash must be String" unless hash.instance_of?(String) raise ArgumentError, "root hash must be 0 or 32 bytes long" unless [0,32].include?(hash.size) @transient_root_hash = hash end