MCPcopy Index your code
hub / github.com/CovenantSQL/CovenantSQL / LoadPrivateKey

Method LoadPrivateKey

cmd/cql-proxy/model/keystore.go:42–48  ·  view source on GitHub ↗

LoadPrivateKey loads the private key from raw key bytes.

()

Source from the content-addressed store, hash-verified

40
41// LoadPrivateKey loads the private key from raw key bytes.
42func (p *DeveloperPrivateKey) LoadPrivateKey() (err error) {
43 p.Key, err = kms.DecodePrivateKey(p.RawKey, []byte{})
44 if err != nil {
45 err = errors.Wrapf(err, "load private key failed")
46 }
47 return
48}
49
50// GetPrivateKey load private key of account from proxy database.
51func GetPrivateKey(db *gorp.DbMap, developer int64, account utils.AccountAddress) (p *DeveloperPrivateKey, err error) {

Callers 5

GetPrivateKeyFunction · 0.80
getCurrentProjectDBFunction · 0.80
createDatabaseFunction · 0.80
TopUpTaskFunction · 0.80
getProjectDBFunction · 0.80

Calls 1

DecodePrivateKeyFunction · 0.92

Tested by

no test coverage detected