Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- data Address
-
class
HasNetworkDiscriminant
key =>
PaymentAddress
key
where
- paymentAddress :: NetworkDiscriminant key -> key ' PaymentK XPub -> Address
-
class
HasNetworkDiscriminant
key =>
StakeAddress
key
where
- stakeAddress :: NetworkDiscriminant key -> key ' DelegationK XPub -> Address
-
class
PaymentAddress
key =>
DelegationAddress
key
where
- delegationAddress :: NetworkDiscriminant key -> key ' PaymentK XPub -> key ' DelegationK XPub -> Address
-
class
PaymentAddress
key =>
PointerAddress
key
where
- pointerAddress :: NetworkDiscriminant key -> key ' PaymentK XPub -> ChainPointer -> Address
-
data
ChainPointer
=
ChainPointer
{
- slotNum :: Natural
- transactionIndex :: Natural
- outputIndex :: Natural
- base58 :: Address -> Text
- fromBase58 :: Text -> Maybe Address
- bech32 :: Address -> Text
- bech32With :: HumanReadablePart -> Address -> Text
- fromBech32 :: Text -> Maybe Address
Address
An
Address
type representing
Cardano
addresses. Internals are
irrevelant to the user.
Since: 1.0.0
Instances
Eq Address Source # | |
Ord Address Source # | |
Show Address Source # | |
Generic Address Source # | |
NFData Address Source # | |
Defined in Cardano.Address |
|
type Rep Address Source # | |
Defined in Cardano.Address
type
Rep
Address
=
D1
('
MetaData
"Address" "Cardano.Address" "cardano-addresses-3.11.0-D40zGSHo3QMFNy9OpWafYI" '
True
) (
C1
('
MetaCons
"Address" '
PrefixI
'
True
) (
S1
('
MetaSel
('
Just
"unAddress") '
NoSourceUnpackedness
'
NoSourceStrictness
'
DecidedLazy
) (
Rec0
ByteString
)))
|
class HasNetworkDiscriminant key => PaymentAddress key where Source #
Encoding of addresses for certain key types and backend targets.
Since: 1.0.0
paymentAddress :: NetworkDiscriminant key -> key ' PaymentK XPub -> Address Source #
Convert a public key to a payment
Address
valid for the given
network discrimination.
Since: 1.0.0
Instances
PaymentAddress Byron Source # | |
Defined in Cardano.Address.Style.Byron paymentAddress :: NetworkDiscriminant Byron -> Byron ' PaymentK XPub -> Address Source # |
|
PaymentAddress Icarus Source # | |
Defined in Cardano.Address.Style.Icarus paymentAddress :: NetworkDiscriminant Icarus -> Icarus ' PaymentK XPub -> Address Source # |
class HasNetworkDiscriminant key => StakeAddress key where Source #
Encoding of addresses for certain key types and backend targets.
Since: 2.0.0
stakeAddress :: NetworkDiscriminant key -> key ' DelegationK XPub -> Address Source #
Convert a delegation key to a stake
Address
(aka: reward account address)
valid for the given network discrimination.
Since: 2.0.0
class PaymentAddress key => DelegationAddress key where Source #
Encoding of delegation addresses for certain key types and backend targets.
Since: 2.0.0
:: NetworkDiscriminant key | |
-> key ' PaymentK XPub |
Payment key |
-> key ' DelegationK XPub |
Delegation key |
-> Address |
Convert a public key and a delegation key to a delegation
Address
valid
for the given network discrimination. Funds sent to this address will be
delegated according to the delegation settings attached to the delegation
key.
Since: 2.0.0
class PaymentAddress key => PointerAddress key where Source #
Encoding of pointer addresses for payment key type, pointer to delegation certificate in the blockchain and backend targets.
Since: 2.0.0
:: NetworkDiscriminant key | |
-> key ' PaymentK XPub |
Payment key |
-> ChainPointer |
Pointer to locate delegation key in blockchain |
-> Address |
Convert a payment public key and a pointer to delegation key in the
blockchain to a delegation
Address
valid for the given network
discrimination. Funds sent to this address will be delegated according to
the delegation settings attached to the delegation key located by
ChainPointer
.
Since: 2.0.0
data ChainPointer Source #
A
ChainPointer
type representing location of some object
in the blockchain (eg., delegation certificate). This can be achieved
unambiguously by specifying slot number, transaction index and the index
in the object list (eg., certification list).
For delegation certificates, alternatively, the delegation key can be used and
then
DelegationAddress
can be used.
Since: 2.0.0
ChainPointer | |
|
Instances
Conversion From / To Text
bech32With :: HumanReadablePart -> Address -> Text Source #