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.
35 lines (27 loc) • 559 B
text/typescript
import { genCTx } from './ctx'
import { CTxIn } from '../ctxIn'
const genCTxIn = (): CTxIn => {
const ctx = genCTx()
const txIns = ctx.getCTxIns()
return txIns.at(0)
}
test('getPrevOutHash', () => {
const x = genCTxIn()
x.getPrevOutHash()
})
test('getPrevOutN', () => {
const x = genCTxIn()
x.getPrevOutN()
})
test('getScriptSig', () => {
const x = genCTxIn()
x.getScriptSig()
})
test('getSequence', () => {
const x = genCTxIn()
x.getSequence()
})
test('getScriptWitness', () => {
const x = genCTxIn()
x.getScriptWitness()
})