MCPcopy Create free account
hub / github.com/OCEChain/OCEChain / GetPassphrase

Function GetPassphrase

client/keys/utils.go:44–62  ·  view source on GitHub ↗

GetPassphrase returns a passphrase for a given name. It will first retrieve the key info for that name if the type is local, it'll fetch input from STDIN. Otherwise, an empty passphrase is returned. An error is returned if the key info cannot be fetched or reading from STDIN fails.

(name string)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

GetKeyInfoFunction · 0.85
ReadPassphraseFromStdinFunction · 0.85
GetTypeMethod · 0.65

Tested by

no test coverage detected