Skip to content

BIP32: Missing seed bit-length validation in master key generation #1301

Description

@kuliq23

I noticed that ExtKey CreateFromSeed does not provide any seed bit-length checks.

However, minimum and maximum bit-length constraints are defined in BIP32.

Generate a seed byte sequence S of a chosen length (between 128 and 512 bits; 256 bits is advised) from a (P)RNG.

I wonder whether there is a specific reason for this not being enforced.

Similar behavior was found across different libraries using the bitcoinfuzz tool.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions