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

Function BenchmarkRecover

crypto/secp256k1/secp256_test.go:229–238  ·  view source on GitHub ↗
(b *testing.B)

Source from the content-addressed store, hash-verified

227}
228
229func BenchmarkRecover(b *testing.B) {
230 msg := csprngEntropy(32)
231 _, seckey := generateKeyPair()
232 sig, _ := Sign(msg, seckey)
233 b.ResetTimer()
234
235 for i := 0; i < b.N; i++ {
236 RecoverPubkey(msg, sig)
237 }
238}

Callers

nothing calls this directly

Calls 4

csprngEntropyFunction · 0.85
SignFunction · 0.85
RecoverPubkeyFunction · 0.85
generateKeyPairFunction · 0.70

Tested by

no test coverage detected