Module: Ethereum

Defined in:
lib/ethereum/tx.rb,
lib/ethereum.rb,
lib/ethereum/key.rb,
lib/ethereum/sedes.rb,
lib/ethereum/utils.rb,
lib/ethereum/open_ssl.rb

Overview

lifted from github.com/lian/bitcoin-ruby thanks to everyone there for figuring this out TODO: Pull shared code out into a separate library

Defined Under Namespace

Modules: Sedes, Utils Classes: InvalidTransaction, Key, OpenSsl, Tx, ValidationError

Constant Summary collapse

BYTE_ZERO =
"\x00".freeze
GTXCOST =

TX BASE GAS COST

21000
GTXDATANONZERO =

TX DATA NON ZERO BYTE GAS COST

68
GTXDATAZERO =

TX DATA ZERO BYTE GAS COST

4
SECP256K1_N =
115792089237316195423570985008687907852837564279074904382605163141518161494337
UINT_MAX =
2**256 - 1