Skip to content

dgtony/cidec

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CID decoder

Simple utility for decoding IPLD content identifiers according to specification.

Install

Requires Go toolchain installed.

go get github.com/dgtony/cidec

Usage

Just run utility with raw CID as argument.

$ cidec zb2rhe5P4gXftAwvA4eXQ5HJwsER2owDyS9sKaQRRVQPn93bA

 CID successfully parsed!
--------------------------
PREFIX | version: 1
PREFIX | codec: raw
PREFIX | hash type: sha2-256
MHASH  | prefix: 2 bytes, hash: 32 bytes
MHASH  | B58: QmVmkadKS2uvxyD6YJJzd3Umem6SWV7QxYnL7kbpdWAsPS
MHASH  | HEX: 12206e6ff7950a36187a801613426e858dce686cd7d7e3c0fc42ee0330072d245c95

About

IPLD CID decoder

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages