Skip to content

Commit

Permalink
nip19: remove noteEncode().
Browse files Browse the repository at this point in the history
  • Loading branch information
AsaiToshiya committed Nov 21, 2024
1 parent 73987c7 commit e616aaf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions nip19.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ export function npubEncode(hex: string): NPub {
return encodeBytes('npub', hexToBytes(hex))
}

export function noteEncode(hex: string): Note {
return encodeBytes('note', hexToBytes(hex))
}

function encodeBech32<Prefix extends string>(prefix: Prefix, data: Uint8Array): `${Prefix}1${string}` {
let words = bech32.toWords(data)
return bech32.encode(prefix, words, Bech32MaxSize) as `${Prefix}1${string}`
Expand Down

0 comments on commit e616aaf

Please sign in to comment.