Skip to content

twdragon/ipfs-cid-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

IPFS CID Calculator

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

Default CID parameters

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

Compiling

go build

Usage

cid-local <filename>

About

An example program in Go to calculate IPFS CIDs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages