Module: Reth::Utils

Extended by:
Utils
Includes:
Ethereum::Utils
Included in:
Utils
Defined in:
lib/reth/utils.rb

Instance Method Summary collapse

Instance Method Details

#mk_privkey(seed) ⇒ Object



16
17
18
# File 'lib/reth/utils.rb', line 16

def mk_privkey(seed)
  keccak256 seed
end

#mk_random_privkeyObject



12
13
14
# File 'lib/reth/utils.rb', line 12

def mk_random_privkey
  SecureRandom.random_bytes(32)
end