Skip to content

Commit

Permalink
remove unused err condition
Browse files Browse the repository at this point in the history
  • Loading branch information
1l0 authored and fiatjaf committed Oct 28, 2024
1 parent 9e6342a commit 6091256
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions nip49/nip49.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6091256

Please sign in to comment.