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.

28 lines (23 loc) 608 B
import { Scalar } from '../../scalar' import { ChildKey } from '../../keys/childKey' describe('KeyDerivation', () => { test('derive from childKey', () => { const seed = new Scalar(12345) const childKey = new ChildKey(seed) }) test('toBlindingKey', () => { const seed = new Scalar(12345) const x = new ChildKey(seed) x.toBlindingKey() }) test('toTokenKey', () => { const seed = new Scalar(12345) const x = new ChildKey(seed) x.toTokenKey() }) test('toTxKey', () => { const seed = new Scalar(12345) const x = new ChildKey(seed) x.toTxKey() }) })