Skip to content

Keys drop#1379

Merged
yukibtc merged 2 commits into
nostrdevkit:masterfrom
yukibtc:keys-drop
Jun 15, 2026
Merged

Keys drop#1379
yukibtc merged 2 commits into
nostrdevkit:masterfrom
yukibtc:keys-drop

Conversation

@yukibtc

@yukibtc yukibtc commented Jun 13, 2026

Copy link
Copy Markdown
Member

Description

Erase the keypair in Keys on Drop.

Closes #1378

Checklist

yukibtc added 2 commits June 13, 2026 19:42
Erase the keypair in `Keys` on `Drop`.

Closes nostrdevkit#1378

Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
This avoids external copies of the keypair and keeps its lifecycle tied to `Keys`, so the key material is erased in one controlled place on drop.

Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
@yukibtc yukibtc requested a review from TheAwiteb as a code owner June 13, 2026 17:49
@yukibtc

yukibtc commented Jun 13, 2026

Copy link
Copy Markdown
Member Author

@TheAwiteb @pablof7z

@TheAwiteb TheAwiteb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ACK

@yukibtc yukibtc merged commit f0c7169 into nostrdevkit:master Jun 15, 2026
42 of 44 checks passed
@yukibtc yukibtc deleted the keys-drop branch June 20, 2026 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add ZeroizeOnDrop (or Zeroize) to Keys to fully wipe secret material

2 participants