@calimero-network/mero-js 16.1.0 → 17.0.0

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/dist/index.cjs CHANGED
@@ -2844,7 +2844,7 @@ async function accountForRoot(rootSecret) {
2844
2844
  }
2845
2845
 
2846
2846
  // src/namespace-op/namespace-op.ts
2847
- var SIGNED_NAMESPACE_OP_SCHEMA_VERSION = 7;
2847
+ var SIGNED_NAMESPACE_OP_SCHEMA_VERSION = 8;
2848
2848
  var NAMESPACE_SIGN_DOMAIN = new TextEncoder().encode("calimero.namespace.v1");
2849
2849
  var NAMESPACE_OP_ROOT = 0;
2850
2850
  var ROOT_OP = {
@@ -2948,7 +2948,8 @@ async function signMemberJoinOp(input) {
2948
2948
  const signature = new Uint8Array(
2949
2949
  await crypto.subtle.sign("Ed25519", key, concat(NAMESPACE_SIGN_DOMAIN, signable))
2950
2950
  );
2951
- return hex(concat(signable, signature));
2951
+ const unendorsed = new Uint8Array([0]);
2952
+ return hex(concat(signable, signature, unendorsed));
2952
2953
  }
2953
2954
 
2954
2955
  // src/capabilities.ts