Skip to content

secp256k1_ecdh_hash_function must return 0 or 1 #196

Closed
@sipa

Description

@sipa

Originally discussed at bitcoin-core/secp256k1@4f72054#r371029012 (github fails to link to the discussion; scroll through bitcoin-core/secp256k1#710 instead).

See https://github.com/rust-bitcoin/rust-secp256k1/blob/master/src/ecdh.rs#L162, where it seems behavior relies on seeing the return value of the hash function propagated up to the signing return value.

The documentation for hash functions specifies that it should return 1 or 0, and similarly, secp256k1_ecdh will return 0 or 1.

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