@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.
@@ -2460,7 +2460,7 @@ var NostrTransportProvider = class {
2460
2460
  });
2461
2461
  }
2462
2462
  if (events.length === 0) {
2463
- logger.debug("Nostr", `resolveNametagInfo: no binding events found for nametag "${nametag}"`);
2463
+ logger.debug("Nostr", `resolveNametagInfo: no binding events found for Unicity ID "${nametag}"`);
2464
2464
  return null;
2465
2465
  }
2466
2466
  const bindingEvent = events[0];
@@ -2660,7 +2660,7 @@ var NostrTransportProvider = class {
2660
2660
  this.identity.privateKey
2661
2661
  );
2662
2662
  if (decrypted) {
2663
- logger.debug("Nostr", "Recovered nametag:", decrypted);
2663
+ logger.debug("Nostr", "Recovered Unicity ID:", decrypted);
2664
2664
  return decrypted;
2665
2665
  }
2666
2666
  }
@@ -2668,7 +2668,7 @@ var NostrTransportProvider = class {
2668
2668
  continue;
2669
2669
  }
2670
2670
  }
2671
- logger.debug("Nostr", "Could not decrypt nametag from any event");
2671
+ logger.debug("Nostr", "Could not decrypt Unicity ID from any event");
2672
2672
  return null;
2673
2673
  }
2674
2674
  /**
@@ -2703,7 +2703,7 @@ var NostrTransportProvider = class {
2703
2703
  if (nametag) {
2704
2704
  const existing = await this.resolveNametag(nametag);
2705
2705
  if (existing && existing !== nostrPubkey) {
2706
- logger.debug("Nostr", "Nametag already taken:", nametag, "- owner:", existing);
2706
+ logger.debug("Nostr", "Unicity ID already taken:", nametag, "- owner:", existing);
2707
2707
  return false;
2708
2708
  }
2709
2709
  const { ProxyAddress } = await import("@unicitylabs/state-transition-sdk/lib/address/ProxyAddress");
@@ -2721,9 +2721,9 @@ var NostrTransportProvider = class {
2721
2721
  const event = await this.createEvent(EVENT_KINDS.NAMETAG_BINDING, content, tags);
2722
2722
  await this.publishEvent(event);
2723
2723
  if (nametag) {
2724
- logger.debug("Nostr", "Published identity binding with nametag:", nametag, "for pubkey:", nostrPubkey.slice(0, 16) + "...");
2724
+ logger.debug("Nostr", "Published identity binding with Unicity ID:", nametag, "for pubkey:", nostrPubkey.slice(0, 16) + "...");
2725
2725
  } else {
2726
- logger.debug("Nostr", "Published identity binding (no nametag) for pubkey:", nostrPubkey.slice(0, 16) + "...");
2726
+ logger.debug("Nostr", "Published identity binding (no Unicity ID) for pubkey:", nostrPubkey.slice(0, 16) + "...");
2727
2727
  }
2728
2728
  return true;
2729
2729
  }
@@ -2736,7 +2736,7 @@ var NostrTransportProvider = class {
2736
2736
  ["a", address]
2737
2737
  ]);
2738
2738
  await this.publishEvent(event);
2739
- logger.debug("Nostr", "Published nametag binding:", nametag);
2739
+ logger.debug("Nostr", "Published Unicity ID binding:", nametag);
2740
2740
  }
2741
2741
  async registerNametag(nametag, _publicKey, directAddress = "") {
2742
2742
  this.ensureReady();
@@ -2747,7 +2747,7 @@ var NostrTransportProvider = class {
2747
2747
  const existing = await this.resolveNametag(nametag);
2748
2748
  logger.debug("Nostr", "registerNametag:", nametag, "existing:", existing, "myPubkey:", nostrPubkey);
2749
2749
  if (existing && existing !== nostrPubkey) {
2750
- logger.debug("Nostr", "Nametag already taken:", nametag, "- owner:", existing);
2750
+ logger.debug("Nostr", "Unicity ID already taken:", nametag, "- owner:", existing);
2751
2751
  return false;
2752
2752
  }
2753
2753
  const privateKeyHex = this.identity.privateKey;
@@ -2781,7 +2781,7 @@ var NostrTransportProvider = class {
2781
2781
  ];
2782
2782
  const event = await this.createEvent(EVENT_KINDS.NAMETAG_BINDING, content, tags);
2783
2783
  await this.publishEvent(event);
2784
- logger.debug("Nostr", "Registered nametag:", nametag, "for pubkey:", nostrPubkey.slice(0, 16) + "...", "l1:", l1Address.slice(0, 12) + "...");
2784
+ logger.debug("Nostr", "Registered Unicity ID:", nametag, "for pubkey:", nostrPubkey.slice(0, 16) + "...", "l1:", l1Address.slice(0, 12) + "...");
2785
2785
  return true;
2786
2786
  }
2787
2787
  // Track broadcast subscriptions