Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
-
data
Credential
(kr ::
KeyRole
) crypto
- = ScriptHashObj !( ScriptHash crypto)
- | KeyHashObj !( KeyHash kr crypto)
-
newtype
GenesisCredential
crypto =
GenesisCredential
{
- unGenesisCredential :: KeyHash ' Genesis crypto
- type PaymentCredential crypto = Credential ' Payment crypto
- data Ptr = Ptr ! SlotNo ! TxIx ! CertIx
- ptrSlotNo :: Ptr -> SlotNo
- ptrTxIx :: Ptr -> TxIx
- ptrCertIx :: Ptr -> CertIx
- type StakeCredential crypto = Credential ' Staking crypto
-
data
StakeReference
crypto
- = StakeRefBase !( StakeCredential crypto)
- | StakeRefPtr ! Ptr
- | StakeRefNull
Documentation
data Credential (kr :: KeyRole ) crypto Source #
Script hash or key hash for a payment or a staking object.
Note that credentials (unlike raw key hashes) do appear to vary from era to era, since they reference the hash of a script, which can change. This parameter is a phantom, however, so in actuality the instances will remain the same.
ScriptHashObj !( ScriptHash crypto) | |
KeyHashObj !( KeyHash kr crypto) |
Instances
newtype GenesisCredential crypto Source #
GenesisCredential | |
|
Instances
type PaymentCredential crypto = Credential ' Payment crypto Source #
Pointer to a slot number, transaction index and an index in certificate list.
Instances
type StakeCredential crypto = Credential ' Staking crypto Source #
data StakeReference crypto Source #
StakeRefBase !( StakeCredential crypto) | |
StakeRefPtr ! Ptr | |
StakeRefNull |