Skip to content

btcutil/wif.go: private key material not zeroed in several code paths #2573

Description

@Lrifton92

Follow-up from the review discussion on #2545. While adding defer keyScalar.Zero() to DecodeWIF, @allocz noted that btcutil/wif.go has several other code paths where memory holding private-key material is not zeroed after use. Opening this to track a broader audit of key-zeroing hygiene across wif.go and to confirm the desired behavior against the project's security assumptions, separate from the scoped fix in #2545.

Refs #2545.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions