Skip to content

Instantly share code, notes, and snippets.

View scrypt-sv's full-sized avatar

sCrypt scrypt-sv

View GitHub Profile
@scrypt-sv
scrypt-sv / txAdvancedArgs.js
Last active November 16, 2021 16:01
A simple program to compute arguments for contract TxAdvanced
/*
* a simple program to compute arguments for contract TxAdvanced
*/
const bsv = require('bsv')
const BN = bsv.crypto.BN
const pt = bsv.crypto.Point
const G = pt.getG()
const N = pt.getN()