Copyright | © 2021 IOHK |
---|---|
License | Apache-2.0 |
Safe Haskell | None |
Language | Haskell2010 |
Address books consist of a
Prologue
and discovered addresses (
Discoveries
).
Synopsis
-
class
(
Eq
(
Prologue
s),
Eq
(
Discoveries
s)) =>
AddressBookIso
s
where
- data Prologue s :: Type
- data Discoveries s :: Type
- addressIso :: Iso' s ( Prologue s, Discoveries s)
- getPrologue :: AddressBookIso s => s -> Prologue s
- getDiscoveries :: AddressBookIso s => s -> Discoveries s
- newtype SeqAddressMap (c :: Role ) (key :: Depth -> Type -> Type ) = SeqAddressMap ( Map ( KeyFingerprint "payment" key) ( Index ' Soft ' AddressK , AddressState ))
- newtype SharedAddressMap (c :: Role ) (key :: Depth -> Type -> Type ) = SharedAddressMap ( Map ( KeyFingerprint "payment" key) ( Index ' Soft ' ScriptK , AddressState ))
Documentation
class ( Eq ( Prologue s), Eq ( Discoveries s)) => AddressBookIso s where Source #
FIXME LATER during ADP-1043:
Move
Prologue
and
Discoveries
closer into address types.
data Prologue s :: Type Source #
Address information contained in the prologue of the address book, such as public keys or the address gap.
data Discoveries s :: Type Source #
Addresses that were collected during discovery on the blockchain.
addressIso :: Iso' s ( Prologue s, Discoveries s) Source #
Isomorphism between the address book type
s
and its two components.
Instances
getPrologue :: AddressBookIso s => s -> Prologue s Source #
getDiscoveries :: AddressBookIso s => s -> Discoveries s Source #
newtype SeqAddressMap (c :: Role ) (key :: Depth -> Type -> Type ) Source #
Address data from sequential address pool.
The phantom type parameter
c
prevents mixing up
the internal with the external pool.
SeqAddressMap ( Map ( KeyFingerprint "payment" key) ( Index ' Soft ' AddressK , AddressState )) |
Instances
Eq ( SeqAddressMap c key) Source # | |
Defined in Cardano.Wallet.Address.Book (==) :: SeqAddressMap c key -> SeqAddressMap c key -> Bool Source # (/=) :: SeqAddressMap c key -> SeqAddressMap c key -> Bool Source # |
newtype SharedAddressMap (c :: Role ) (key :: Depth -> Type -> Type ) Source #
SharedAddressMap ( Map ( KeyFingerprint "payment" key) ( Index ' Soft ' ScriptK , AddressState )) |