diff options
| author | Clawd <ai@clawd.bot> | 2026-02-20 18:52:08 -0800 |
|---|---|---|
| committer | Clawd <ai@clawd.bot> | 2026-02-20 18:52:08 -0800 |
| commit | d641f4566f051656bae79e406155c4f7f65ec338 (patch) | |
| tree | 4cd01f3fa4585cf719116a303473e792ea67e82a /internal/websocket/websocket.go | |
| parent | 84709fd67c02058334519ebee9c110f68b33d9b4 (diff) | |
embed secp256k1: replace btcec with internal pure-go implementation
This removes all external dependencies by embedding the secp256k1-learn
implementation into internal/secp256k1.
Changes:
- Add internal/secp256k1 with field arithmetic, curve ops, keys, schnorr
- Update keys.go to use internal secp256k1 package
- Remove btcec/btcutil dependencies (go.mod is now clean)
- All tests pass
Tradeoffs:
- ~10x slower crypto ops vs btcec (acceptable for nostr use case)
- Not constant-time (documented limitation)
- Zero external dependencies
Refs: code.northwest.io/secp256k1-learn
Diffstat (limited to 'internal/websocket/websocket.go')
0 files changed, 0 insertions, 0 deletions
