@calimero-network/mero-js 23.6.0 → 23.7.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.
@@ -1714,6 +1714,20 @@ export interface IssueOwnershipProofResponseData {
1714
1714
  signedPayload: string;
1715
1715
  /** Base64 64-byte ed25519 signature. */
1716
1716
  signature: string;
1717
+ /**
1718
+ * Namespace proofs only: what the namespace id was derived from. Not signed;
1719
+ * the id commits to it. With {@link credential}, it is what lets the cloud
1720
+ * check that the signer is a node of the account that FOUNDED the namespace
1721
+ * (mdma refuses a namespace proof without both). Absent on nodes that predate
1722
+ * it, and on context proofs.
1723
+ */
1724
+ founding?: NamespaceFounding;
1725
+ /**
1726
+ * Namespace proofs only: hex borsh `AccountProof<DeviceCert>` — the node's join
1727
+ * credential, whose account root certifies `signerPublicKey`. See
1728
+ * {@link founding}.
1729
+ */
1730
+ credential?: string;
1717
1731
  }
1718
1732
  export interface CreateGroupInvitationRequest {
1719
1733
  expirationTimestamp?: number;
@@ -656,7 +656,11 @@ export declare class CloudClient {
656
656
  * Pass merod's response object straight through. The cloud accepts core's
657
657
  * `signerPublicKey`/`signedPayload` casing as well as snake_case, so there is
658
658
  * no re-keying step — and getting that wrong used to surface as a `422`
659
- * naming three missing fields.
659
+ * naming three missing fields. Passing it whole also carries the `founding`
660
+ * and `credential` merod attaches: the cloud accepts a namespace proof only
661
+ * from a node of the account that founded the namespace, checked with those
662
+ * two, and only when that account is linked to this login. A node that
663
+ * predates them, or an admin that did not found the namespace, gets a `422`.
660
664
  *
661
665
  * Idempotent for the same account. A namespace already claimed by someone
662
666
  * else is a `409`; a replayed proof nonce is a `403`.
@@ -567,7 +567,11 @@ export class CloudClient {
567
567
  * Pass merod's response object straight through. The cloud accepts core's
568
568
  * `signerPublicKey`/`signedPayload` casing as well as snake_case, so there is
569
569
  * no re-keying step — and getting that wrong used to surface as a `422`
570
- * naming three missing fields.
570
+ * naming three missing fields. Passing it whole also carries the `founding`
571
+ * and `credential` merod attaches: the cloud accepts a namespace proof only
572
+ * from a node of the account that founded the namespace, checked with those
573
+ * two, and only when that account is linked to this login. A node that
574
+ * predates them, or an admin that did not found the namespace, gets a `422`.
571
575
  *
572
576
  * Idempotent for the same account. A namespace already claimed by someone
573
577
  * else is a `409`; a replayed proof nonce is a `403`.