Safe Haskell | None |
---|---|
Language | Haskell2010 |
Certificates embedded in transactions
Synopsis
- data Certificate
- = StakeAddressRegistrationCertificate StakeCredential
- | StakeAddressDeregistrationCertificate StakeCredential
- | StakeAddressDelegationCertificate StakeCredential PoolId
- | StakePoolRegistrationCertificate StakePoolParameters
- | StakePoolRetirementCertificate PoolId EpochNo
- | GenesisKeyDelegationCertificate (Hash GenesisKey) (Hash GenesisDelegateKey) (Hash VrfKey)
- | VestedKeyDelegationCertificate (Hash VestedKey) (Hash VestedDelegateKey) (Hash VrfKey)
- | MIRCertificate MIRPot MIRTarget
- makeStakeAddressRegistrationCertificate ∷ StakeCredential → Certificate
- makeStakeAddressDeregistrationCertificate ∷ StakeCredential → Certificate
- makeStakeAddressDelegationCertificate ∷ StakeCredential → PoolId → Certificate
- type PoolId = Hash StakePoolKey
- makeStakePoolRegistrationCertificate ∷ StakePoolParameters → Certificate
- makeStakePoolRetirementCertificate ∷ PoolId → EpochNo → Certificate
- data StakePoolParameters = StakePoolParameters {}
- data StakePoolRelay
- = StakePoolRelayIp (Maybe IPv4) (Maybe IPv6) (Maybe PortNumber)
- | StakePoolRelayDnsARecord ByteString (Maybe PortNumber)
- | StakePoolRelayDnsSrvRecord ByteString
- data StakePoolMetadataReference = StakePoolMetadataReference {}
- makeMIRCertificate ∷ MIRPot → MIRTarget → Certificate
- makeGenesisKeyDelegationCertificate ∷ Hash GenesisKey → Hash GenesisDelegateKey → Hash VrfKey → Certificate
- makeVestedKeyDelegationCertificate ∷ Hash VestedKey → Hash VestedDelegateKey → Hash VrfKey → Certificate
- data MIRTarget
- toSophieCertificate ∷ Certificate → DCert StandardCrypto
- fromSophieCertificate ∷ DCert StandardCrypto → Certificate
- toSophiePoolParams ∷ StakePoolParameters → PoolParams StandardCrypto
- fromSophiePoolParams ∷ PoolParams StandardCrypto → StakePoolParameters
- data family AsType t
Documentation
data Certificate Source #
Instances
Registering stake address and delegating
type PoolId = Hash StakePoolKey Source #
Registering stake pools
data StakePoolParameters Source #
Instances
Eq StakePoolParameters Source # | |
Defined in Bcc.Api.Certificate | |
Show StakePoolParameters Source # | |
Defined in Bcc.Api.Certificate |
data StakePoolRelay Source #
StakePoolRelayIp (Maybe IPv4) (Maybe IPv6) (Maybe PortNumber) | One or both of IPv4 & IPv6 |
StakePoolRelayDnsARecord ByteString (Maybe PortNumber) | An DNS name pointing to a |
StakePoolRelayDnsSrvRecord ByteString | A DNS name pointing to a |
Instances
Eq StakePoolRelay Source # | |
Defined in Bcc.Api.Certificate (==) ∷ StakePoolRelay → StakePoolRelay → Bool Source # (/=) ∷ StakePoolRelay → StakePoolRelay → Bool Source # | |
Show StakePoolRelay Source # | |
Defined in Bcc.Api.Certificate |
data StakePoolMetadataReference Source #
Instances
Special certificates
makeMIRCertificate ∷ MIRPot → MIRTarget → Certificate Source #
makeGenesisKeyDelegationCertificate ∷ Hash GenesisKey → Hash GenesisDelegateKey → Hash VrfKey → Certificate Source #
makeVestedKeyDelegationCertificate ∷ Hash VestedKey → Hash VestedDelegateKey → Hash VrfKey → Certificate Source #
The MIRTarget
determines the target of a MIRCertificate
.
A MIRCertificate
moves entropic from either the reserves or the treasury
to either a collection of stake credentials or to the other pot.
StakeAddressesMIR [(StakeCredential, Entropic)] | Use |
SendToReservesMIR Entropic | Use |
SendToTreasuryMIR Entropic | Use |
Internal conversion functions
toSophieCertificate ∷ Certificate → DCert StandardCrypto Source #
fromSophieCertificate ∷ DCert StandardCrypto → Certificate Source #
toSophiePoolParams ∷ StakePoolParameters → PoolParams StandardCrypto Source #
fromSophiePoolParams ∷ PoolParams StandardCrypto → StakePoolParameters Source #
Data family instances
A family of singleton types used in this API to indicate which type to use where it would otherwise be ambiguous or merely unclear.
Values of this type are passed to deserialisation functions for example.