Skip to content

keyring->pair->vrfVerify: possibly the wrong public key is used if the pair type is sr25519 #1906

@farwayer

Description

@farwayer
  • I'm submitting a bug

    • Bug report
  • What is the current behavior and expected behavior?

Vrf signature should be checked agains remote public key (passed as signerPublic parameter). But if the pair type is sr25519 then the current pair publicKey is possibly misused for validation.

if (type === 'sr25519') {

  • Please tell us about your environment:

    • Version: 12.6.2

    • Environment:

      • Node.js
      • Browser
      • Other (limited support for other environments)
    • Language:

      • JavaScript
      • TypeScript (include tsc --version)

Metadata

Metadata

Assignees

No one assigned

    Labels

    EnhancementImproves existing features or performance, making the SDK more robust and efficient.P3 - LowNon-essential improvements or minor fixes. Can be scheduled flexibly as time permits.

    Type

    No type

    Projects

    Status

    P3 - Low

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions