@unicitylabs/sphere-sdk 0.5.5 → 0.5.7

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.
@@ -2412,7 +2412,7 @@ var NostrTransportProvider = class {
2412
2412
  });
2413
2413
  }
2414
2414
  if (events.length === 0) {
2415
- logger.debug("Nostr", `resolveNametagInfo: no binding events found for nametag "${nametag}"`);
2415
+ logger.debug("Nostr", `resolveNametagInfo: no binding events found for Unicity ID "${nametag}"`);
2416
2416
  return null;
2417
2417
  }
2418
2418
  const bindingEvent = events[0];
@@ -2612,7 +2612,7 @@ var NostrTransportProvider = class {
2612
2612
  this.identity.privateKey
2613
2613
  );
2614
2614
  if (decrypted) {
2615
- logger.debug("Nostr", "Recovered nametag:", decrypted);
2615
+ logger.debug("Nostr", "Recovered Unicity ID:", decrypted);
2616
2616
  return decrypted;
2617
2617
  }
2618
2618
  }
@@ -2620,7 +2620,7 @@ var NostrTransportProvider = class {
2620
2620
  continue;
2621
2621
  }
2622
2622
  }
2623
- logger.debug("Nostr", "Could not decrypt nametag from any event");
2623
+ logger.debug("Nostr", "Could not decrypt Unicity ID from any event");
2624
2624
  return null;
2625
2625
  }
2626
2626
  /**
@@ -2655,7 +2655,7 @@ var NostrTransportProvider = class {
2655
2655
  if (nametag) {
2656
2656
  const existing = await this.resolveNametag(nametag);
2657
2657
  if (existing && existing !== nostrPubkey) {
2658
- logger.debug("Nostr", "Nametag already taken:", nametag, "- owner:", existing);
2658
+ logger.debug("Nostr", "Unicity ID already taken:", nametag, "- owner:", existing);
2659
2659
  return false;
2660
2660
  }
2661
2661
  const { ProxyAddress } = await import("@unicitylabs/state-transition-sdk/lib/address/ProxyAddress");
@@ -2673,9 +2673,9 @@ var NostrTransportProvider = class {
2673
2673
  const event = await this.createEvent(EVENT_KINDS.NAMETAG_BINDING, content, tags);
2674
2674
  await this.publishEvent(event);
2675
2675
  if (nametag) {
2676
- logger.debug("Nostr", "Published identity binding with nametag:", nametag, "for pubkey:", nostrPubkey.slice(0, 16) + "...");
2676
+ logger.debug("Nostr", "Published identity binding with Unicity ID:", nametag, "for pubkey:", nostrPubkey.slice(0, 16) + "...");
2677
2677
  } else {
2678
- logger.debug("Nostr", "Published identity binding (no nametag) for pubkey:", nostrPubkey.slice(0, 16) + "...");
2678
+ logger.debug("Nostr", "Published identity binding (no Unicity ID) for pubkey:", nostrPubkey.slice(0, 16) + "...");
2679
2679
  }
2680
2680
  return true;
2681
2681
  }
@@ -2688,7 +2688,7 @@ var NostrTransportProvider = class {
2688
2688
  ["a", address]
2689
2689
  ]);
2690
2690
  await this.publishEvent(event);
2691
- logger.debug("Nostr", "Published nametag binding:", nametag);
2691
+ logger.debug("Nostr", "Published Unicity ID binding:", nametag);
2692
2692
  }
2693
2693
  async registerNametag(nametag, _publicKey, directAddress = "") {
2694
2694
  this.ensureReady();
@@ -2699,7 +2699,7 @@ var NostrTransportProvider = class {
2699
2699
  const existing = await this.resolveNametag(nametag);
2700
2700
  logger.debug("Nostr", "registerNametag:", nametag, "existing:", existing, "myPubkey:", nostrPubkey);
2701
2701
  if (existing && existing !== nostrPubkey) {
2702
- logger.debug("Nostr", "Nametag already taken:", nametag, "- owner:", existing);
2702
+ logger.debug("Nostr", "Unicity ID already taken:", nametag, "- owner:", existing);
2703
2703
  return false;
2704
2704
  }
2705
2705
  const privateKeyHex = this.identity.privateKey;
@@ -2733,7 +2733,7 @@ var NostrTransportProvider = class {
2733
2733
  ];
2734
2734
  const event = await this.createEvent(EVENT_KINDS.NAMETAG_BINDING, content, tags);
2735
2735
  await this.publishEvent(event);
2736
- logger.debug("Nostr", "Registered nametag:", nametag, "for pubkey:", nostrPubkey.slice(0, 16) + "...", "l1:", l1Address.slice(0, 12) + "...");
2736
+ logger.debug("Nostr", "Registered Unicity ID:", nametag, "for pubkey:", nostrPubkey.slice(0, 16) + "...", "l1:", l1Address.slice(0, 12) + "...");
2737
2737
  return true;
2738
2738
  }
2739
2739
  // Track broadcast subscriptions