Module 0x1::permissioned_delegation

The permissioned signer feature has been removed. This module remains as a shell for upgrade compatibility: type definitions are unchanged and the public functions abort with EPERMISSIONED_SIGNER_REMOVED.

use 0x1::auth_data;
use 0x1::big_ordered_map;
use 0x1::ed25519;
use 0x1::error;
use 0x1::option;
use 0x1::permissioned_signer;
use 0x1::rate_limiter;

Enum AccountDelegation

#[deprecated]
enum AccountDelegation has store
Variants
V1
Fields
handle: permissioned_signer::StorablePermissionedHandle
rate_limiter: option::Option<rate_limiter::RateLimiter>

Enum DelegationKey

#[deprecated]
enum DelegationKey has copy, drop, store
Variants
Ed25519PublicKey
Fields
0: ed25519::UnvalidatedPublicKey

Resource RegisteredDelegations

#[deprecated]
struct RegisteredDelegations has key
Fields
delegations: big_ordered_map::BigOrderedMap<permissioned_delegation::DelegationKey, permissioned_delegation::AccountDelegation>

Constants

The permissioned signer feature has been removed.

const EPERMISSIONED_SIGNER_REMOVED: u64 = 7;

Function gen_ed25519_key

#[deprecated]
public fun gen_ed25519_key(key: ed25519::UnvalidatedPublicKey): permissioned_delegation::DelegationKey
Implementation
public fun gen_ed25519_key(key: UnvalidatedPublicKey): DelegationKey {
    DelegationKey::Ed25519PublicKey(key)
}

Function add_permissioned_handle

#[deprecated]
public fun add_permissioned_handle(_master: &signer, _key: permissioned_delegation::DelegationKey, _rate_limiter: option::Option<rate_limiter::RateLimiter>, _expiration_time: u64): signer
Implementation
public fun add_permissioned_handle(
    _master: &signer,
    _key: DelegationKey,
    _rate_limiter: Option<RateLimiter>,
    _expiration_time: u64,
): signer {
    abort error::unavailable(EPERMISSIONED_SIGNER_REMOVED)
}

Function remove_permissioned_handle

#[deprecated]
public fun remove_permissioned_handle(_master: &signer, _key: permissioned_delegation::DelegationKey)
Implementation
public fun remove_permissioned_handle(
    _master: &signer,
    _key: DelegationKey,
) {
    abort error::unavailable(EPERMISSIONED_SIGNER_REMOVED)
}

Function permissioned_signer_by_key

#[deprecated]
public fun permissioned_signer_by_key(_master: &signer, _key: permissioned_delegation::DelegationKey): signer
Implementation
public fun permissioned_signer_by_key(
    _master: &signer,
    _key: DelegationKey,
): signer {
    abort error::unavailable(EPERMISSIONED_SIGNER_REMOVED)
}

Function handle_address_by_key

#[deprecated]
public fun handle_address_by_key(_master: address, _key: permissioned_delegation::DelegationKey): address
Implementation
public fun handle_address_by_key(_master: address, _key: DelegationKey): address {
    abort error::unavailable(EPERMISSIONED_SIGNER_REMOVED)
}

Function authenticate

#[deprecated]
public fun authenticate(_account: signer, _abstraction_auth_data: auth_data::AbstractionAuthData): signer
Implementation
public fun authenticate(
    _account: signer,
    _abstraction_auth_data: AbstractionAuthData
): signer {
    abort error::unavailable(EPERMISSIONED_SIGNER_REMOVED)
}