minterjs-tx
Version:
A simple module for creating, manipulating and signing Minter transactions
33 lines (30 loc) • 805 B
JavaScript
import defineProperties from '../define-properties.js';
export default class TxDataDelegate {
constructor(data, options) {
// Define Properties
const fields = [
{
name: 'publicKey',
length: 32,
},
{
name: 'coin',
length: 4,
allowLess: true,
},
{
name: 'stake',
length: 32,
allowLess: true,
}];
/**
* Returns the rlp encoding of the transaction
* @method serialize
* @return {Buffer}
* @memberof Transaction
* @name serialize
*/
// attached serialize
defineProperties(this, fields, data, options);
}
}