cr3dentials_zktls 2.0.0
cr3dentials_zktls: ^2.0.0 copied to clipboard
Flutter bridge for the Cr3dentials zkTLS SDK: verifies users' accounts (configure, verify) and proves facts (login, capture, prove, claim) from Dart over the compiled native binary.
2.0.0 #
The first public release, on the zkTLS SDK 2.2.0 or later within 2.x. Version 2 of the plugin wraps
version 2 of the SDK. Published as cr3dentials_zktls; zktls_flutter is discontinued.
Zktls.configure(appKey, theme:, strings:)once, thenZktls.verify(platforms, reference)orZktls.verifyToken(token)per user, returning aVerifyOutcome. The theme is aZktlsTheme, the native SDK's name, which does not clash with Material'sTheme: colors are exactly#RRGGBBor#AARRGGBB, and the logo an image's name in the app.- The
refusederror code, with the reason fromrefusalOf. - The
invalidArgumenterror code (InvalidArgument):configuregiven a color in another form throws it on both platforms and changes nothing. - The proof flow:
ZktlsClient.create, thenlogin,capture,proveandclaim, withonProgress,cancelanddispose. A proof session survives the user leaving the app and a Wi-Fi to cellular handover: the plugin runs the SDK's lifecycle, and on Android its foreground service. - A login disclosure field left null keeps the SDK's standard text.
sdkErrorCodeOfreads theSdkErrorCodeof a call'sPlatformException.- Licensed Apache-2.0.