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

Method Sign

proto/servers.go:51–53  ·  view source on GitHub ↗

Sign generates signature.

(signer *asymmetric.PrivateKey)

Source from the content-addressed store, hash-verified

49
50// Sign generates signature.
51func (p *Peers) Sign(signer *asymmetric.PrivateKey) (err error) {
52 return p.DefaultHashSignVerifierImpl.Sign(&p.PeersHeader, signer)
53}
54
55// Verify verify signature.
56func (p *Peers) Verify() (err error) {

Callers 3

TestPeersFunction · 0.95
TestRuntimeFunction · 0.95
BenchmarkRuntimeFunction · 0.95

Calls 1

SignMethod · 0.65

Tested by 3

TestPeersFunction · 0.76
TestRuntimeFunction · 0.76
BenchmarkRuntimeFunction · 0.76