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

Nostr Wallet Auth #815

Merged
merged 3 commits into from
Dec 1, 2023
Merged

Nostr Wallet Auth #815

merged 3 commits into from
Dec 1, 2023

Conversation

benthecarman
Copy link
Collaborator

@benthecarman benthecarman marked this pull request as draft October 30, 2023 09:08
@benthecarman benthecarman changed the title Add async mutex around syncing Nostr Wallet Auth Oct 30, 2023
@benthecarman benthecarman force-pushed the nostr-wallet-auth branch 5 times, most recently from 74db79b to 9ade646 Compare November 20, 2023 10:07
@benthecarman benthecarman marked this pull request as ready for review November 20, 2023 10:07
@benthecarman
Copy link
Collaborator Author

Have this end-to-end working with zapple pay

Copy link
Contributor

@TonyGiorgio TonyGiorgio left a comment

Choose a reason for hiding this comment

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

Could use some tests too

mutiny-core/src/lib.rs Outdated Show resolved Hide resolved
mutiny-core/src/nostr/mod.rs Outdated Show resolved Hide resolved
let profile = self
.inner
.nostr
.approve_nostr_wallet_auth(ProfileType::Normal { name }, uri, NwcProfileTag::General)
Copy link
Contributor

Choose a reason for hiding this comment

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

might as well remove type from this request if it's only going to be used for Normal

Copy link
Collaborator Author

@benthecarman benthecarman Nov 20, 2023

Choose a reason for hiding this comment

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

We may want to use approve_nostr_wallet_auth with other profile types in the future, think it is better to have the type. Also lets us reuse the same logic for other NWCs

mutiny-core/src/nostr/mod.rs Outdated Show resolved Hide resolved
mutiny-core/src/nostr/mod.rs Outdated Show resolved Hide resolved
mutiny-core/src/nostr/nwc.rs Outdated Show resolved Hide resolved
mutiny-wasm/src/lib.rs Outdated Show resolved Hide resolved
@benthecarman benthecarman force-pushed the nostr-wallet-auth branch 3 times, most recently from 2dbb486 to 2310f01 Compare November 20, 2023 21:49
@benthecarman
Copy link
Collaborator Author

Responded to review and added a test (which caught a bug :) )

@TonyGiorgio TonyGiorgio merged commit 385cacc into master Dec 1, 2023
9 checks passed
@TonyGiorgio TonyGiorgio deleted the nostr-wallet-auth branch December 1, 2023 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants