Class: Ciri::Chain::Header
- Inherits:
-
Object
- Object
- Ciri::Chain::Header
- Includes:
- RLP::Serializable
- Defined in:
- lib/ciri/chain/header.rb
Overview
block header
Constant Summary
Constants included from RLP::Serializable
Instance Attribute Summary
Attributes included from RLP::Serializable
Instance Method Summary collapse
-
#get_hash ⇒ Object
header hash.
-
#mining_hash ⇒ Object
mining_hash, used for mining.
Methods included from RLP::Serializable
#==, included, #initialize, #initialize_copy, #rlp_encode
Instance Method Details
#get_hash ⇒ Object
header hash
46 47 48 |
# File 'lib/ciri/chain/header.rb', line 46 def get_hash Utils.keccak(rlp_encode) end |
#mining_hash ⇒ Object
mining_hash, used for mining
51 52 53 |
# File 'lib/ciri/chain/header.rb', line 51 def mining_hash Utils.keccak(rlp_encode skip_keys: [:mix_hash, :nonce]) end |