doc comments

This commit is contained in:
ennmichael 2023-02-28 21:23:24 +01:00
parent 6d1e664929
commit 02a7418d47
No known key found for this signature in database
GPG Key ID: 6E6E183431A26AF7
1 changed files with 2 additions and 2 deletions

View File

@ -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")