Commit 8d98433d authored by Sietse Ringers's avatar Sietse Ringers
Browse files

refactor: prefix keyshare error with Err for consistency

parent b1d308a0
......@@ -26,7 +26,7 @@ type (
var (
ErrKeyshareSecretTooBig = errors.New("Keyshare secret too big to store")
ErrKeyshareSecretNegative = errors.New("Keyshare secret negative")
NoSuchKey = errors.New("Key identifier unknown")
ErrNoSuchKey = errors.New("Key identifier unknown")
)
func (p *unencryptedKeysharePacket) pin() [64]byte {
......@@ -105,7 +105,7 @@ func (c *Core) decryptPacket(p EncryptedKeysharePacket) (unencryptedKeysharePack
// Fetch key
key, ok := c.decryptionKeys[id]
if !ok {
return unencryptedKeysharePacket{}, NoSuchKey
return unencryptedKeysharePacket{}, ErrNoSuchKey
}
// try and decrypt packet
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment