Module sui::zklogin_verified_id
- Struct VerifiedID
- Constants
- Function owner
- Function key_claim_name
- Function key_claim_value
- Function issuer
- Function audience
- Function delete
- Function verify_zklogin_id
- Function check_zklogin_id
- Function check_zklogin_id_internal
use std::ascii;
use std::bcs;
use std::option;
use std::string;
use std::vector;
use sui::address;
use sui::hex;
use sui::object;
use sui::tx_context;
Struct VerifiedID
Possession of a VerifiedID proves that the user's address was created using zklogin and the given parameters.
public struct VerifiedID has key
Click to open
Fields
- id: sui::object::UID
- The ID of this VerifiedID
- owner: address
- The address this VerifiedID is associated with
- key_claim_name: std::string::String
- The name of the key claim
- key_claim_value: std::string::String
- The value of the key claim
- issuer: std::string::String
- The issuer
- audience: std::string::String
- The audience (wallet)
Constants
const EFunctionDisabled: u64 = 0;
Function owner
Returns the address associated with the given VerifiedID
public fun owner(verified_id: &sui::zklogin_verified_id::VerifiedID): address
Function key_claim_name
Returns the name of the key claim associated with the given VerifiedID
public fun key_claim_name(verified_id: &sui::zklogin_verified_id::VerifiedID): &std::string::String
Function key_claim_value
Returns the value of the key claim associated with the given VerifiedID
public fun key_claim_value(verified_id: &sui::zklogin_verified_id::VerifiedID): &std::string::String
Function issuer
Returns the issuer associated with the given VerifiedID
public fun issuer(verified_id: &sui::zklogin_verified_id::VerifiedID): &std::string::String