UNPKG

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.

20 lines (13 loc) 340 B
import { } from '../blsct' import { SubAddrId } from '../subAddrId' test('generate', () => { SubAddrId.generate(1, 2) }) test('serialize and deserialize', () => { const a = SubAddrId.generate(1, 2) const a_hex = a.serialize() const b = SubAddrId.deserialize(a_hex) const b_hex = b.serialize() expect(a_hex).toBe(b_hex) })