Refactor signer implementation to use p8k package
Some checks failed
Go / build (push) Has been cancelled
Go / release (push) Has been cancelled

- Replaced all instances of p256k1signer with the new p8k.Signer across various modules, including event creation, policy handling, and database interactions.
- Updated related test cases and benchmarks to ensure compatibility with the new signer interface.
- Bumped version to v0.25.0 to reflect these significant changes and improvements in cryptographic operations.
This commit is contained in:
2025-11-04 20:05:19 +00:00
parent effb3fafc1
commit e0a95ca1cd
70 changed files with 8667 additions and 124 deletions

View File

@@ -5,7 +5,7 @@ import (
"testing"
"time"
p256k1signer "p256k1.mleku.dev/signer"
"next.orly.dev/pkg/interfaces/signer/p8k"
"next.orly.dev/pkg/encoders/hex"
"next.orly.dev/pkg/encoders/kind"
"next.orly.dev/pkg/encoders/tag"
@@ -14,7 +14,7 @@ import (
// createTestEvent creates a realistic test event with proper signing
func createTestEvent() *E {
signer := p256k1signer.NewP256K1Signer()
signer := p8k.MustNew()
if err := signer.Generate(); err != nil {
panic(err)
}
@@ -44,7 +44,7 @@ func createTestEvent() *E {
// createLargeTestEvent creates a larger event with more tags and content
func createLargeTestEvent() *E {
signer := p256k1signer.NewP256K1Signer()
signer := p8k.MustNew()
if err := signer.Generate(); err != nil {
panic(err)
}