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 (16 loc) 457 B
import { PublicKey } from '../../keys/publicKey' import { ChildKey } from '../../keys/childKey' import { PrivSpendingKey } from '../../keys/privSpendingKey' test('ctor', () => { const pk = PublicKey.random() const childKey = new ChildKey() const spendingKey = childKey.toTxKey().toSpendingKey() const viewKey = childKey.toTxKey().toViewKey() new PrivSpendingKey( pk, viewKey, spendingKey, 1, // account 2 // address ) })