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

Function getKeys

client/helper_test.go:277–289  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

275}
276
277func getKeys() (privKey *asymmetric.PrivateKey, pubKey *asymmetric.PublicKey, err error) {
278 // get public key
279 if pubKey, err = kms.GetLocalPublicKey(); err != nil {
280 return
281 }
282
283 // get private key
284 if privKey, err = kms.GetLocalPrivateKey(); err != nil {
285 return
286 }
287
288 return
289}
290
291func genPeers(term uint64) (peers *proto.Peers, err error) {
292 // get node id

Callers 1

genPeersFunction · 0.70

Calls 2

GetLocalPublicKeyFunction · 0.92
GetLocalPrivateKeyFunction · 0.92

Tested by

no test coverage detected