mobile_proof_plugin 0.2.0
mobile_proof_plugin: ^0.2.0 copied to clipboard
Flutter plugin for TLSN-based mobile proofs with proxy/MPC auto-fallback, WebView capture, and custom provider flows.
Changelog #
0.2.0 #
- [Security] Server-name binding at verify time.
verifyProofnow cross-checks the authenticated server name from the upstreamPresentation::verifyoutput against the artifact'stranscriptSummary.targetHost. Prevents a prover from substituting a proof for a different host. Identical for MPC and proxy modes. - [Security] Empty
trustedNotaryKeysis now a hard error. Previously verification logged a warning and proceeded; misconfigured deployments would have accepted any notary signature. Now refuses to verify with an empty trust list. - Added
ProofArtifact.targetHostgetter so relying parties can assert the bound host matches the provider they requested. - Added proxy mode (TLSNotary PR #1122 integration): the verifier acts as a transparent byte pump and the prover runs a real rustls handshake while proving the TLS key material in zero knowledge. Roughly 4–9× faster than MPC for compatible origins.
- Added
ProofMode.auto(new default): attempt proxy first, fall back to MPC on fallback-eligible failures. Fallback is suppressed once the HTTP request has reached the origin so the request is never re-sent. - Added
ProofRequest.disableFallbackflag and thedisableFallback:parameter onattestProviderfor debugging / cost-sensitive callers. - Added
VerifierInfoClientthat fetches/v1/infofor preflight so auto mode skips the proxy attempt when the verifier or target host rules it out. - Added
DataProviderConfig.proxyCompatibleparsed fromproviders.json. Whenfalse, auto mode skips the proxy attempt. - Added
ProofArtifact.proofModegetter and thepayload.modeAttemptstelemetry array for inspecting fallback timelines. - Added 6 proxy-mode
ProofErrorCodevalues:proxyDestinationNotAllowed,proxyDialFailed,proxyByteCapExceeded,proxyTlsCiphersuiteMismatch,proxyEmsRequired,proxyKillSwitchActive. - Removed
TransportConfig.proxyUrl(was unused; mode selection now lives onProofRequest).
0.1.1 #
- Fix native artifact distribution for pub.dev consumers by moving large binaries out of the package tarball.
- Add automatic iOS native framework download in podspec from GitHub
Releases (
MobileProofRustCore.xcframework.zip). - Add automatic Android native library download in Gradle from GitHub
Releases (
mobile_proof_plugin_android_jniLibs.zip). - Add release tooling and docs for uploading native assets before
flutter pub publish.
0.1.0 #
- Initial public release of
mobile_proof_plugin. - Added one-call provider attestation API with plugin-managed WebView flow.
- Added provider registry-based custom MPC configuration support.
- Added proof export models, runtime validation, and platform-channel bridges.