@websign/sdk - v0.1.0
    Preparing search index...

    Function fingerprint

    • The verification code of digest, identical to the one the app shows (same algorithm as websign-protocol verification_code). Show it next to your own Sign button so people can compare what they are about to sign with what the app displays.

      Parameters

      Returns VerificationCode

      const { text } = fingerprint(await crypto.subtle.digest("SHA-256", signedAttributes));
      code.textContent = text; // "7F3A 9C21 E0B4 55D8"

      InvalidRequest when digest has fewer than 8 bytes.