Resolves a path within a Bitcoin block.
Returns the value or a link and the partial mising path. This way the IPLD Resolver can fetch the link and continue to resolve.
(Buffer)
Binary representation of a Bitcoin block
(string
= '/'
)
Path that should be resolved
Object
:
result - Result of the path it it was resolved successfully
any
:
result.value - Value the path resolves to
string
:
result.remainderPath - If the path resolves half-way to a
link, then the
remainderPath
is the part after the link that can be used
for further resolving
Return all available paths of a block.
(Buffer)
Binary representation of a Bitcoin block
Serialize internal representation into a binary Bitcoin block.
(BitcoinBlock)
Internal representation of a Bitcoin block
Buffer
:
Deserialize Bitcoin block into the internal representation.
(Buffer)
Binary representation of a Bitcoin block
BitcoinBlock
:
Calculate the CID of the binary blob.
(Object)
Encoded IPLD Node
Promise<CID>
: