arc76
v1.0.1
Published
ARC76 account is the ED25519 account generated from the string. Extended version allows to generate account from the email and password. https://github.com/algorandfoundation/ARCs/blob/main/ARCs/arc-0076.md
Downloads
5
Maintainers
Readme
ARC76 NPM LIBRARY
This is npm library for password generated ED25519 accounts and used mainly by the algorand community.
Usage
Install npm package
npm i arc76 --save
Import package
import arc76 from "arc76"
Password generated account
const account: algosdk.Account = arc76.generateAlgorandAccount("password")
Password generated account for slot 1
const account: algosdk.Account = arc76.generateAlgorandAccount("password","",1)
Email password generated account
const account: algosdk.Account = arc76.generateAlgorandAccount("12345678901234567890123456789012345678901234567890","email@example.com")
expect(algosdk.encodeAddress(account.addr.publicKey)).toBe("5AHWQJ5D52K4GRW4JWQ5GMR53F7PDSJEGT4PXVFSBQYE7VXDVG3WSPWSBM");
Email password generated account for slot 1
const account: algosdk.Account = arc76.generateAlgorandAccount("password","email@example.com",1)