fix: encode NIP-17 file key and nonce as hex

Amethyst parses decryption-key and decryption-nonce as hex, so base64 keys were unreadable by the only implementation of kind 15 file messages. Also accept the 16 bytes nonce Amethyst sends, while still emitting the standard 12 bytes. Replaces the now unused base64 dependency with data-encoding.
This commit is contained in:
2026-09-15 20:45:32 +07:00
parent 06449d226f
commit c8ee4f63bb
4 changed files with 48 additions and 32 deletions
Generated
+1 -1
View File
@@ -6679,9 +6679,9 @@ version = "1.0.1"
dependencies = [
"aes-gcm",
"anyhow",
"base64 0.22.1",
"browser-signer-proxy",
"common",
"data-encoding",
"flume 0.11.1",
"futures",
"gpui",