Synopsis
This libary provides basic functions for creating and validating tx's
Installation
npm install dfinity-tx
Usage
const DfinityTx = const crypto = // create a new txconst tx = version: 0 to: 20 caps: 4 ticks: 1000 ticksPrice: 0 nonce: 0 data: // get properties fromtxticks // 1000 // set propertiestxnonce = 1 const secretKey = crypto // sign the tx, this returns a signed serialized txconst signedTx = await tx // parse a txconst tx2 = DfinityTx // get the public key used to sign the messagetx2publicKey
API
Specification
License
All code and designs are open sourced under GPL V3.