Registry / networking / ipfs-go-block-format

ipfs-go-block-format

JSON →
library0.2.3gogounverified

Package blocks contains the lowest level of IPLD data structures; a block is raw data accompanied by a CID.

go get github.com/ipfs/go-block-format
INSTALL
IMPORT
SIG · IPFS-GO-BLOCK-FORM
I
ipfs-go-block-format
networkinggov0.2.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

blocks
github.com/ipfs/go-block-format

Create a new block with a CID.

package main import ( "fmt" blocks "github.com/ipfs/go-block-format" "github.com/ipfs/go-cid" ) func main() { c := cid.NewCidV1(cid.Raw, multihash.SHA2_256) block, err := blocks.NewBlockWithCid([]byte("hello"), c) if err != nil { panic(err) } fmt.Println(block.Cid()) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.3latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
ipfs-go-block-format — go get ipfs-go-block-format · libregistry