module Ethereum::Sedes

Public Instance Methods

address() click to toggle source
# File lib/ethereum/sedes.rb, line 8
def address
  Binary.fixed_length(20, allow_empty: true)
end
big_endian_int() click to toggle source
# File lib/ethereum/sedes.rb, line 32
def big_endian_int
  RLP::Sedes.big_endian_int
end
binary() click to toggle source
# File lib/ethereum/sedes.rb, line 36
def binary
  RLP::Sedes.binary
end
hash32() click to toggle source
# File lib/ethereum/sedes.rb, line 24
def hash32
  Binary.fixed_length(32)
end
int20() click to toggle source
# File lib/ethereum/sedes.rb, line 12
def int20
  BigEndianInt.new(20)
end
int256() click to toggle source
# File lib/ethereum/sedes.rb, line 20
def int256
  BigEndianInt.new(256)
end
int32() click to toggle source
# File lib/ethereum/sedes.rb, line 16
def int32
  BigEndianInt.new(32)
end
trie_root() click to toggle source
# File lib/ethereum/sedes.rb, line 28
def trie_root
  Binary.fixed_length(32, allow_empty: true)
end