You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
562 B
25 lines
562 B
//go:build !cgo |
|
|
|
package p256k |
|
|
|
import ( |
|
"crypto.orly/p256k/btcec" |
|
"lol.mleku.dev/log" |
|
) |
|
|
|
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) } |
|
|
|
var NewSecFromHex = btcec.NewSecFromHex[string] |
|
var NewPubFromHex = btcec.NewPubFromHex[string] |
|
var HexToBin = btcec.HexToBin
|
|
|