Skip to content

logic bug in verifyProof  #7

Description

@Hachikoi-the-creator

Inside the for the concat func expects uint8Array but proof[i].data is type string
Error visible for me since I'm using TS to try and understand what is happening a little bit better
Fixed code:

  for (let i = 0; i < proof.length; i++) {
    if (proof[i].left) {
      data = concat(utf8ToBytes(proof[i].data), data);
    } else {
      data = concat(data, utf8ToBytes(proof[i].data));
    }
  }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions