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

Function GetLocalPublicKey

crypto/kms/localkeystore.go:144–152  ·  view source on GitHub ↗

GetLocalPublicKey gets local public key, if not set yet returns nil.

()

Source from the content-addressed store, hash-verified

142
143// GetLocalPublicKey gets local public key, if not set yet returns nil.
144func GetLocalPublicKey() (public *asymmetric.PublicKey, err error) {
145 localKey.RLock()
146 public = localKey.public
147 if public == nil {
148 err = ErrNilField
149 }
150 localKey.RUnlock()
151 return
152}
153
154// GetLocalPrivateKey gets local private key, if not set yet returns nil
155// all call to this func will be logged.

Callers 15

NewChainWithContextFunction · 0.92
GetTokenBalanceFunction · 0.92
UpdatePermissionFunction · 0.92
TransferTokenFunction · 0.92
startTestServiceFunction · 0.92
getKeysFunction · 0.92
createTestPeersFunction · 0.92
NewDBMSFunction · 0.92
getKeysFunction · 0.92
showDatabaseDepositFunction · 0.92

Calls

no outgoing calls

Tested by 12

startTestServiceFunction · 0.74
getKeysFunction · 0.74
createTestPeersFunction · 0.74
getKeysFunction · 0.74
createLocalNodesFunction · 0.74
TestETLSBugFunction · 0.74
TestEncPingFindNeighborFunction · 0.74
TestLocalKeyStoreFunction · 0.68
TestInitLocalKeyPairFunction · 0.68