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

Planetmint inside the wallet #1

Open
puria opened this issue Feb 8, 2023 · 3 comments
Open

Planetmint inside the wallet #1

puria opened this issue Feb 8, 2023 · 3 comments
Assignees

Comments

@puria
Copy link
Contributor

puria commented Feb 8, 2023

convert into zencode

@albertolerda
Copy link
Contributor

albertolerda commented Feb 8, 2023

The current implementation was just a way to "make some experiments", now the goal is to store transactions on a distributed ledger (planetmint). For this we use the planetmint package inside restroom-mw .
All transfer come from and are sent to a central account (fixed in the keys of a particular instance of zenflows-wallet)
There must be a way to:

  • send tokens to an account (if the request has a valid signature)
  • remove tokens for an account (aka send to the central account, if the request has a valid signature)
  • get the balance of an account at a specific timestamp
  • get the list of transaction to e from a specific account (orderd by time), for this it is possible that we need some custom javascript

Those are the feature currently supported by zenflows-wallet

Moreover we must provide

  • a docker image to deploy the new wallet
  • being able to manage more than one type of token

@matteo-cristino
Copy link

I need a small clarification. This is what i have understood in order to implement the first point

  1. The front-end sign a request and send it to the wallet (through the proxy);
  2. The wallet verifies the request signature contained in the header of the request;
  3. The wallet creates a planetmint transaction with a certain amount and then transfer this tx to the receiver;

My question is what keyring is used to sign the planetmint tx? Does the wallet have a keyring?

@albertolerda
Copy link
Contributor

I would say that we use different keyring based on the direction

  • zenflows to user, with a keyring stored on zenflows-proxy (instance specific)
  • user to zenflows, has to be the frontend that creates the transaction

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

3 participants