refactor: move zapper to @snort/wallet

This commit is contained in:
2024-09-19 13:55:26 +01:00
parent 38b9d132d5
commit 7350acce95
16 changed files with 25 additions and 29 deletions

View File

@ -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());
}