Skip to content

Output of normal_private_child_from_private() doesn't match expected value #9

Open
@HakHanKoh

Description

The output of the said function differs from the value I'm getting from the Coincurve library in python.

Inputs:
key: 20a9ec6b6e2001b50b5a24212e3541b628e946d233ad81dc969c3903c32738e2
chaincode: 1bb0eeef41bee23c8f03f4786b8fdd2c8d8e33947617f0bdd0ed11da1e71a390
child number: 0

Expected outputs:
pubkey: 02f444ed97ad3ebb1a9eda41be4bf475888ea0c15ddbab9aaf109051384073a0f5
key: 9cf2f303a39715e78b727cb8b14343f9ded027e56cb04dfe5ebd1d73a300c343
chaincode: fd243eb849705c56b27f4009518bb9067564fe7b6c37fc50c62b98e9cc860af2

Actual outputs:
pubkey: 02bfe1d2198546390f8bd24731ccae1bd98699007ce08089ec93046501cae82f0e
key: 12fbb9354143413f1cc74d8d7c6af2c246c16e84094f70dff4914f5142a1a08d
chaincode: 60948ea822c2fad6506a96c4c0dc36cce82746d3ea7901e211d841a556c2ebfa

It seemed as though the problem originates from int secp256k1_ec_pubkey_create(). I've spent days looking through the code but can't figure out what the issue was as I'm still quite new to secp256k1 and opencl. I'd really appreciate any assistance. Thank you.

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions