Files
x-realy/p256k/btcec.go
2025-05-30 17:57:39 +01:00

22 lines
433 B
Go

//go:build !cgo
package p256k
import (
"x.realy.lol/log"
"x.realy.lol/p256k/btcec"
)
func init() {
log.T.Ln("using btcec signature library")
}
// BTCECSigner is always available but enabling it disables the use of
// github.com/bitcoin-core/secp256k1 CGO signature implementation and points it at the btec
// version.
type Signer = btcec.Signer
type Keygen = btcec.Keygen
func NewKeygen() (k *Keygen) { return new(Keygen) }