Sha256: 768e5b92992ea32d6fd71d4cd5383a92bb3c09dc2363b6aa36ef9a60bc7235ba

Contents?: true

Size: 548 Bytes

Versions: 4

Compression:

Stored size: 548 Bytes

Contents

module Platon
  module Sedes
    include RLP::Sedes

    extend self

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

    def int20
      BigEndianInt.new(20)
    end

    def int32
      BigEndianInt.new(32)
    end

    def int256
      BigEndianInt.new(256)
    end

    def hash32
      Binary.fixed_length(32)
    end

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

    def big_endian_int
      RLP::Sedes.big_endian_int
    end

    def binary
      RLP::Sedes.binary
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
platon-1.0.1 lib/platon/sedes.rb
platon-1.0.0 lib/platon/sedes.rb
platon-0.2.9 lib/platon/sedes.rb
platon-0.2.7 lib/platon/sedes.rb