Commit Graph

3 Commits

Author SHA1 Message Date
bc968a9380 Add performance analysis for secp256k1 Schnorr signature verification
This commit introduces a new markdown file, `VERIFY_OPTIMIZATION_ANALYSIS.md`, detailing the performance comparison between the C and Go implementations of the `secp256k1_schnorrsig_verify` function. It highlights the use of the optimized Strauss-WNAF algorithm in C, which significantly enhances performance through interleaved operations and scalar splitting. The analysis recommends implementing similar optimizations in the Go version to improve its efficiency, including WNAF conversion and GLV endomorphism scalar splitting.
2025-11-02 03:05:19 +00:00
cb87d08385 massive optimization 2025-11-02 02:45:59 +00:00
af54a969df Add standalone Schnorr signature verification and utility functions
This commit introduces a new file, `verify.go`, which implements the Schnorr signature verification logic, ensuring compliance with BIP-340. It includes utility functions for memory operations and big-endian read/write, enhancing the overall functionality of the Schnorr signature implementation. Additionally, a new test file, `verify_test.go`, is added to validate the correctness of the verification process against existing implementations, covering various scenarios including valid and invalid signatures. These additions improve the robustness and reliability of the Schnorr signature features in the library.
2025-11-02 02:13:22 +00:00