class Ethereum::TransientTrie

Public Instance Methods

[](*args)
[]=(*args)
delete(*args)
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
transient_trie_exception(*args) click to toggle source
# File lib/ethereum/transient_trie.rb, line 7
def transient_trie_exception(*args)
  raise InvalidTransientTrieOperation
end
Also aliased as: [], []=, delete