applesauce-signers 0.0.0-next-20251205152544 → 0.0.0-next-20251220152312
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.
|
@@ -37,6 +37,9 @@ export class ReadonlySigner {
|
|
|
37
37
|
}
|
|
38
38
|
/** Creates a ReadonlySigner from a hex public key or NIP-19 npub */
|
|
39
39
|
static fromPubkey(pubkey) {
|
|
40
|
-
|
|
40
|
+
const hex = normalizeToPubkey(pubkey);
|
|
41
|
+
if (!hex)
|
|
42
|
+
throw new Error("Invalid public key");
|
|
43
|
+
return new ReadonlySigner(hex);
|
|
41
44
|
}
|
|
42
45
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "applesauce-signers",
|
|
3
|
-
"version": "0.0.0-next-
|
|
3
|
+
"version": "0.0.0-next-20251220152312",
|
|
4
4
|
"description": "Signer classes for applesauce",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
47
|
"@noble/secp256k1": "^1.7.1",
|
|
48
|
-
"applesauce-core": "0.0.0-next-
|
|
48
|
+
"applesauce-core": "0.0.0-next-20251220152312",
|
|
49
49
|
"debug": "^4.4.0",
|
|
50
50
|
"nanoid": "^5.0.9",
|
|
51
51
|
"rxjs": "^7.8.2"
|