pub trait Config: Config + Config {
Show 16 associated items type AccessControl: Parameter + PublicCredentialsAccessControl<Self::AttesterId, Self::AuthorizationId, CtypeHashOf<Self>, CredentialIdOf<Self>>; type RuntimeHoldReason: From<HoldReason>; type AttesterId: Parameter + MaxEncodedLen; type AuthorizationId: Parameter + MaxEncodedLen; type EnsureOrigin: EnsureOrigin<Self::RuntimeOrigin, Success = <Self as Config>::OriginSuccess>; type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>; type CredentialHash: Hash<Output = Self::CredentialId>; type CredentialId: Parameter + MaxEncodedLen; type Currency: MutateHold<AccountIdOf<Self>, Reason = Self::RuntimeHoldReason>; type OriginSuccess: CallSources<Self::AccountId, AttesterOf<Self>>; type SubjectId: Parameter + MaxEncodedLen + TryFrom<Vec<u8>>; type WeightInfo: WeightInfo; type Deposit: Get<BalanceOf<Self>>; type MaxEncodedClaimsLength: Get<u32>; type MaxSubjectIdLength: Get<u32>; type BalanceMigrationManager: BalanceMigrationManager<AccountIdOf<Self>, BalanceOf<Self>>;
}
Expand description

Configuration trait of this pallet.

The main purpose of this trait is to act as an interface between this pallet and the runtime in which it is embedded in. A type, function, or constant in this trait is essentially left to be configured by the runtime that includes this pallet.

Consequently, a runtime that wants to include this pallet must implement this trait.

Required Associated Types§

source

type AccessControl: Parameter + PublicCredentialsAccessControl<Self::AttesterId, Self::AuthorizationId, CtypeHashOf<Self>, CredentialIdOf<Self>>

The access control logic.

source

type RuntimeHoldReason: From<HoldReason>

source

type AttesterId: Parameter + MaxEncodedLen

The identifier of the credential attester.

source

type AuthorizationId: Parameter + MaxEncodedLen

The identifier of the authorization info to perform access control for the different operations.

source

type EnsureOrigin: EnsureOrigin<Self::RuntimeOrigin, Success = <Self as Config>::OriginSuccess>

The origin allowed to issue/revoke/remove public credentials.

source

type RuntimeEvent: From<Event<Self>> + IsType<<Self as Config>::RuntimeEvent>

The ubiquitous event type.

source

type CredentialHash: Hash<Output = Self::CredentialId>

The hashing algorithm to derive a credential identifier from the credential content.

source

type CredentialId: Parameter + MaxEncodedLen

The type of a credential identifier.

source

type Currency: MutateHold<AccountIdOf<Self>, Reason = Self::RuntimeHoldReason>

The currency that is used to reserve funds for each credential.

source

type OriginSuccess: CallSources<Self::AccountId, AttesterOf<Self>>

The type of the origin when successfully converted from the outer origin.

source

type SubjectId: Parameter + MaxEncodedLen + TryFrom<Vec<u8>>

The type of the credential subject ID after being parsed from the raw attester-provided input.

source

type WeightInfo: WeightInfo

The weight info.

source

type Deposit: Get<BalanceOf<Self>>

The amount of tokens to reserve when attesting a public credential.

source

type MaxEncodedClaimsLength: Get<u32>

The maximum length in bytes of the encoded claims of a credential.

source

type MaxSubjectIdLength: Get<u32>

The maximum length in bytes of the raw credential subject identifier.

source

type BalanceMigrationManager: BalanceMigrationManager<AccountIdOf<Self>, BalanceOf<Self>>

Migration manager to handle new created entries

Implementors§