Skip to content

Allow Verifying Signatures with Recoverable Keys Without Specifying Public Key #18

@billyb2

Description

@billyb2

The sign function has an option of creating a signature with a recoverable public key. However, the verify function does not take advantage of this, and the public key still needs to be specified. Though the recover function can be used like so:

curve.verify(signature, data, curve.recover(signature, data))

This is kind of redundant, and could be done by the user simply not specifying a public key i.e. curve.verify(signature, data). The verify function, inside of the check for recoverable signatures, could simply extract the public key, and then use that, unless a different public key is specified.

Metadata

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