Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Address = Address { }
- pubKeyHashAddress :: PubKeyHash -> Address
- scriptHashAddress :: ValidatorHash -> Address
- toPubKeyHash :: Address -> Maybe PubKeyHash
- toValidatorHash :: Address -> Maybe ValidatorHash
- stakingCredential :: Address -> Maybe StakingCredential
Documentation
Address with two kinds of credentials, normal and staking.
Instances
pubKeyHashAddress :: PubKeyHash -> Address Source #
The address that should be targeted by a transaction output locked by the public key with the given hash.
scriptHashAddress :: ValidatorHash -> Address Source #
The address that should be used by a transaction output locked by the given validator script hash.
toPubKeyHash :: Address -> Maybe PubKeyHash Source #
The PubKeyHash of the address, if any
toValidatorHash :: Address -> Maybe ValidatorHash Source #
The validator hash of the address, if any
stakingCredential :: Address -> Maybe StakingCredential Source #
The staking credential of an address (if any)