address library
Constants
- MAX_HEADER_LEN_B64 → const int
- Maximum length (in base64url characters) of a JWT header supported by the zkLogin circuit.
- MAX_PADDED_UNSIGNED_JWT_LEN → const int
- Maximum length (in bytes) of the SHA-2 padded unsigned JWT supported by the zkLogin circuit.
Functions
-
computeZkLoginAddress(
{required String claimName, required String claimValue, required BigInt userSalt, required String iss, required String aud}) → String - Computes a Sui zkLogin address from its individual components.
-
decodeJwt(
String jwt) → Map< String, dynamic> -
Decodes the payload of a compact-serialized
jwtinto its JSON claims. -
jwtToAddress(
String jwt, BigInt userSalt) → String -
Derives the Sui zkLogin address for the given
jwtanduserSalt. -
lengthChecks(
String jwt) → void -
Validates that
jwtfits within the size limits enforced by the zkLogin circuit.