summaryrefslogtreecommitdiffstats
path: root/internal/nym/protocol.go
diff options
context:
space:
mode:
authorGab Virebent <gabriel1@virebent.art>2026-07-06 16:34:47 +0200
committerGab Virebent <gabriel1@virebent.art>2026-07-06 16:34:47 +0200
commit2f2fcc252d884bfe5335efbaff9f6d13af2ea5ff (patch)
tree1ce00af7378bff3b3d162571034943aa05584b0c /internal/nym/protocol.go
parent9c96a07782d47db3357cfb41025719e0442b75fc (diff)
downloadnymdrop-2f2fcc252d884bfe5335efbaff9f6d13af2ea5ff.tar.gz
nymdrop-2f2fcc252d884bfe5335efbaff9f6d13af2ea5ff.tar.xz
nymdrop-2f2fcc252d884bfe5335efbaff9f6d13af2ea5ff.zip
Guard key material in RAM with memguard, add Markdown preview for message field
Reader now keeps the private key bytes and the per-submission ECDH/HKDF secrets in memguard.LockedBuffer (mlock + guaranteed wipe) instead of a manual zero loop. Added a regression test for the decrypt path. Message field gets a self-hosted Markdown toggle preview (no external library): headers, bold/italic, inline code, code blocks, blockquotes, lists, links. Output is HTML-escaped and link schemes are whitelisted before rendering. Submitted content is still the raw Markdown source, unchanged on the wire.
Diffstat (limited to 'internal/nym/protocol.go')
0 files changed, 0 insertions, 0 deletions