This repository contains an example program that calculates IPFS CID for the single file specified in the command line. The program is inspired by this StackOverflow answer by lajosdeme
The program uses the following values of hashing/DAG construction parameters. They are considered as defaults for the current IPFS Kubo implementation.
Parameter | Value |
---|---|
Chunker | size-262144 |
Hash | sha2-256 |
Codec | raw |
Version | 1 |
Encoding | base32 |
go build
cid-local <filename>