Documentation
¶
Overview ¶
Package shard TODO: move it to proper package and folder
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HasBitSetAt ¶
HasBitSetAt return true if the bit at index is 1 in bitField
Types ¶
type BlockHeader ¶
type BlockHeader struct {
// Slot number
SlotNumber uint64
// What shard is it on
ShardID uint64
// Parent block hash
ParentHash chainhash.Hash
// Beacon chain block
BeaconChainRef chainhash.Hash
// Depth of the Merkle tree
DataTreeDepth uint8
// Merkle root of data
DataRoot chainhash.Hash
// State root (placeholder for now)
StateRoot chainhash.Hash
// Attestation (including block signature)
AttesterBitfield []uint8
//AggregateSig: ['uint256']
AggregateSig [][]uint8
}
BlockHeader represents a single shard chain block header.
type Blockchain ¶
type Blockchain struct {
// contains filtered or unexported fields
}
Blockchain represents a chain of shard blocks.
Click to show internal directories.
Click to hide internal directories.