computeZkLoginAddress function

String computeZkLoginAddress({
  1. required String claimName,
  2. required String claimValue,
  3. required BigInt userSalt,
  4. required String iss,
  5. required String aud,
})

Computes a Sui zkLogin address from its individual components.

claimName/claimValue identify the OAuth claim that anchors the address (typically sub), userSalt is the user's salt, and iss/aud are the issuer and audience of the JWT.

Implementation

String computeZkLoginAddress({
  required String claimName,
  required String claimValue,
  required BigInt userSalt,
  required String iss,
  required String aud,
}) {
  return computeZkLoginAddressFromSeed(
    genAddressSeed(userSalt, claimName, claimValue, aud),
    iss,
  );
}