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

Method CreateMnemonic

crypto/keys/keybase.go:91–114  ·  view source on GitHub ↗

CreateMnemonic generates a new key and persists it to storage, encrypted using the provided password. It returns the generated mnemonic and the key Info. It returns an error if it fails to generate a key for the given algo type, or if another key is already stored under the same name.

(name string, language Language, passwd string, algo SigningAlgo)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 1

persistDerivedKeyMethod · 0.95

Tested by

no test coverage detected