verifyEip712Proof function

  1. @Deprecated('Returns `true` for both fully verified and structural-only proofs, which ' 'is misleading. Use verifyEip712ProofDetailed() and pattern-match on the ' 'returned Eip712VerificationResult. Will be removed in a future release.')
bool verifyEip712Proof(
  1. CrossmintVerifiableCredential credential
)

Backward-compatible boolean wrapper for verifyEip712ProofDetailed.

Returns true for both fully verified proofs (reserved for a future implementation) and structural-only proofs — matching the pre-0.2.0 behaviour. The conflation that motivated the new detailed API is the reason this helper is marked deprecated: callers cannot distinguish "cryptographically verified" from "envelope parses". Prefer verifyEip712ProofDetailed and pattern-match on the result.

Implementation

@Deprecated(
  'Returns `true` for both fully verified and structural-only proofs, which '
  'is misleading. Use verifyEip712ProofDetailed() and pattern-match on the '
  'returned Eip712VerificationResult. Will be removed in a future release.',
)
bool verifyEip712Proof(CrossmintVerifiableCredential credential) {
  final Eip712VerificationResult result = verifyEip712ProofDetailed(credential);
  return result is Eip712VerificationValid ||
      result is Eip712VerificationStructuralOnly;
}