Current section

Files

Jump to
evm lib evm.ex
Raw

lib/evm.ex

defmodule EVM do
@moduledoc """
Documentation for EVM.
"""
@type state :: MerklePatriciaTree.Trie.t
@type trie_root :: MerklePatriciaTree.Trie.root_hash
@type val :: integer()
@type address :: <<_::160>>
@type hash :: <<_::256>>
@type timestamp :: integer()
@max_int round(:math.pow(2, 256))
@max_address round(:math.pow(2, 160))
@doc """
Returns maximum allowed integer size.
"""
def max_int(), do: @max_int
@doc """
Returns the maximum allowed address size.
"""
def max_address, do: @max_address
end