Jalopy
Constants
BASE32 = "abcdefghijklmnopqrstuvwxyz234567"
BASE36 = "0123456789abcdefghijklmnopqrstuvwxyz"
BASE58 = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"
MAX_SIZE_V0 = 262144
MAX_SIZE_V1 = 1048576
Class methods
base32(ary)
Sourcecid(io, len = io.size, version = 1)
Computes the CID string (Base85-encoded multihash, suitable for IPFS) for a file. Files larger than MAX_SIZE will be split into chunks.
cidns(ary)
Sourcecidv0(ary)
Sourcecidv1(ary)
Sourceencode(ary, alpha, base = alpha.size)
SourceComputes the raw CID and file size for an IPFS chunk.
Returns {cid, size}
Builds a CID and UNIXFS node for some content.