Class: BlobPointer

BlobPointer

Provides a representation of the "seed" block for resolving a BlobMapping. Can be derived from a mapping.

new BlobPointer(filename, hashes, params)

Parameters:
Name Type Description
filename string Human readable filename with extension
hashes Array.<buffer> Ordered list of blob hashes
params BlobMapping~cryptparams Encryption parameters
Source:

Methods


<static> parseHref(href)

Parses a slice link into a key and crypt params
Parameters:
Name Type Description
href string
Source:
Returns:
Type
BlobMapping~cryptparams

toEncryptedSlice()

Returns a packed, encrypted, slice of this pointer
Source:
Returns:
Type
Array.<string>