@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.
- package/dist/connect/index.cjs +1 -1
- package/dist/connect/index.cjs.map +1 -1
- package/dist/connect/index.js +1 -1
- package/dist/connect/index.js.map +1 -1
- package/dist/core/index.cjs +76 -34
- package/dist/core/index.cjs.map +1 -1
- package/dist/core/index.js +76 -34
- package/dist/core/index.js.map +1 -1
- package/dist/impl/browser/index.cjs +9 -9
- package/dist/impl/browser/index.cjs.map +1 -1
- package/dist/impl/browser/index.js +9 -9
- package/dist/impl/browser/index.js.map +1 -1
- package/dist/impl/nodejs/index.cjs +9 -9
- package/dist/impl/nodejs/index.cjs.map +1 -1
- package/dist/impl/nodejs/index.js +9 -9
- package/dist/impl/nodejs/index.js.map +1 -1
- package/dist/index.cjs +76 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +76 -34
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -1859,7 +1859,7 @@ var NostrTransportProvider = class {
|
|
|
1859
1859
|
});
|
|
1860
1860
|
}
|
|
1861
1861
|
if (events.length === 0) {
|
|
1862
|
-
logger.debug("Nostr", `resolveNametagInfo: no binding events found for
|
|
1862
|
+
logger.debug("Nostr", `resolveNametagInfo: no binding events found for Unicity ID "${nametag}"`);
|
|
1863
1863
|
return null;
|
|
1864
1864
|
}
|
|
1865
1865
|
const bindingEvent = events[0];
|
|
@@ -2059,7 +2059,7 @@ var NostrTransportProvider = class {
|
|
|
2059
2059
|
this.identity.privateKey
|
|
2060
2060
|
);
|
|
2061
2061
|
if (decrypted) {
|
|
2062
|
-
logger.debug("Nostr", "Recovered
|
|
2062
|
+
logger.debug("Nostr", "Recovered Unicity ID:", decrypted);
|
|
2063
2063
|
return decrypted;
|
|
2064
2064
|
}
|
|
2065
2065
|
}
|
|
@@ -2067,7 +2067,7 @@ var NostrTransportProvider = class {
|
|
|
2067
2067
|
continue;
|
|
2068
2068
|
}
|
|
2069
2069
|
}
|
|
2070
|
-
logger.debug("Nostr", "Could not decrypt
|
|
2070
|
+
logger.debug("Nostr", "Could not decrypt Unicity ID from any event");
|
|
2071
2071
|
return null;
|
|
2072
2072
|
}
|
|
2073
2073
|
/**
|
|
@@ -2102,7 +2102,7 @@ var NostrTransportProvider = class {
|
|
|
2102
2102
|
if (nametag) {
|
|
2103
2103
|
const existing = await this.resolveNametag(nametag);
|
|
2104
2104
|
if (existing && existing !== nostrPubkey) {
|
|
2105
|
-
logger.debug("Nostr", "
|
|
2105
|
+
logger.debug("Nostr", "Unicity ID already taken:", nametag, "- owner:", existing);
|
|
2106
2106
|
return false;
|
|
2107
2107
|
}
|
|
2108
2108
|
const { ProxyAddress } = await import("@unicitylabs/state-transition-sdk/lib/address/ProxyAddress");
|
|
@@ -2120,9 +2120,9 @@ var NostrTransportProvider = class {
|
|
|
2120
2120
|
const event = await this.createEvent(EVENT_KINDS.NAMETAG_BINDING, content, tags);
|
|
2121
2121
|
await this.publishEvent(event);
|
|
2122
2122
|
if (nametag) {
|
|
2123
|
-
logger.debug("Nostr", "Published identity binding with
|
|
2123
|
+
logger.debug("Nostr", "Published identity binding with Unicity ID:", nametag, "for pubkey:", nostrPubkey.slice(0, 16) + "...");
|
|
2124
2124
|
} else {
|
|
2125
|
-
logger.debug("Nostr", "Published identity binding (no
|
|
2125
|
+
logger.debug("Nostr", "Published identity binding (no Unicity ID) for pubkey:", nostrPubkey.slice(0, 16) + "...");
|
|
2126
2126
|
}
|
|
2127
2127
|
return true;
|
|
2128
2128
|
}
|
|
@@ -2135,7 +2135,7 @@ var NostrTransportProvider = class {
|
|
|
2135
2135
|
["a", address]
|
|
2136
2136
|
]);
|
|
2137
2137
|
await this.publishEvent(event);
|
|
2138
|
-
logger.debug("Nostr", "Published
|
|
2138
|
+
logger.debug("Nostr", "Published Unicity ID binding:", nametag);
|
|
2139
2139
|
}
|
|
2140
2140
|
async registerNametag(nametag, _publicKey, directAddress = "") {
|
|
2141
2141
|
this.ensureReady();
|
|
@@ -2146,7 +2146,7 @@ var NostrTransportProvider = class {
|
|
|
2146
2146
|
const existing = await this.resolveNametag(nametag);
|
|
2147
2147
|
logger.debug("Nostr", "registerNametag:", nametag, "existing:", existing, "myPubkey:", nostrPubkey);
|
|
2148
2148
|
if (existing && existing !== nostrPubkey) {
|
|
2149
|
-
logger.debug("Nostr", "
|
|
2149
|
+
logger.debug("Nostr", "Unicity ID already taken:", nametag, "- owner:", existing);
|
|
2150
2150
|
return false;
|
|
2151
2151
|
}
|
|
2152
2152
|
const privateKeyHex = this.identity.privateKey;
|
|
@@ -2180,7 +2180,7 @@ var NostrTransportProvider = class {
|
|
|
2180
2180
|
];
|
|
2181
2181
|
const event = await this.createEvent(EVENT_KINDS.NAMETAG_BINDING, content, tags);
|
|
2182
2182
|
await this.publishEvent(event);
|
|
2183
|
-
logger.debug("Nostr", "Registered
|
|
2183
|
+
logger.debug("Nostr", "Registered Unicity ID:", nametag, "for pubkey:", nostrPubkey.slice(0, 16) + "...", "l1:", l1Address.slice(0, 12) + "...");
|
|
2184
2184
|
return true;
|
|
2185
2185
|
}
|
|
2186
2186
|
// Track broadcast subscriptions
|