jeshka

Jeshka JavaScript Library - Developed for Angular and NodeJS

Usage no npm install needed!

<script type="module">
  import jeshka from 'https://cdn.skypack.dev/jeshka';
</script>

README

Jeshka

Jeshka JavaScript Library - Developed for Angular and NodeJS

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.