leoid
v1.0.0
Published
Leo Lang Friendly Unique ID Generator
Downloads
4
Readme
Leo ID
Leo ID offers a simple way to generate unique Leo language friendly IDs, to be used in Aleo Smart Contracts, created by Dark Sun Labs.
Tutorial
- npm install leoid
- inside the js function where a new mapping value is to be created, do a const new_id = getLeoId(add1, add2, count) where add1 is the address of the creator of the transaction, add2 is the address of the receiver, and count is the integer count for the transactions in that smart contract by the creator wallet.
Resources
The NPM package can be found here:
https://www.npmjs.com/package/leoid
Want to Give Us a Star?
Here is the repo: https://github.com/harshnambiar/leoid