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

Function initLocalKeyStore

crypto/kms/localkeystore.go:55–65  ·  view source on GitHub ↗

initLocalKeyStore returns a new LocalKeyStore.

()

Source from the content-addressed store, hash-verified

53
54// initLocalKeyStore returns a new LocalKeyStore.
55func initLocalKeyStore() {
56 once.Do(func() {
57 localKey = &LocalKeyStore{
58 isSet: false,
59 private: nil,
60 public: nil,
61 nodeID: nil,
62 nodeNonce: nil,
63 }
64 })
65}
66
67// ResetLocalKeyStore FOR UNIT TEST, DO NOT USE IT.
68func ResetLocalKeyStore() {

Callers 3

TestLocalKeyStoreFunction · 0.85
InitLocalKeyPairFunction · 0.85
initFunction · 0.85

Calls 1

DoMethod · 0.80

Tested by 1

TestLocalKeyStoreFunction · 0.68