
AMOGUS wire protocol implementation
This library provides an AMOGUS implementation for JS and TS in all major environments (browser, node, etc.). Install it with:
npm i amogus-driver
If you're using a BigInt polyfill, add this as close to the entry as possible:
import * as amogus from "amogus-driver";
amogus.repr.BigInteger.polyfillMode = "radix";
amogus.repr.BigInteger.polyfillMode = "0x";
amogus.repr.BigInteger.polyfillMode = "none";
How do I use it??
There's a complete tutorial over here.
Testing
Warning: this repository uses a pnpm
lock file, hence you can't substitute it for npm
below.
git clone https://github.com/amogus-api/driver-ts
cd driver-ts
pnpm i
pip3 install susc
pnpm test