refactor: move zapper to @snort/wallet
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@snort/system",
|
||||
"version": "1.5.0",
|
||||
"version": "1.5.1",
|
||||
"description": "Snort nostr system package",
|
||||
"type": "module",
|
||||
"main": "dist/index.js",
|
||||
|
@ -59,7 +59,7 @@ export class EventPublisher {
|
||||
/**
|
||||
* Create an EventPublisher for a private key
|
||||
*/
|
||||
static privateKey(privateKey: string) {
|
||||
static privateKey(privateKey: string | Uint8Array) {
|
||||
const signer = new PrivateKeySigner(privateKey);
|
||||
return new EventPublisher(signer, signer.getPubKey());
|
||||
}
|
||||
|
Reference in New Issue
Block a user