remove unused err condition

This commit is contained in:
1l0 2024-10-28 20:21:16 +09:00 committed by fiatjaf_
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)