MCPcopy Create free account
hub / github.com/evilsocket/pwngrid / Load

Function Load

crypto/keypair.go:69–77  ·  view source on GitHub ↗
(keysPath string)

Source from the content-addressed store, hash-verified

67}
68
69func Load(keysPath string) (pair *KeyPair, err error) {
70 privFile := PrivatePath(keysPath)
71 pair = &KeyPair{
72 Path: keysPath,
73 PrivatePath: privFile,
74 PublicPath: privFile + ".pub",
75 }
76 return pair, pair.Load()
77}
78
79func KeysExist(keysPath string) bool {
80 return fs.Exists(keysPath) && fs.Exists(PrivatePath(keysPath))

Callers 1

setupModeFunction · 0.92

Calls 2

PrivatePathFunction · 0.85
LoadMethod · 0.80

Tested by

no test coverage detected