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 Oreowallet server API #71

Merged
merged 2 commits into from
Nov 27, 2024
Merged

Add Oreowallet server API #71

merged 2 commits into from
Nov 27, 2024

Conversation

dguenther
Copy link
Member

Adds a debug page as well as an implementation of the oreowallet API. Tested importing an account, fetching balances/transactions, and creating an account with locally-generated proofs.

For now we'll generate proofs on-device since that's already built. To use the proving server, we'd need to update the Iron Fish rust crate to support adding proofs to an existing transaction.

let lastTime = performance.now();
// Make sure the account exists
const account = await this.state.db.getAccount(accountName);
if (account == null) {
Copy link
Contributor

Choose a reason for hiding this comment

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

nit (non-blocking): I assume you want ===, but no biggie. Could add a lint rule for that later.

Copy link
Member Author

Choose a reason for hiding this comment

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

Actually this is intentional, I just habitually use this to as shorthand for account === null || account === undefined. But no strong preference here if we want to throw in a lint rule for it

@dguenther dguenther merged commit d479b66 into main Nov 27, 2024
2 checks passed
@dguenther dguenther deleted the add-oreowallet-api branch November 27, 2024 22:44
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