Authentication

Defines:

public struct AuthenticationConfig has key {
        id: UID,
        authentication_soul: Option<TypeName>
}

Assert Authentication

The assert_authentication function has these effects:

  1. Throws error (370 - ENotAuthenticated) if the Soul does not match the type in the AuthenticationConfig, or there is no configured Soul Type

Update Soul

The update_soul function has these effects:

  1. Sets the AuthenticationConfig to the Soul Type

Verify Authentication

The verify_authentication function has these effects:

  1. Returns boolean based on if the Soul matches the type in the AuthenticationConfig, or there is no configured Soul Type

Last updated