Skip to content

Wrong secp256k1 point in PublicKey docs #1385

@gilcu3

Description

@gilcu3

Today I was trying to use the example secp256k1 PublicKey from https://docs.rs/near-sdk/latest/near_sdk/struct.PublicKey.html and noticed that it does not belong to the secp256k1 elliptic curve. Example point in https://www.npmjs.com/package/near-sdk-js/v/1.0.0 is correct.

The bug can be tested with something like:

https://github.com/near/mpc/blob/b89d1084bcbd2fdc777140a4dda38de616b810ef/libs/chain-signatures/contract/src/crypto_shared/mod.rs#L24-L37

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status

    NEW❗

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions