Versions in this module Expand all Collapse all v0 v0.0.1 Feb 21, 2019 Changes in this version + var ErrWrongHash = errors.New("data did not match given hash") + type BasicBlock struct + func NewBlock(data []byte) *BasicBlock + func NewBlockWithCid(data []byte, c cid.Cid) (*BasicBlock, error) + func (b *BasicBlock) Cid() cid.Cid + func (b *BasicBlock) Loggable() map[string]interface{} + func (b *BasicBlock) Multihash() mh.Multihash + func (b *BasicBlock) RawData() []byte + func (b *BasicBlock) String() string + type Block interface + Cid func() cid.Cid + Loggable func() map[string]interface{} + RawData func() []byte + String func() string