@enclaved/encli
Version:
CLI utilities for working with enclaved application server for TEEs
16 lines (15 loc) • 711 B
TypeScript
import { UnsignedEvent } from "nostr-tools";
import { Signer } from "./types";
export declare class PrivateKeySigner implements Signer {
private privkey;
private nip04;
private nip44;
constructor(privkey: Uint8Array);
unsafeGetSeckey(): Uint8Array<ArrayBufferLike>;
getPublicKey(): Promise<string>;
signEvent(event: UnsignedEvent): Promise<import("nostr-tools", { with: { "resolution-mode": "import" } }).VerifiedEvent>;
nip04Encrypt(pubkey: string, data: string): Promise<string>;
nip04Decrypt(pubkey: string, data: string): Promise<string>;
nip44Encrypt(pubkey: string, data: string): Promise<string>;
nip44Decrypt(pubkey: string, data: string): Promise<string>;
}