0.1.1 • Published 6 years ago
jeshka-lib-js v0.1.1
Jeshka
Jeshka JavaScript Library - Developed for Angular and NodeJS
Starting November 14, 2018 this repository contains the sources of the Jeshka JavaSCript Library
How to use
Import Jeshka, you only need one instance for your entire application.
import { JeshkaNode } as jeshka from 'jeshka';
import { JeshkaQuest } from 'jeshka';
Start qManager
//run this command only once per device.
jeshka.startQManager();
Unlock Wallet
jeshka.unlockWallet(seedWhistle);
To start a new Quest
let quest = new JeshkaQuest();
quest.setType(questType);
quest.setOutAddr(addr);
etc
We assume that once you sign a Quest, you also want to send it, so to send a signed Quest, just whistle (sign and send) it =)
jeshka.whistle(quest);
If you want to start an unsigned Quest
jeshka.start(quest);
Now the qManager will join the necessary Assembly/Assemblies and Jeshka will handle the rest.