UNPKG

minterjs-tx

Version:

A simple module for creating, manipulating and signing Minter transactions

35 lines (32 loc) 858 B
import defineProperties from '../define-properties.js'; export default class TxDataEditCandidate { constructor(data, options) { // Define Properties const fields = [ { name: 'publicKey', length: 32, }, { name: 'rewardAddress', length: 20, }, { name: 'ownerAddress', length: 20, }, { name: 'controlAddress', length: 20, }]; /** * Returns the rlp encoding of the transaction * @method serialize * @return {Buffer} * @memberof Transaction * @name serialize */ // attached serialize defineProperties(this, fields, data, options); } }