Skip to content

Add helper to get canonical JSON collection #109

@bgins

Description

@bgins

Summary

Problem

UCAN at version 0.10.0 no longer inlines proofs, instead referencing them by CID. This change makes UCANs more compact, but proofs are less immediately accessible.

Impact

Debugging a proof chain is more difficult.

Solution

Add a helper that returns a canonical JSON collection (https://github.com/ucan-wg/spec#71-canonical-json-collection).

The collection may be incomplete if some of the proofs are not accessible. That's fine, because it indicates that bounds of proof that are immediately available.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions