-
Notifications
You must be signed in to change notification settings - Fork 0
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
New implementation based on Webnative 0.35 #12
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is looking great! I'm aiming to finish up the WAT-react changes this morning then focus on the walletauth repos for the afternoon, so I'll go through and test everything more thoroughly then 👍🏼
@@ -1,220 +1,143 @@ | |||
import * as auth from "webnative/auth/index.js" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so much red in this file(and the rest of the PR), i love it! 🙌🏼
Co-authored-by: Andrew Vivash <[email protected]> Signed-off-by: Steven Vandevelde <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
Rewrote the Webnative integration from scratch. The result is a much smaller entry function and doesn't have the state problems like before.
The auth component has been replaced with crypto and manners components. Webnative signs UCANs using the crypto component's keystore functions, these connect to webnative-walletauth's wallet implementation. The manners component is used to store the root read-key encrypted on the user's file system and to retrieve + decrypt it as well. This is done by introducing file system hooks.
How to use, see README