verify method

Future<bool> verify(
  1. AuthenticationChallenge challenge
)

Implementation

Future<bool> verify(AuthenticationChallenge challenge) => _generator.verify(
  buildAuthenticationTranscript(
    version: kAuthenticationProtocolVersion,
    serverId: challenge.serverId,
    channel: challenge.channel,
    issuedAt: challenge.issuedAt,
    expiresAt: challenge.expiresAt,
    challenge: challenge.nonce,
  ),
  signature: Signature(
    signature,
    publicKey: SimplePublicKey(publicKey, type: KeyPairType.ed25519),
  ),
);