(secHex: string)
| 8 | // --------------------------------------------------------------------------- |
| 9 | |
| 10 | function pubkeyFromPrivkey(secHex: string): string { |
| 11 | return Buffer.from(secp256k1.getPublicKey(secHex, true)).subarray(1).toString('hex') |
| 12 | } |
| 13 | |
| 14 | // --------------------------------------------------------------------------- |
| 15 | // Published test vector from the NIP-44 spec |