Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
alt-ipld
Advanced tools
Readme
ipld(getBlock)
Must return IPLD Interface.
getBlock
is an async function that accepts a CID and returns a promise for
the binary blob of that CID.
Takes a native object that can be serialized.
Returns an iterable. All items in iterable much be instances of Block
or
promises that resolve instances of Block
.
When returning multiple blocks the last block must be the root block.
Takes a binary blob to be deserialized.
Returns a promise to a native object.
Takes a binary blob of a serialzed node.
Returns an iterable. All item sin iterable must be either strings or promises that resolve to strings.
Takes a binary blob of a serialized node and a path to child links.
Returns a promise to an object with two properties: value
and remaining
.
value
must be either a deserialized node or a CID instance.
remaining
must be a string of the remaining path.
Throws an Error() when path cannot be resolved. Error instance should have a
.code
attribute set to 404
.
Takes a binary blob of a serialize node.
Returns an iterator. All items in the iterator must be instances of CIDor promises that resolve to instances of CID.
Returns only the CID's required to deserialize this node. Must not contain CID's of named links.
FAQs
## `ipld(getBlock)`
The npm package alt-ipld receives a total of 0 weekly downloads. As such, alt-ipld popularity was classified as not popular.
We found that alt-ipld demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.