trac-msb 0.0.46 → 0.0.47

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.
Files changed (3) hide show
  1. package/msb.mjs +1 -1
  2. package/package.json +1 -1
  3. package/src/index.js +3 -2
package/msb.mjs CHANGED
@@ -3,7 +3,7 @@ import MainSettlementBus from './src/index.js';
3
3
  const opts = {
4
4
  stores_directory : 'stores/',
5
5
  store_name : typeof process !== "undefined" ? process.argv[2] : Pear.config.args[0],
6
- bootstrap: '2cad3a1aeffd0db5eabc8169da8873800f4c2187299b06fffb4059caeddcdd21',
6
+ bootstrap: '28e0189443903bd066fbddb1276aafd57177340696349534de2b5448eb8b871f',
7
7
  channel: '00bptracnetworkmainsettlementbus',
8
8
  tx : 'bptracnetworkmainsettlementbustx'
9
9
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "trac-msb",
3
3
  "main": "msb.mjs",
4
- "version": "0.0.46",
4
+ "version": "0.0.47",
5
5
  "pear": {
6
6
  "name": "trac-msb",
7
7
  "type": "terminal"
package/src/index.js CHANGED
@@ -67,8 +67,8 @@ export class MainSettlementBus extends ReadyResource {
67
67
  if (null === await view.get(op.key) &&
68
68
  sanitizeTransaction(postTx) &&
69
69
  postTx.op === 'post-tx' &&
70
- hccrypto.verify(b4a.from(postTx.tx + postTx.in, 'utf-8'), b4a.from(postTx.is, 'hex'), b4a.from(postTx.ipk, 'hex')) &&// sender verification
71
- hccrypto.verify(b4a.from(postTx.tx + postTx.wn, 'utf-8'), b4a.from(postTx.ws, 'hex'), b4a.from(postTx.wp, 'hex')) &&// writer verification
70
+ hccrypto.verify(b4a.from(postTx.tx + postTx.in, 'utf-8'), b4a.from(postTx.is, 'hex'), b4a.from(postTx.ipk, 'hex')) &&
71
+ hccrypto.verify(b4a.from(postTx.tx + postTx.wn, 'utf-8'), b4a.from(postTx.ws, 'hex'), b4a.from(postTx.wp, 'hex')) &&
72
72
  b4a.byteLength(JSON.stringify(postTx)) <= 4096
73
73
  ) {
74
74
  await view.put(op.key, op.value);
@@ -171,6 +171,7 @@ export class MainSettlementBus extends ReadyResource {
171
171
  ipk: parsedPreTx.ipk,
172
172
  ch: parsedPreTx.ch,
173
173
  in: parsedPreTx.in,
174
+ bs: parsedPreTx.bs,
174
175
  ws: signature.toString('hex'),
175
176
  wp: this.wallet.publicKey,
176
177
  wn : nonce