trac-msb 0.0.50 → 0.0.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/index.js +4 -2
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -70,7 +70,7 @@ export class MainSettlementBus extends ReadyResource {
|
|
|
70
70
|
sanitizeTransaction(postTx) &&
|
|
71
71
|
hccrypto.verify(b4a.from(postTx.tx + postTx.in, 'utf-8'), b4a.from(postTx.is, 'hex'), b4a.from(postTx.ipk, 'hex')) &&
|
|
72
72
|
hccrypto.verify(b4a.from(postTx.tx + postTx.wn, 'utf-8'), b4a.from(postTx.ws, 'hex'), b4a.from(postTx.wp, 'hex')) &&
|
|
73
|
-
postTx.tx === await _this.generateTx(postTx.bs, postTx.w, postTx.i, postTx.ipk, postTx.ch, postTx.in) &&
|
|
73
|
+
postTx.tx === await _this.generateTx(postTx.bs, this.bootstrap, postTx.w, postTx.i, postTx.ipk, postTx.ch, postTx.in) &&
|
|
74
74
|
b4a.byteLength(JSON.stringify(postTx)) <= 4096
|
|
75
75
|
) {
|
|
76
76
|
await view.put(op.key, op.value);
|
|
@@ -174,6 +174,7 @@ export class MainSettlementBus extends ReadyResource {
|
|
|
174
174
|
ch: parsedPreTx.ch,
|
|
175
175
|
in: parsedPreTx.in,
|
|
176
176
|
bs: parsedPreTx.bs,
|
|
177
|
+
mbs: parsedPreTx.mbs,
|
|
177
178
|
ws: signature.toString('hex'),
|
|
178
179
|
wp: this.wallet.publicKey,
|
|
179
180
|
wn : nonce
|
|
@@ -279,8 +280,9 @@ export class MainSettlementBus extends ReadyResource {
|
|
|
279
280
|
}
|
|
280
281
|
}
|
|
281
282
|
|
|
282
|
-
async generateTx(bootstrap, validator_writer_key, local_writer_key, local_public_key, content_hash, nonce){
|
|
283
|
+
async generateTx(bootstrap, msb_bootstrap, validator_writer_key, local_writer_key, local_public_key, content_hash, nonce){
|
|
283
284
|
let tx = bootstrap + '-' +
|
|
285
|
+
msb_bootstrap + '-' +
|
|
284
286
|
validator_writer_key + '-' +
|
|
285
287
|
local_writer_key + '-' +
|
|
286
288
|
local_public_key + '-' +
|