@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.browser.mjs +1 -1
- package/dist/index.browser.mjs.map +3 -3
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +3 -2
- package/dist/index.mjs.map +2 -2
- package/dist/namespace-op/namespace-op.d.ts +1 -1
- package/dist/namespace-op/namespace-op.js +16 -4
- package/package.json +1 -1
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 =
|
|
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
|
-
|
|
2951
|
+
const unendorsed = new Uint8Array([0]);
|
|
2952
|
+
return hex(concat(signable, signature, unendorsed));
|
|
2952
2953
|
}
|
|
2953
2954
|
|
|
2954
2955
|
// src/capabilities.ts
|