Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add username to first UCAN #520

Open
nichoth opened this issue May 22, 2023 · 1 comment
Open

Add username to first UCAN #520

nichoth opened this issue May 22, 2023 · 1 comment

Comments

@nichoth
Copy link
Contributor

nichoth commented May 22, 2023

Summary

Add a username as a fact in the first UCAN created for an account.

Problem

From what I understand, usernames never change per account. It would make it easier to verify a DID + username if the username is recorded in UCAN.

Impact

Save you from needing to lookup a username + DID via DNS.

Solution

Add a fact when you call Ucan.build

const fsUcan = await Ucan.build({


I don't think this would break any existing functionality.

@icidasset
Copy link
Contributor

Thanks for the suggestion! I think we'll implement this for the upcoming rs-wnfs edition.

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

No branches or pull requests

2 participants