Bitcoin Block Header Utilities. Copyright (c) 2013 Alexander Færøy
Authors: Alexander Færøy (ahf@0x90.dk
).
This module contains utilities for manipulating and using Block Header objects.
block() = peculium_core_types:block()
block_header() = peculium_core_types:block_header()
hash() = peculium_core_types:hash()
uint32_t() = peculium_core_types:uint32_t()
uint8_t() = peculium_core_types:uint8_t()
bits/1 | Returns the bits of a given block header. |
block_work/1 | Returns the block work for the given block header. |
difficulty/1 | Returns the difficulty for the given block header. |
from_block/1 | Create Bitcoin Block Header from a given Block. |
merkle_root/1 | Returns the root hash of the merkle tree of a given block header. |
nonce/1 | Returns the nonce of a given block header. |
previous/1 | Returns the hash of the previous block of a given block header. |
timestamp/1 | Returns the timestamp of a given block header. |
transaction_count/1 | Returns the transaction count (always 0) of a given block header. |
version/1 | Returns the version of a given block header. |
bits(BlockHeader::block_header()) -> uint32_t()
Returns the bits of a given block header.
block_work(BlockHeader::block_header()) -> number()
Returns the block work for the given block header.
difficulty(BlockHeader::block_header()) -> number()
Returns the difficulty for the given block header.
from_block(Block::block()) -> block_header()
Create Bitcoin Block Header from a given Block.
merkle_root(BlockHeader::block_header()) -> hash()
Returns the root hash of the merkle tree of a given block header.
nonce(Blockheader::block_header()) -> uint32_t()
Returns the nonce of a given block header.
previous(BlockHeader::block_header()) -> hash()
Returns the hash of the previous block of a given block header.
timestamp(BlockHeader::block_header()) -> uint32_t()
Returns the timestamp of a given block header.
transaction_count(BlockHeader::block_header()) -> uint8_t()
Returns the transaction count (always 0) of a given block header.
version(BlockHeader::block_header()) -> uint32_t()
Returns the version of a given block header.