Skip to content

Replace verify_signature with verify_bls_aggregate #1349

Description

@Stebalien

We currently have:

  • verify_signature for verifying arbitrary signatures.
  • recover_secp_public_key for recovering a secp public key from a secp signature.

Unfortunately, the first one is a bit limited:

  • It does hashing internally, which restricts the user to a specific hash function.
  • It needs the public key to do verification in the first place, which is why we needed recover_secp_public_key.
  • It can't, e.g., validate bls signature aggregates.

Proposal:

  1. Add a new verify_bls_aggregate (where the aggregate may have one element).
  2. Remove verify_signature.
  3. Move all hashing to userspace.

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