random-cid

command module
v0.0.0-...-20b7646 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 13, 2022 License: MIT Imports: 16 Imported by: 0

README

random-cid

Generate a random CID

Building

git clone https://github.com/application-research/random-cid.git
cd random-cid
go build .
Usage

You can use the CLI directly

# random v1 CID
$ ./random-cid
bafkreigd6pc65n4mcfabl3ucv2waoxwizxqizrd32r6cmqjx5zsul4jv3i

# random v0 CID
$ ./random-cid -c 0
QmaA14Co9Q9AuNHcs6KH2ZmJ8sCTwW6ZN7TJfxNcXnrUAX

Or you can start an API to retrieve CIDs over HTTP

./random-cid api

The API endpoints are:

  • GET /: returns a random CID v1
  • GET /v0: returns a random CID v0
  • GET /v1: returns a random CID v1
  • GET /peer: returns the libp2p peer address for the random-cid ipfs node

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package ipfslite is a lightweight IPFS peer which runs the minimal setup to provide an `ipld.DAGService`, "Add" and "Get" UnixFS files from IPFS.
Package ipfslite is a lightweight IPFS peer which runs the minimal setup to provide an `ipld.DAGService`, "Add" and "Get" UnixFS files from IPFS.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL