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

Demo v1 #23

Open
S0c5 opened this issue Feb 21, 2023 · 0 comments
Open

Demo v1 #23

S0c5 opened this issue Feb 21, 2023 · 0 comments
Assignees

Comments

@S0c5
Copy link
Member

S0c5 commented Feb 21, 2023

Sube + Libwallet

We'd love to share with our community all the progress made in the development of our core libraries, then we're going to build a simple web app that enables people to interact with a blockchain using a fetch like API:

User Story

  1. As a User I can Derive a keypair and use the simplest vault

  2. Given a user with a wallet account, I can Read the Balance in the Native token

  3. Transfer Balance in Native Token

Js API

// metacode
const balances = await sube('assets/balances');


const vault = new MemoryVault()
const wallet = new libwallet(vault);
await wallet.unlock();


await Sube('assets/transfer', {
 data: {
   dest: {
     id: '1a2b3x'
   }
 },
 signer: async (x) => wallet.sign(x)
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: 🔖 Ready
Development

No branches or pull requests

2 participants