MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / init

Function init

crypto/asymmetric/signature.go:40–45  ·  view source on GitHub ↗

For test Signature.Sign mock.

()

Source from the content-addressed store, hash-verified

38
39// For test Signature.Sign mock.
40func init() {
41 priv, _ := ec.NewPrivateKey(ec.S256())
42 ss, _ := (*ec.PrivateKey)(priv).Sign(([]byte)("00000000000000000000000000000000"))
43 bypassS = (*Signature)(ss)
44 verifyCache, _ = lru.New(256)
45}
46
47// Signature is a type representing an ecdsa signature.
48type Signature struct {

Callers

nothing calls this directly

Calls 2

SignMethod · 0.65
NewMethod · 0.65

Tested by

no test coverage detected