@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.
@@ -1896,7 +1896,7 @@ var NostrTransportProvider = class {
1896
1896
  });
1897
1897
  }
1898
1898
  if (events.length === 0) {
1899
- logger.debug("Nostr", `resolveNametagInfo: no binding events found for nametag "${nametag}"`);
1899
+ logger.debug("Nostr", `resolveNametagInfo: no binding events found for Unicity ID "${nametag}"`);
1900
1900
  return null;
1901
1901
  }
1902
1902
  const bindingEvent = events[0];
@@ -2096,7 +2096,7 @@ var NostrTransportProvider = class {
2096
2096
  this.identity.privateKey
2097
2097
  );
2098
2098
  if (decrypted) {
2099
- logger.debug("Nostr", "Recovered nametag:", decrypted);
2099
+ logger.debug("Nostr", "Recovered Unicity ID:", decrypted);
2100
2100
  return decrypted;
2101
2101
  }
2102
2102
  }
@@ -2104,7 +2104,7 @@ var NostrTransportProvider = class {
2104
2104
  continue;
2105
2105
  }
2106
2106
  }
2107
- logger.debug("Nostr", "Could not decrypt nametag from any event");
2107
+ logger.debug("Nostr", "Could not decrypt Unicity ID from any event");
2108
2108
  return null;
2109
2109
  }
2110
2110
  /**
@@ -2139,7 +2139,7 @@ var NostrTransportProvider = class {
2139
2139
  if (nametag) {
2140
2140
  const existing = await this.resolveNametag(nametag);
2141
2141
  if (existing && existing !== nostrPubkey) {
2142
- logger.debug("Nostr", "Nametag already taken:", nametag, "- owner:", existing);
2142
+ logger.debug("Nostr", "Unicity ID already taken:", nametag, "- owner:", existing);
2143
2143
  return false;
2144
2144
  }
2145
2145
  const { ProxyAddress } = await import("@unicitylabs/state-transition-sdk/lib/address/ProxyAddress");
@@ -2157,9 +2157,9 @@ var NostrTransportProvider = class {
2157
2157
  const event = await this.createEvent(EVENT_KINDS.NAMETAG_BINDING, content, tags);
2158
2158
  await this.publishEvent(event);
2159
2159
  if (nametag) {
2160
- logger.debug("Nostr", "Published identity binding with nametag:", nametag, "for pubkey:", nostrPubkey.slice(0, 16) + "...");
2160
+ logger.debug("Nostr", "Published identity binding with Unicity ID:", nametag, "for pubkey:", nostrPubkey.slice(0, 16) + "...");
2161
2161
  } else {
2162
- logger.debug("Nostr", "Published identity binding (no nametag) for pubkey:", nostrPubkey.slice(0, 16) + "...");
2162
+ logger.debug("Nostr", "Published identity binding (no Unicity ID) for pubkey:", nostrPubkey.slice(0, 16) + "...");
2163
2163
  }
2164
2164
  return true;
2165
2165
  }
@@ -2172,7 +2172,7 @@ var NostrTransportProvider = class {
2172
2172
  ["a", address]
2173
2173
  ]);
2174
2174
  await this.publishEvent(event);
2175
- logger.debug("Nostr", "Published nametag binding:", nametag);
2175
+ logger.debug("Nostr", "Published Unicity ID binding:", nametag);
2176
2176
  }
2177
2177
  async registerNametag(nametag, _publicKey, directAddress = "") {
2178
2178
  this.ensureReady();
@@ -2183,7 +2183,7 @@ var NostrTransportProvider = class {
2183
2183
  const existing = await this.resolveNametag(nametag);
2184
2184
  logger.debug("Nostr", "registerNametag:", nametag, "existing:", existing, "myPubkey:", nostrPubkey);
2185
2185
  if (existing && existing !== nostrPubkey) {
2186
- logger.debug("Nostr", "Nametag already taken:", nametag, "- owner:", existing);
2186
+ logger.debug("Nostr", "Unicity ID already taken:", nametag, "- owner:", existing);
2187
2187
  return false;
2188
2188
  }
2189
2189
  const privateKeyHex = this.identity.privateKey;
@@ -2217,7 +2217,7 @@ var NostrTransportProvider = class {
2217
2217
  ];
2218
2218
  const event = await this.createEvent(EVENT_KINDS.NAMETAG_BINDING, content, tags);
2219
2219
  await this.publishEvent(event);
2220
- logger.debug("Nostr", "Registered nametag:", nametag, "for pubkey:", nostrPubkey.slice(0, 16) + "...", "l1:", l1Address.slice(0, 12) + "...");
2220
+ logger.debug("Nostr", "Registered Unicity ID:", nametag, "for pubkey:", nostrPubkey.slice(0, 16) + "...", "l1:", l1Address.slice(0, 12) + "...");
2221
2221
  return true;
2222
2222
  }
2223
2223
  // Track broadcast subscriptions