Top Level Namespace

Defined Under Namespace

Modules: Kernel, Safe Classes: Account, Address, Block, Contract, Msg, Receipt, Storage, String, Transaction, Universum, Void

Constant Summary collapse

Mapping =

note: make Mapping an alias for Hash (lets you use Mapping.of() for Hash.of)

Hash
Uni =

add some convenience aliases (still undecided what’s the most popular :-)

Universum
UNI =
Universum
UN =
Universum
U =
Universum
Tx =

class Transaction

Transaction

Instance Method Summary collapse

Instance Method Details

say hello



44
# File 'lib/universum.rb', line 44

puts Universum.banner

#ppObject

stdlibs



5
# File 'lib/universum.rb', line 5

require 'pp'

#safestructObject

3rd party gems



13
# File 'lib/universum.rb', line 13

require 'safestruct'

#sha256(*args) ⇒ Object

builtin “global” functions



6
7
8
9
10
# File 'lib/universum/function.rb', line 6

def sha256( *args )
  ## note: allow multiple args (string)
  ##   all args will get auto-joined (with no padding)
  Digest::SHA256.hexdigest( args.join )
end