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 jwt into its JSON claims.
jwtToAddress(String jwt, BigInt userSalt) String
Derives the Sui zkLogin address for the given jwt and userSalt.
lengthChecks(String jwt) → void
Validates that jwt fits within the size limits enforced by the zkLogin circuit.