项目作者: dgtony

项目描述 :
IPLD CID decoder
高级语言: Go
项目地址: git://github.com/dgtony/cidec.git
创建时间: 2020-06-24T11:36:30Z
项目社区:https://github.com/dgtony/cidec

开源协议:

下载


CID decoder

Simple utility for decoding IPLD content identifiers according to specification.

Install

Requires Go toolchain installed.

  1. go get github.com/dgtony/cidec

Usage

Just run utility with raw CID as argument.

  1. $ cidec zb2rhe5P4gXftAwvA4eXQ5HJwsER2owDyS9sKaQRRVQPn93bA
  2. CID successfully parsed!
  3. --------------------------
  4. PREFIX | version: 1
  5. PREFIX | codec: raw
  6. PREFIX | hash type: sha2-256
  7. MHASH | prefix: 2 bytes, hash: 32 bytes
  8. MHASH | B58: QmVmkadKS2uvxyD6YJJzd3Umem6SWV7QxYnL7kbpdWAsPS
  9. MHASH | HEX: 12206e6ff7950a36187a801613426e858dce686cd7d7e3c0fc42ee0330072d245c95