Skip to content

feat: add token store#8

Open
alanshaw wants to merge 3 commits into
mainfrom
ash/feat/add-tokenstore
Open

feat: add token store#8
alanshaw wants to merge 3 commits into
mainfrom
ash/feat/add-tokenstore

Conversation

@alanshaw
Copy link
Copy Markdown
Member

Adds a storage interface for storing UCAN tokens (delegations, invocations, receipts), an in-memory implementation and a simple filesystem implementation that writes all tokens to a CBOR encoded file using a UCAN container.

The stores expose functions for constructing proof chains for invocations - which makes use of the library functions from libforge.

@alanshaw alanshaw requested a review from Peeja as a code owner May 20, 2026 09:49
Copy link
Copy Markdown
Contributor

@Peeja Peeja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM with one caveat: the FsStore never actually set its .path. I've pushed the fix and tests. If that looks good to you, merge away!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants