Function validateSignature

  • Parameters

    • value: string

    Returns ValidationResult

    0 (NO_PREFIX_MATCHED), 1 (INVALID_CHECKSUM), 2 (INVALID_LENGTH) or 3 (VALID).

    Used to check if a signature is valid.

    import { validateSignature } from '@taquito/utils';
    const signature = 'edsigtkpiSSschcaCt9pUVrpNPf7TTcgvgDEDD6NCEHMy8NNQJCGnMfLZzYoQj74yLjo9wx6MPVV29CvVzgi7qEcEUok3k7AuMg'
    const validation = validateSignature(signature)
    console.log(validation)
    // This example return 3 which correspond to VALID