UNPKG

mokka

Version:

Mokka Consensus Algorithm implementation in Javascript

16 lines 499 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.PacketModel = void 0; class PacketModel { constructor(type, state, term, publicKey, proof, data = null) { this.state = state; this.type = type; this.term = term; this.publicKey = publicKey; this.data = data; this.proof = proof; this.timestamp = Date.now(); } } exports.PacketModel = PacketModel; //# sourceMappingURL=PacketModel.js.map