diff --git a/acp/identity/errors.go b/acp/identity/errors.go index ca779ac102..54f272b780 100644 --- a/acp/identity/errors.go +++ b/acp/identity/errors.go @@ -20,7 +20,7 @@ const errDIDCreation = "could not produce did for key" var ErrDIDCreation = errors.New(errDIDCreation) -func NewErrDIDCreation(inner error, keytype string, pubKey []byte) error { +func newErrDIDCreation(inner error, keytype string, pubKey []byte) error { return errors.Wrap( errDIDCreation, inner, diff --git a/acp/identity/identity.go b/acp/identity/identity.go index 5220429559..8d9a84c23b 100644 --- a/acp/identity/identity.go +++ b/acp/identity/identity.go @@ -73,7 +73,7 @@ func didFromPublicKey(publicKey *secp256k1.PublicKey, producer didProducer) (str bytes := publicKey.SerializeUncompressed() did, err := producer(crypto.SECP256k1, bytes) if err != nil { - return "", NewErrDIDCreation(err, "secp256k1", bytes) + return "", newErrDIDCreation(err, "secp256k1", bytes) } return did.String(), nil }