Categorygithub.com/ipfs/go-block-format
modulepackage
0.2.0
Repository: https://github.com/ipfs/go-block-format.git
Documentation: pkg.go.dev

# README

go-block-format

Coverage Status Travis CI

go-block-format is a set of interfaces that a type needs to implement in order to be a CID addressable block of data.

Lead Maintainer

Eric Myhre

Table of Contents

Install

make install

Contribute

PRs are welcome!

Small note: If editing the Readme, please conform to the standard-readme specification.

License

MIT © Juan Batiz-Benet

# Functions

NewBlock creates a Block object from opaque data.
NewBlockWithCid creates a new block when the hash of the data is already known, this is used to save time in situations where we are able to be confident that the data is correct.

# Variables

ErrWrongHash is returned when the Cid of a block is not the expected according to the contents.

# Structs

A BasicBlock is a singular block of data in ipfs.

# Interfaces

Block provides abstraction for blocks implementations.