zippie-utils/permastore

Methods

(async, inner) fetch(cid)

Fetch object from IPFS service

Parameters:
Name Type Description
cid String

Multihash of target object to retreive

Source:

(async, inner) fetchEntry(entry)

Parameters:
Name Type Description
entry String

// Permastore Entry

Source:

(async, inner) insert(data, func)

Store data in IPFS and insert a reference into permastore V2 index using supplied function to generate auth signature.

Parameters:
Name Type Description
data Buffer

Object to store in IPFS and reference in index

func SignerFunc

Function used to generate auth signature

Source:

(async, inner) insertCID(cid, func)

Store a CID in IPFS and insert a reference into permastore V2 index using supplied function to generate auth signature.

Parameters:
Name Type Description
cid String

CID to reference in index

func SignerFunc

Function used to generate auth signature

Source:

(async, inner) list(pubkey)

List references in permastore V2 index for pubkey

Parameters:
Name Type Description
pubkey Buffer | String

secp256k1 public key to query

Source:

(async, inner) store(data)

Store object into IPFS service.

Parameters:
Name Type Description
data Buffer

Object to store in IPFS

Source: