MCPcopy Create free account
hub / github.com/akash-network/node / KeyExists

Method KeyExists

x/cert/utils/key_pair_manager.go:103–114  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

101}
102
103func (kpm *keyPairManager) KeyExists() (bool, error) {
104 _, err := os.Stat(kpm.getKeyPath())
105 if err == nil {
106 return true, nil
107 }
108
109 if os.IsNotExist(err) {
110 return false, nil
111 }
112
113 return false, err
114}
115
116func (kpm *keyPairManager) Generate(notBefore, notAfter time.Time, domains []string) error {
117 var err error

Callers

nothing calls this directly

Calls 1

getKeyPathMethod · 0.95

Tested by

no test coverage detected