Safe Haskell | None |
---|---|
Language | Haskell2010 |
The Atala Mirror application that initialises the state machine
Synopsis
- type MirrorSchema = Endpoint "issue" CredentialOwnerReference .\/ Endpoint "revoke" CredentialOwnerReference
- data CredentialOwnerReference = CredentialOwnerReference {
- coTokenName :: TokenName
- coOwner :: Wallet
- data MirrorError
- = StateNotFound TokenName PaymentPubKeyHash
- | SetupError ContractError
- | MirrorEndpointError ContractError
- | CreateTokenTxError ContractError
- | StateMachineError SMContractError
- mirror :: (HasEndpoint "revoke" CredentialOwnerReference s, HasEndpoint "issue" CredentialOwnerReference s) => Contract w s MirrorError ()
Documentation
type MirrorSchema = Endpoint "issue" CredentialOwnerReference .\/ Endpoint "revoke" CredentialOwnerReference Source #
data CredentialOwnerReference Source #
Reference to a credential tied to a specific owner (public key address). From this, and the public key of the Mirror instance, we can compute the address of the state machine script that locks the token for the owner.
CredentialOwnerReference | |
|
Instances
data MirrorError Source #
StateNotFound TokenName PaymentPubKeyHash | |
SetupError ContractError | |
MirrorEndpointError ContractError | |
CreateTokenTxError ContractError | |
StateMachineError SMContractError |
Instances
mirror :: (HasEndpoint "revoke" CredentialOwnerReference s, HasEndpoint "issue" CredentialOwnerReference s) => Contract w s MirrorError () Source #