verify abstract method

bool verify(
  1. Uint8List payload,
  2. Uint8List signature
)

Whether signature is valid for payload.

Implementations comparing bytes directly should use ASTBinaryFormat.constantTimeEquals rather than a plain list comparison, which returns sooner for a nearly-correct guess and so leaks how much of the signature an attacker got right.

Implementation

bool verify(Uint8List payload, Uint8List signature);