Skip to main content

create_token

Function create_token 

Source
pub fn create_token(
    delegator_keypair: &IdentityKeypair,
    ai_member: &str,
    human: &str,
    project_id: &str,
    ttl: Option<Duration>,
) -> CreateTokenResult
Expand description

Create a delegation token with dual signatures.

Returns the token and the token_key public key (to store in project.yaml).