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

Function GetPublicKey

crypto/kms/pubkeystore.go:180–186  ·  view source on GitHub ↗

GetPublicKey gets a PublicKey of given id Returns an error if the id was not found.

(id proto.NodeID)

Source from the content-addressed store, hash-verified

178// GetPublicKey gets a PublicKey of given id
179// Returns an error if the id was not found.
180func GetPublicKey(id proto.NodeID) (publicKey *asymmetric.PublicKey, err error) {
181 node, err := GetNodeInfo(id)
182 if err == nil {
183 publicKey = node.PublicKey
184 }
185 return
186}
187
188// GetNodeInfo gets node info of given id
189// Returns an error if the id was not found.

Callers 3

observerFetchBlockMethod · 0.92
GetSharedSecretWithFunction · 0.92
TestDBFunction · 0.85

Calls 1

GetNodeInfoFunction · 0.70

Tested by 1

TestDBFunction · 0.68