@cmts-dev/carmentis-sdk-core 1.2.18 → 1.2.19

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.
@@ -14074,7 +14074,7 @@ function KS(e, t, n, r, i) {
14074
14074
  var qS = class e {
14075
14075
  static verifyAccountProofFromObject(t) {
14076
14076
  let n = t.account.state, r = X.encodeAccountState(n), i = M.Hashes.sha256AsBinary(r);
14077
- return e.verifyRadixProof(t.account.virtualBlockchainId, i, t.account.radixProof, t.block.vbRadixHash), e.verifyAppHash(t.block);
14077
+ return e.verifyRadixProof(t.account.virtualBlockchainId, i, t.account.radixProof, t.block.tokenRadixHash), e.verifyAppHash(t.block);
14078
14078
  }
14079
14079
  static verifyAccountProofFromJson(t) {
14080
14080
  let { block: n, account: r } = t, i = r.radixProof.map((e) => k.binaryFromHexa(e)), a = cg.decodeBinary(r.serializedState, cg.BASE64), o = X.decodeAccountState(a), s = {
@@ -14089,7 +14089,7 @@ var qS = class e {
14089
14089
  }
14090
14090
  static verifyMicroblockProofFromObject(t) {
14091
14091
  let n = 33 - Math.clz32(t.virtualBlockchain.state.height - 1), r = t.virtualBlockchain.merkleWitnesses, i = t.microblock.height - 1, a = t.microblock.hash;
14092
- if (r.length !== n - 1) throw console.log(r, n), Error("State proof failure: inconsistent list of Merkle witnesses");
14092
+ if (r.length !== n - 1) throw Error("State proof failure: inconsistent list of Merkle witnesses");
14093
14093
  for (let t = 0; t < n - 1; t++) {
14094
14094
  let n = r[t];
14095
14095
  a = i >>> t & 1 ? e.mergeHashes(n, a) : e.mergeHashes(a, n);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cmts-dev/carmentis-sdk-core",
3
- "version": "1.2.18",
3
+ "version": "1.2.19",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/carmentis-sdk-core.cjs",