crossmint_verifiable_credentials 0.1.2
crossmint_verifiable_credentials: ^0.1.2 copied to clipboard
Pure-Dart verifiable credentials primitives for the Crossmint Flutter SDK — credential models, issuance, and verification.
0.1.2 #
- Docs: dartdoc style-guide fixes in public-surface
///comments.
0.1.1 #
- Fix:
CrossmintVcRpcClient.ethCallandCrossmintDelegationSignatureService.getDelegationSignaturenow wrapjsonDecode(response.body)in try/catch and rethrow asCrossmintCredentialsException(with the raw body incause). Closes the typed-exception contract: a 200 response with malformed JSON (e.g. an HTML error page from a gateway) no longer leaks rawFormatExceptionto callers. - Fix:
CrossmintCredentialService._loadCredentialDocumentapplies the same wrap, so a malformed IPFS-hosted credential document raisesCrossmintCredentialsExceptioninstead ofFormatException. - Fix: hardened
abiDecodeStringagainst malformed ABI payloads —int.parsefailures on the length word or data bytes now return'', and a declared length that exceeds the actual packed payload is bailed on (previously raisedRangeErrorfromsubstring). The function never throws for untrusted on-chain data, restoring the documented contract ofgetContractUri()returningnullon malformed metadata. - Restore: re-introduced
bool verifyEip712Proof()as an@Deprecatedshim that delegates to the new detailed API. The earlier change to returnEip712VerificationResultwas a needless breaking rename; callers usingif (verifyEip712Proof(c)) {...}keep compiling with a deprecation warning. New code should useverifyEip712ProofDetailedand pattern-match on the sealed result. - Docs: expanded dartdoc coverage on the public surface for the pub.dev
landing page, plus a follow-up pass that fixed broken
[reference]link targets and dartdoc format regressions surfaced by the docs build.
0.1.0 #
- First public release on pub.dev
0.0.1 #
- Initial internal extraction from
crossmint_flutter - Added verifiable credentials contracts, models, and API service
- Added internal default credentials repository export for monorepo wiring