Skip to main content

Module iota::zklogin_verified_id

use iota::address; use iota::hex; use iota::object; use iota::tx_context; use std::ascii; use std::bcs; use std::option; use std::string; use std::vector;

Module Functions

pub check_zklogin_id

This function has been disabled.

public fun check_zklogin_id(_address: address, _key_claim_name: &std::string::String, _key_claim_value: &std::string::String, _issuer: &std::string::String, _audience: &std::string::String, _pin_hash: u256): bool

Implementation

public fun check_zklogin_id(     _address: address,     _key_claim_name: &String,     _key_claim_value: &String,     _issuer: &String,     _audience: &String,     _pin_hash: u256, ): bool {     assert!(false, EFunctionDisabled);     false }

pub verify_zklogin_id

This function has been disabled.

public fun verify_zklogin_id(_key_claim_name: std::string::String, _key_claim_value: std::string::String, _issuer: std::string::String, _audience: std::string::String, _pin_hash: u256, _ctx: &mut iota::tx_context::TxContext)

Implementation

public fun verify_zklogin_id(     _key_claim_name: String,     _key_claim_value: String,     _issuer: String,     _audience: String,     _pin_hash: u256,     _ctx: &mut TxContext, ) {     assert!(false, EFunctionDisabled); }

Structs

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

Fields
id: iota::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)

pub audience

Returns the audience (wallet) associated with the given VerifiedID

public fun audience(verified_id: &iota::zklogin_verified_id::VerifiedID): &std::string::String

Implementation

public fun audience(verified_id: &VerifiedID): &String {     &verified_id.audience }

pub delete

Delete a VerifiedID

public fun delete(verified_id: iota::zklogin_verified_id::VerifiedID)

Implementation

public fun delete(verified_id: VerifiedID) {     let VerifiedID { id, owner: _, key_claim_name: _, key_claim_value: _, issuer: _, audience: _ } =         verified_id;     id.delete(); }

pub issuer

Returns the issuer associated with the given VerifiedID

public fun issuer(verified_id: &iota::zklogin_verified_id::VerifiedID): &std::string::String

Implementation

public fun issuer(verified_id: &VerifiedID): &String {     &verified_id.issuer }

pub key_claim_name

Returns the name of the key claim associated with the given VerifiedID

public fun key_claim_name(verified_id: &iota::zklogin_verified_id::VerifiedID): &std::string::String

Implementation

public fun key_claim_name(verified_id: &VerifiedID): &String {     &verified_id.key_claim_name }

pub key_claim_value

Returns the value of the key claim associated with the given VerifiedID

public fun key_claim_value(verified_id: &iota::zklogin_verified_id::VerifiedID): &std::string::String

Implementation

public fun key_claim_value(verified_id: &VerifiedID): &String {     &verified_id.key_claim_value }

pub owner

Returns the address associated with the given VerifiedID

public fun owner(verified_id: &iota::zklogin_verified_id::VerifiedID): address

Implementation

public fun owner(verified_id: &VerifiedID): address {     verified_id.owner }

Constants

err EFunctionDisabled

const EFunctionDisabled: u64 = 0;