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

[2.1.x] Prototype Witnet.Wallet implementation on js/ts module #25

Open
guidiaz opened this issue Jan 7, 2025 · 0 comments
Open

[2.1.x] Prototype Witnet.Wallet implementation on js/ts module #25

guidiaz opened this issue Jan 7, 2025 · 0 comments

Comments

@guidiaz
Copy link
Contributor

guidiaz commented Jan 7, 2025

To implement on first approach:

  • create a wallet instance from a private key
  • sign a given buffer
  • get coinbase address

Example:

const Witnet = require('witnet-toolkit')
const myWallet = new Witnet.Wallet(myPrivateKey)
myWallet.coinbase
myWallet.sign(Uint8Array("cocacola"))
@guidiaz guidiaz assigned guidiaz and unassigned guidiaz Jan 7, 2025
@witnet witnet deleted a comment Jan 7, 2025
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

1 participant