@calimero-network/mero-js 21.0.0 → 21.1.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.
@@ -369,6 +369,26 @@ export interface Namespace {
369
369
  * cannot resolve it (raw-wasm app, legacy key, blob not retained locally).
370
370
  */
371
371
  appVersion?: string;
372
+ /**
373
+ * What the namespace id was derived from, on nodes that hold it: every
374
+ * replica of a namespace founded with a derived id. Absent for namespaces
375
+ * created before ids were derived, and on nodes that predate it.
376
+ */
377
+ founding?: NamespaceFounding;
378
+ }
379
+ /**
380
+ * The founder and salt a namespace id was derived from:
381
+ * `domain_hash("calimero.namespace.id.v1", [founder, salt]) === namespaceId`.
382
+ *
383
+ * Anyone holding both can confirm which account founded the namespace without
384
+ * holding any of its state. Neither is secret, and the salt cannot be replayed
385
+ * for another account: the id commits to the founder.
386
+ */
387
+ export interface NamespaceFounding {
388
+ /** Hex `AccountId` of the founder. */
389
+ founderAccountId: string;
390
+ /** Hex 32-byte salt. */
391
+ salt: string;
372
392
  }
373
393
  export type ListNamespacesResponseData = Namespace[];
374
394
  /**
@@ -596,6 +616,8 @@ export interface CreateNamespaceRequest {
596
616
  }
597
617
  export interface CreateNamespaceResponseData {
598
618
  namespaceId: string;
619
+ /** What the id was derived from. Absent on nodes that predate derived ids. */
620
+ founding?: NamespaceFounding;
599
621
  }
600
622
  export interface DeleteNamespaceResponseData {
601
623
  isDeleted: boolean;