navio-blsct
Version:
TypeScript bindings for the `libblsct` library used by the [Navio](https://nav.io/) blockchain to construct confidential transactions based on the BLS12-381 curve.
18 lines (15 loc) • 353 B
text/typescript
import { BlsctChain, getChain, setChain } from '../blsct'
test('set and get', () => {
const chains = [
BlsctChain.Mainnet,
BlsctChain.Testnet,
BlsctChain.Signet,
BlsctChain.Regtest,
]
for (const chain of chains) {
setChain(chain)
expect(getChain()).toBe(chain)
}
// reset to mainnet
setChain(BlsctChain.Mainnet)
})