Module: Eth::Sedes

Extended by:
Sedes
Includes:
RLP::Sedes
Included in:
Sedes, Tx
Defined in:
lib/eth/sedes.rb

Instance Method Summary collapse

Instance Method Details

#addressObject



7
8
9
# File 'lib/eth/sedes.rb', line 7

def address
  Binary.fixed_length(20, allow_empty: true)
end

#big_endian_intObject



31
32
33
# File 'lib/eth/sedes.rb', line 31

def big_endian_int
  RLP::Sedes.big_endian_int
end

#binaryObject



35
36
37
# File 'lib/eth/sedes.rb', line 35

def binary
  RLP::Sedes.binary
end

#hash32Object



23
24
25
# File 'lib/eth/sedes.rb', line 23

def hash32
  Binary.fixed_length(32)
end

#int20Object



11
12
13
# File 'lib/eth/sedes.rb', line 11

def int20
  BigEndianInt.new(20)
end

#int256Object



19
20
21
# File 'lib/eth/sedes.rb', line 19

def int256
  BigEndianInt.new(256)
end

#int32Object



15
16
17
# File 'lib/eth/sedes.rb', line 15

def int32
  BigEndianInt.new(32)
end

#trie_rootObject



27
28
29
# File 'lib/eth/sedes.rb', line 27

def trie_root
  Binary.fixed_length(32, allow_empty: true)
end