Commit 1072ba5
fix: remove broken bech32 nsec/npub stub functions
The privateKeyToNsec, nsecToPrivateKey, and publicKeyToNpub functions
emitted fake nsec_<hex> / npub_<hex> strings that are not valid NIP-19
bech32 encoding. These stubs could confuse users into thinking they
have a valid key backup, and any interoperability with other Nostr
clients would silently fail.
The functions are not imported or called anywhere in the codebase, so
they are removed entirely rather than replaced with throwing stubs.
Proper NIP-19 bech32 support can be added when needed via a bech32
library.
Co-Authored-By: claude-flow <ruv@ruv.net>1 parent b83f414 commit 1072ba5
1 file changed
Lines changed: 0 additions & 32 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
0 commit comments