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

Function ResetLocalKeyStore

crypto/kms/localkeystore.go:68–76  ·  view source on GitHub ↗

ResetLocalKeyStore FOR UNIT TEST, DO NOT USE IT.

()

Source from the content-addressed store, hash-verified

66
67// ResetLocalKeyStore FOR UNIT TEST, DO NOT USE IT.
68func ResetLocalKeyStore() {
69 localKey = &LocalKeyStore{
70 isSet: false,
71 private: nil,
72 public: nil,
73 nodeID: nil,
74 nodeNonce: nil,
75 }
76}
77
78// SetLocalKeyPair sets private and public key, this is a one time thing.
79func SetLocalKeyPair(private *asymmetric.PrivateKey, public *asymmetric.PublicKey) {

Callers 2

initNodeFunction · 0.92
TestLocalKeyStoreFunction · 0.85

Calls

no outgoing calls

Tested by 2

initNodeFunction · 0.74
TestLocalKeyStoreFunction · 0.68