Skip to content

API/docs: Return value if ARG_CHECK fires #811

@real-or-random

Description

@real-or-random

For some functions handling public keys, the API docs claim that these functions always return 1. But when a zeroed pubkey is passed, the ARG_CHECK fires and they return 0.

Examples:

  • secp256k1_ec_pubkey_negate
  • secp256k1_ec_pubkey_serialize

Perhabs we can fix this as part of #783 .

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions