zklogin_dart 0.4.0
zklogin_dart: ^0.4.0 copied to clipboard
Sui zkLogin Dart SDK for deriving zkLogin addresses, generating ephemeral nonces, and building zkLogin signatures from OAuth/OIDC JWTs.
0.2.0 #
Breaking #
- Require
sui_dart^0.9.0. Its transport refactor removed the JSON-RPC surface and reshaped the transaction-build options (SignOptions.clientinstead ofresolutionClient), so consumers onsui_dart0.8.x must migrate. zkLogin's own API is unchanged.
0.1.0 #
Synced to f898c13.
Breaking #
getExtendedEphemeralPublicKeyreturns the flag-prefixed base64 key (toSuiPublicKey(), what the prover expects) instead of a decimal string.jwtToAddress/computeZkLoginAddressdefault to the current (non-legacy) address and take alegacyAddressflag; seeds with leading zeros now derive differently — passlegacyAddress: truefor the old result.- Bump
sui_dartto^0.8.1.
Security #
genAddressSeedrejects a key-claim name/value oraudwith a JSON escape (",\, control char) — the circuit hashes raw JWT bytes, so escaped values would derive a different address.
0.0.6 #
- Moved to scallop-io/zklogin-dart; vendored Poseidon into
lib/src/poseidon(pure Dart, all platforms — removes the accidental Flutter dependency). - Bump
sui_dartto^0.5.0, Dart SDK to^3.11.0; drop thepointycastleoverride; switchflutter_lints→lints. - JWT parsing throws
FormatExceptionon malformed tokens / invalid claim types (wasRangeError/TypeError). - Add example, docs, metadata.
0.0.5 #
- Platform-agnostic tests (
flutter_test→test); upgrade Sui lib.
0.0.4 #
- Upgrade Sui.
0.0.3 #
- Fix
getExtendedEphemeralPublicKey.
0.0.2 #
- Add zkLogin test.
0.0.1 #
- Initial version, created by Mofa Labs.