From 02a7418d47827fa11355202ce8dc7d0565a6475c Mon Sep 17 00:00:00 2001 From: ennmichael Date: Tue, 28 Feb 2023 21:23:24 +0100 Subject: [PATCH] doc comments --- packages/nostr/src/keypair.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/nostr/src/keypair.ts b/packages/nostr/src/keypair.ts index cfb9507..c43b699 100644 --- a/packages/nostr/src/keypair.ts +++ b/packages/nostr/src/keypair.ts @@ -9,7 +9,7 @@ export class PublicKey { #hex: string /** - * Expects the key encoded as an npub1-prefixed bech32 string, hex string, or byte buffer. + * Expects the key encoded as an npub-prefixed bech32 string, hex string, or byte buffer. */ constructor(key: string | Uint8Array) { this.#hex = parseKey(key, "npub1") @@ -30,7 +30,7 @@ export class PrivateKey { #hex: string /** - * Expects the key encoded as an nsec1-prefixed bech32 string, hex string, or byte buffer. + * Expects the key encoded as an nsec-prefixed bech32 string, hex string, or byte buffer. */ constructor(key: string | Uint8Array) { this.#hex = parseKey(key, "nsec1")