mirror of
https://github.com/nbd-wtf/go-nostr.git
synced 2025-03-17 13:22:56 +01:00
remove unused err condition
This commit is contained in:
parent
9e6342a23b
commit
6091256d03
@ -54,9 +54,6 @@ func EncryptBytes(secretKey []byte, password string, logn uint8, ksb KeySecurity
|
||||
return "", fmt.Errorf("failed to start xchacha20poly1305: %w", err)
|
||||
}
|
||||
ciphertext := c2p1.Seal(nil, concat[2+16:2+16+24], secretKey, ad)
|
||||
if err != nil {
|
||||
return "", fmt.Errorf("failed to encrypt: %w", err)
|
||||
}
|
||||
copy(concat[2+16+24+1:], ciphertext)
|
||||
|
||||
bits5, err := bech32.ConvertBits(concat, 8, 5, true)
|
||||
|
Loading…
x
Reference in New Issue
Block a user