Skip to content

Size constants are confusingly named #875

@TheBlueMatt

Description

@TheBlueMatt

We were going through to use secp256k1's size constants, but they're pretty confusing in their naming. eg PUBLIC_KEY_SIZE isn't really the "size" of a public key (in memory or conceptually), but rather the size of a public key when serialized in compressed form. Similarly, MAX_SIGNATURE_SIZE isn't actually the maximum signature size, but rather the maximum signature size the libsecp will generate (and the maximum standard signature size in Bitcoin), but some downstream logic will probably also grind signatures to reduce the max size but a further one.

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