MCPcopy Create free account
hub / github.com/DNAProject/DNA / GetAccountPassword

Function GetAccountPassword

common/password/password.go:72–81  ·  view source on GitHub ↗

GetPassword gets node's wallet password from command line or user input

()

Source from the content-addressed store, hash-verified

70
71// GetPassword gets node's wallet password from command line or user input
72func GetAccountPassword() ([]byte, error) {
73 var passwd []byte
74 var err error
75 passwd, err = GetPassword()
76 if err != nil {
77 return nil, err
78 }
79
80 return passwd, nil
81}

Callers 2

GetPasswdFunction · 0.92
TestGetAccountPasswordFunction · 0.70

Calls 1

GetPasswordFunction · 0.70

Tested by 1

TestGetAccountPasswordFunction · 0.56