Copyright | 2022-2024 Vergara Technologies |
---|---|
License | MIT |
Maintainer | pitmutt@vergara.tech |
Stability | experimental |
Portability | unknown |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
ZcashHaskell.Types
Description
The types used by the ZcashHaskell library to interact with the Zcash blockchain
Synopsis
- newtype Seed = Seed ByteString
- newtype Phrase = Phrase ByteString
- data Scope
- data RawData = RawData {
- hrp :: !ByteString
- bytes :: !ByteString
- data ZcashNet
- = MainNet
- | TestNet
- | RegTestNet
- type AccountId = Int
- getTransparentPrefix :: ZcashNet -> TransparentType -> (Word8, Word8)
- data CoinType
- getValue :: CoinType -> Word32
- data Transaction = Transaction {
- tx_id :: !HexString
- tx_height :: !Int
- tx_conf :: !Int
- tx_expiry :: !Int
- tx_transpBundle :: !(Maybe TransparentBundle)
- tx_saplingBundle :: !(Maybe SaplingBundle)
- tx_orchardBundle :: !(Maybe OrchardBundle)
- data TransparentBundle = TransparentBundle {}
- fromRawTBundle :: RawTBundle -> Maybe TransparentBundle
- fromRawTxIn :: RawTxIn -> TxIn
- fromRawTxOut :: RawTxOut -> TxOut
- sapExtSpendingKeyHrp :: String
- sapExtFullViewingKeyHrp :: String
- sapPaymentAddressHrp :: String
- sapTestExtSpendingKeyHrp :: String
- sapTestExtFullViewingKeyHrp :: String
- sapTestPaymentAddressHrp :: String
- uniPaymentAddressHrp :: Text
- uniFullViewingKeyHrp :: Text
- uniIncomingViewingKeyHrp :: Text
- uniTestPaymentAddressHrp :: Text
- uniTestFullViewingKeyHrp :: Text
- uniTestIncomingViewingKeyHrp :: Text
- data RpcCall = RpcCall {}
- data RpcResponse r = MakeRpcResponse {}
- data RpcError = RpcError {}
- data BlockResponse = BlockResponse {}
- data RawTxResponse = RawTxResponse {
- rt_id :: !HexString
- rt_hex :: !HexString
- rt_shieldedSpends :: ![ShieldedSpend]
- rt_shieldedOutputs :: ![ShieldedOutput]
- rt_orchardActions :: ![OrchardAction]
- rt_blockheight :: !Integer
- rt_confirmations :: !Integer
- rt_blocktime :: !Integer
- data ZebraTxResponse = ZebraTxResponse {}
- data RawZebraTx = RawZebraTx {
- zt_id :: !HexString
- zt_locktime :: !Word32
- zt_expiry :: !Word32
- zt_tBundle :: !RawTBundle
- zt_sBundle :: !RawSBundle
- zt_oBundle :: !RawOBundle
- data RawTBundle = RawTBundle {}
- data RawSBundle = RawSBundle {
- zsb_empty :: !Bool
- zsb_spends :: ![ShieldedSpend]
- zsb_outputs :: ![ShieldedOutput]
- zsb_value :: !Int64
- zsb_sig :: !HexString
- data SaplingBundle = SaplingBundle {
- sbSpends :: ![ShieldedSpend]
- sbOutputs :: ![ShieldedOutput]
- sbValue :: !Int64
- sbSig :: !HexString
- fromRawSBundle :: RawSBundle -> Maybe SaplingBundle
- data RawOBundle = RawOBundle {
- zob_empty :: !Bool
- zob_actions :: ![OrchardAction]
- zob_flags :: !OrchardFlags
- zob_value :: !Int64
- zob_anchor :: !HexString
- zob_proof :: !HexString
- zob_sig :: !HexString
- data OrchardBundle = OrchardBundle {}
- fromRawOBundle :: RawOBundle -> Maybe OrchardBundle
- data OrchardFlags = OrchardFlags {
- of_spends :: !Bool
- of_outputs :: !Bool
- data ZebraGetInfo = ZebraGetInfo {
- zgi_build :: !Text
- zgi_subversion :: !Text
- data ZebraGetBlockChainInfo = ZebraGetBlockChainInfo {}
- data TransparentType
- type TransparentSpendingKey = XPrvKey
- data TransparentReceiver = TransparentReceiver {
- tr_type :: !TransparentType
- tr_bytes :: !HexString
- data TransparentAddress = TransparentAddress {}
- data ExchangeAddress = ExchangeAddress {}
- data RawTxIn = RawTxIn {
- rti_outpoint :: !RawOutPoint
- rti_script :: !ByteString
- rti_seq :: !Word32
- data RawTxOut = RawTxOut {
- rto_amt :: !Word64
- rto_script :: !ByteString
- data RawOutPoint = RawOutPoint {
- rop_hash :: !ByteString
- rop_n :: !Word32
- newtype SaplingSpendingKey = SaplingSpendingKey ByteString
- newtype SaplingReceiver = SaplingReceiver ByteString
- data SaplingAddress = SaplingAddress {}
- data ShieldedSpend = ShieldedSpend {}
- data ShieldedOutput = ShieldedOutput {}
- newtype SaplingCommitmentTree = SaplingCommitmentTree {}
- data SaplingRawTree = SaplingRawTree {}
- data SaplingTree = SaplingTree {}
- data SaplingFrontier = SaplingFrontier {}
- newtype SaplingWitness = SaplingWitness {}
- newtype OrchardSpendingKey = OrchardSpendingKey ByteString
- newtype OrchardReceiver = OrchardReceiver ByteString
- data UnifiedAddress = UnifiedAddress {
- ua_net :: !ZcashNet
- o_rec :: !(Maybe OrchardReceiver)
- s_rec :: !(Maybe SaplingReceiver)
- t_rec :: !(Maybe TransparentReceiver)
- data RawUA = RawUA {
- raw_net :: !Word8
- raw_o :: !ByteString
- raw_s :: !ByteString
- raw_t :: !ByteString
- raw_to :: !ByteString
- data ValidAddress
- data ValidVk
- data UnifiedFullViewingKey = UnifiedFullViewingKey {
- net :: !Word8
- o_key :: !ByteString
- s_key :: !ByteString
- t_key :: !ByteString
- data UnifiedIncomingViewingKey = UnifiedIncomingViewingKey {
- i_net :: !Word8
- i_o_key :: !ByteString
- i_s_key :: !ByteString
- i_t_key :: !ByteString
- data OrchardAction = OrchardAction {}
- data MerklePath = MerklePath {
- mp_position :: !Int32
- mp_path :: ![HexString]
- newtype OrchardCommitmentTree = OrchardCommitmentTree {}
- data OrchardRawTree = OrchardRawTree {}
- data OrchardTree = OrchardTree {}
- data OrchardFrontier = OrchardFrontier {}
- newtype OrchardWitness = OrchardWitness {}
- data DecodedNote = DecodedNote {
- a_value :: !Int64
- a_recipient :: !ByteString
- a_memo :: !ByteString
- a_nullifier :: !HexString
- a_rho :: !ByteString
- a_rseed :: !Rseed
- data Rseed = Rseed {
- rs_kind :: !Word8
- rs_bytes :: !ByteString
- data TransparentTxSpend = TransparentTxSpend {
- ts_sk :: !ByteString
- ts_utxo :: !RawOutPoint
- ts_coin :: !RawTxOut
- data SaplingTxSpend = SaplingTxSpend {
- ss_sk :: !ByteString
- ss_note :: !DecodedNote
- ss_iw :: !MerklePath
- data OrchardTxSpend = OrchardTxSpend {
- ss_sk :: !ByteString
- ss_note :: !DecodedNote
- ss_iw :: !MerklePath
- data OutgoingNote = OutgoingNote {
- on_kind :: !Word8
- on_key :: !ByteString
- on_recipient :: !ByteString
- on_amt :: !Word64
- on_memo :: !ByteString
- on_chg :: !Bool
- newtype SaplingSpendParams = SaplingSpendParams {}
- newtype SaplingOutputParams = SaplingOutputParams {}
- data TxError
- class ToBytes a where
- getBytes :: a -> ByteString
- decodeHexText :: String -> ByteString
General
A seed for generating private keys
Constructors
Seed ByteString |
Instances
A mnemonic phrase used to derive seeds
Constructors
Phrase ByteString |
Instances
Scope for addresses/receivers
Constructors
External | Addresses used publically to receive payments |
Internal | Addresses used internally by wallets for change and shielding |
Type to represent data after Bech32 decoding
Constructors
RawData | |
Fields
|
Instances
Type for the different networks of the Zcash blockchain
Constructors
MainNet | |
TestNet | |
RegTestNet |
Instances
FromJSON ZcashNet # | |
Defined in ZcashHaskell.Types | |
ToJSON ZcashNet # | |
Generic ZcashNet # | |
Read ZcashNet # | |
Show ZcashNet # | |
Eq ZcashNet # | |
type Rep ZcashNet # | |
Defined in ZcashHaskell.Types type Rep ZcashNet = D1 ('MetaData "ZcashNet" "ZcashHaskell.Types" "zcash-haskell-0.8.0.0-inplace" 'False) (C1 ('MetaCons "MainNet" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "TestNet" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "RegTestNet" 'PrefixI 'False) (U1 :: Type -> Type))) |
getTransparentPrefix :: ZcashNet -> TransparentType -> (Word8, Word8) #
Function to get the Base58 prefix for encoding a TransparentReceiver
Constants
Type for coin types on the different networks
Constructors
MainNetCoin | |
TestNetCoin | |
RegTestNetCoin |
data Transaction #
A Zcash transaction
Constructors
Transaction | |
Fields
|
Instances
ToJSON Transaction # | |
Defined in ZcashHaskell.Types Methods toJSON :: Transaction -> Value # toEncoding :: Transaction -> Encoding # toJSONList :: [Transaction] -> Value # toEncodingList :: [Transaction] -> Encoding # omitField :: Transaction -> Bool # | |
Read Transaction # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS Transaction # readList :: ReadS [Transaction] # readPrec :: ReadPrec Transaction # readListPrec :: ReadPrec [Transaction] # | |
Show Transaction # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> Transaction -> ShowS # show :: Transaction -> String # showList :: [Transaction] -> ShowS # | |
Eq Transaction # | |
Defined in ZcashHaskell.Types |
data TransparentBundle #
The transparent portion of a Zcash transaction
Constructors
TransparentBundle | |
Instances
ToJSON TransparentBundle # | |
Defined in ZcashHaskell.Types Methods toJSON :: TransparentBundle -> Value # toEncoding :: TransparentBundle -> Encoding # toJSONList :: [TransparentBundle] -> Value # toEncodingList :: [TransparentBundle] -> Encoding # omitField :: TransparentBundle -> Bool # | |
Read TransparentBundle # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS TransparentBundle # readList :: ReadS [TransparentBundle] # | |
Show TransparentBundle # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> TransparentBundle -> ShowS # show :: TransparentBundle -> String # showList :: [TransparentBundle] -> ShowS # | |
Eq TransparentBundle # | |
Defined in ZcashHaskell.Types Methods (==) :: TransparentBundle -> TransparentBundle -> Bool # (/=) :: TransparentBundle -> TransparentBundle -> Bool # |
fromRawTBundle :: RawTBundle -> Maybe TransparentBundle #
Read a raw transparent bundle into the Haskell type
fromRawTxIn :: RawTxIn -> TxIn #
fromRawTxOut :: RawTxOut -> TxOut #
Constants for Sapling Human-readable part
Constants for Unified Human-readable part
RPC
A type to model Zcash RPC calls
Instances
ToJSON RpcCall # | |
Generic RpcCall # | |
Show RpcCall # | |
type Rep RpcCall # | |
Defined in ZcashHaskell.Types type Rep RpcCall = D1 ('MetaData "RpcCall" "ZcashHaskell.Types" "zcash-haskell-0.8.0.0-inplace" 'False) (C1 ('MetaCons "RpcCall" 'PrefixI 'True) ((S1 ('MetaSel ('Just "jsonrpc") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "callId") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "method") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "parameters") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 [Value])))) |
data RpcResponse r #
A type to model the response of the Zcash RPC
Instances
A type to model the errors from the Zcash RPC
Instances
FromJSON RpcError # | |
Defined in ZcashHaskell.Types | |
ToJSON RpcError # | |
Generic RpcError # | |
Show RpcError # | |
type Rep RpcError # | |
Defined in ZcashHaskell.Types type Rep RpcError = D1 ('MetaData "RpcError" "ZcashHaskell.Types" "zcash-haskell-0.8.0.0-inplace" 'False) (C1 ('MetaCons "RpcError" 'PrefixI 'True) (S1 ('MetaSel ('Just "ecode") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Double) :*: S1 ('MetaSel ('Just "emessage") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 Text))) |
zcashd
data BlockResponse #
Type to represent response from the zcashd
RPC getblock
method
Constructors
BlockResponse | |
Instances
FromJSON BlockResponse # | |
Defined in ZcashHaskell.Types Methods parseJSON :: Value -> Parser BlockResponse # parseJSONList :: Value -> Parser [BlockResponse] # | |
ToJSON BlockResponse # | |
Defined in ZcashHaskell.Types Methods toJSON :: BlockResponse -> Value # toEncoding :: BlockResponse -> Encoding # toJSONList :: [BlockResponse] -> Value # toEncodingList :: [BlockResponse] -> Encoding # omitField :: BlockResponse -> Bool # | |
Show BlockResponse # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> BlockResponse -> ShowS # show :: BlockResponse -> String # showList :: [BlockResponse] -> ShowS # | |
Eq BlockResponse # | |
Defined in ZcashHaskell.Types Methods (==) :: BlockResponse -> BlockResponse -> Bool # (/=) :: BlockResponse -> BlockResponse -> Bool # |
data RawTxResponse #
Type to represent response from the zcashd
RPC getrawtransaction
Constructors
RawTxResponse | |
Fields
|
Instances
FromJSON RawTxResponse # | |
Defined in ZcashHaskell.Sapling Methods parseJSON :: Value -> Parser RawTxResponse # parseJSONList :: Value -> Parser [RawTxResponse] # | |
Read RawTxResponse # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS RawTxResponse # readList :: ReadS [RawTxResponse] # | |
Show RawTxResponse # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> RawTxResponse -> ShowS # show :: RawTxResponse -> String # showList :: [RawTxResponse] -> ShowS # | |
Eq RawTxResponse # | |
Defined in ZcashHaskell.Types Methods (==) :: RawTxResponse -> RawTxResponse -> Bool # (/=) :: RawTxResponse -> RawTxResponse -> Bool # |
zebrad
data ZebraTxResponse #
Constructors
ZebraTxResponse | |
Instances
FromJSON ZebraTxResponse # | |
Defined in ZcashHaskell.Types Methods parseJSON :: Value -> Parser ZebraTxResponse # parseJSONList :: Value -> Parser [ZebraTxResponse] # | |
Read ZebraTxResponse # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS ZebraTxResponse # readList :: ReadS [ZebraTxResponse] # | |
Show ZebraTxResponse # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> ZebraTxResponse -> ShowS # show :: ZebraTxResponse -> String # showList :: [ZebraTxResponse] -> ShowS # | |
Eq ZebraTxResponse # | |
Defined in ZcashHaskell.Types Methods (==) :: ZebraTxResponse -> ZebraTxResponse -> Bool # (/=) :: ZebraTxResponse -> ZebraTxResponse -> Bool # |
data RawZebraTx #
Type to represent a raw deserialized Zebra transaction
Constructors
RawZebraTx | |
Fields
|
Instances
data RawTBundle #
Type for a raw deserialized Zebra transparent bundle
Constructors
RawTBundle | |
Instances
data RawSBundle #
Type for a raw deserialized Zebra Sapling bundle
Constructors
RawSBundle | |
Fields
|
Instances
data SaplingBundle #
Constructors
SaplingBundle | |
Fields
|
Instances
data RawOBundle #
Type for a raw deseralized Zebra Orchard bundle
Constructors
RawOBundle | |
Fields
|
Instances
data OrchardBundle #
Type for an Orchard Bundle
Constructors
OrchardBundle | |
Instances
data OrchardFlags #
Type for the Orchard bundle flags
Constructors
OrchardFlags | |
Fields
|
Instances
data ZebraGetInfo #
Type for the response from the zebrad
RPC method getinfo
Constructors
ZebraGetInfo | |
Fields
|
Instances
FromJSON ZebraGetInfo # | |
Defined in ZcashHaskell.Types | |
Show ZebraGetInfo # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> ZebraGetInfo -> ShowS # show :: ZebraGetInfo -> String # showList :: [ZebraGetInfo] -> ShowS # | |
Eq ZebraGetInfo # | |
Defined in ZcashHaskell.Types |
data ZebraGetBlockChainInfo #
Type for the response from the zebrad
RPC method getblockchaininfo
Constructors
ZebraGetBlockChainInfo | |
Instances
FromJSON ZebraGetBlockChainInfo # | |
Defined in ZcashHaskell.Types Methods parseJSON :: Value -> Parser ZebraGetBlockChainInfo # parseJSONList :: Value -> Parser [ZebraGetBlockChainInfo] # | |
Show ZebraGetBlockChainInfo # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> ZebraGetBlockChainInfo -> ShowS # show :: ZebraGetBlockChainInfo -> String # showList :: [ZebraGetBlockChainInfo] -> ShowS # | |
Eq ZebraGetBlockChainInfo # | |
Defined in ZcashHaskell.Types Methods (==) :: ZebraGetBlockChainInfo -> ZebraGetBlockChainInfo -> Bool # (/=) :: ZebraGetBlockChainInfo -> ZebraGetBlockChainInfo -> Bool # |
Transparent
data TransparentType #
Type to represent the two kinds of transparent addresses
Instances
Read TransparentType # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS TransparentType # readList :: ReadS [TransparentType] # | |
Show TransparentType # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> TransparentType -> ShowS # show :: TransparentType -> String # showList :: [TransparentType] -> ShowS # | |
Eq TransparentType # | |
Defined in ZcashHaskell.Types Methods (==) :: TransparentType -> TransparentType -> Bool # (/=) :: TransparentType -> TransparentType -> Bool # |
type TransparentSpendingKey = XPrvKey #
Type for transparent spending key
data TransparentReceiver #
Type to represent a transparent Zcash addresses
Constructors
TransparentReceiver | |
Fields
|
Instances
Read TransparentReceiver # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS TransparentReceiver # readList :: ReadS [TransparentReceiver] # | |
Show TransparentReceiver # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> TransparentReceiver -> ShowS # show :: TransparentReceiver -> String # showList :: [TransparentReceiver] -> ShowS # | |
Eq TransparentReceiver # | |
Defined in ZcashHaskell.Types Methods (==) :: TransparentReceiver -> TransparentReceiver -> Bool # (/=) :: TransparentReceiver -> TransparentReceiver -> Bool # |
data TransparentAddress #
Type to represent a transparent Zcash addresses
Constructors
TransparentAddress | |
Fields |
Instances
Read TransparentAddress # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS TransparentAddress # readList :: ReadS [TransparentAddress] # | |
Show TransparentAddress # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> TransparentAddress -> ShowS # show :: TransparentAddress -> String # showList :: [TransparentAddress] -> ShowS # | |
Eq TransparentAddress # | |
Defined in ZcashHaskell.Types Methods (==) :: TransparentAddress -> TransparentAddress -> Bool # (/=) :: TransparentAddress -> TransparentAddress -> Bool # |
data ExchangeAddress #
Type to represent a TEX Zcash addresses
Constructors
ExchangeAddress | |
Fields |
Instances
Read ExchangeAddress # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS ExchangeAddress # readList :: ReadS [ExchangeAddress] # | |
Show ExchangeAddress # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> ExchangeAddress -> ShowS # show :: ExchangeAddress -> String # showList :: [ExchangeAddress] -> ShowS # | |
Eq ExchangeAddress # | |
Defined in ZcashHaskell.Types Methods (==) :: ExchangeAddress -> ExchangeAddress -> Bool # (/=) :: ExchangeAddress -> ExchangeAddress -> Bool # |
Wrapper types for transparent elements
Constructors
RawTxIn | |
Fields
|
Instances
Constructors
RawTxOut | |
Fields
|
Instances
data RawOutPoint #
Constructors
RawOutPoint | |
Fields
|
Instances
Sapling
newtype SaplingSpendingKey #
A spending key for Sapling
Constructors
SaplingSpendingKey ByteString |
Instances
Read SaplingSpendingKey # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS SaplingSpendingKey # readList :: ReadS [SaplingSpendingKey] # | |
Show SaplingSpendingKey # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> SaplingSpendingKey -> ShowS # show :: SaplingSpendingKey -> String # showList :: [SaplingSpendingKey] -> ShowS # | |
Eq SaplingSpendingKey # | |
Defined in ZcashHaskell.Types Methods (==) :: SaplingSpendingKey -> SaplingSpendingKey -> Bool # (/=) :: SaplingSpendingKey -> SaplingSpendingKey -> Bool # | |
ToBytes SaplingSpendingKey # | |
Defined in ZcashHaskell.Types Methods |
newtype SaplingReceiver #
A Sapling receiver
Constructors
SaplingReceiver ByteString |
Instances
Read SaplingReceiver # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS SaplingReceiver # readList :: ReadS [SaplingReceiver] # | |
Show SaplingReceiver # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> SaplingReceiver -> ShowS # show :: SaplingReceiver -> String # showList :: [SaplingReceiver] -> ShowS # | |
Eq SaplingReceiver # | |
Defined in ZcashHaskell.Types Methods (==) :: SaplingReceiver -> SaplingReceiver -> Bool # (/=) :: SaplingReceiver -> SaplingReceiver -> Bool # | |
ToBytes SaplingReceiver # | |
Defined in ZcashHaskell.Types Methods getBytes :: SaplingReceiver -> ByteString # |
data SaplingAddress #
Constructors
SaplingAddress | |
Fields
|
Instances
Read SaplingAddress # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS SaplingAddress # readList :: ReadS [SaplingAddress] # | |
Show SaplingAddress # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> SaplingAddress -> ShowS # show :: SaplingAddress -> String # showList :: [SaplingAddress] -> ShowS # | |
Eq SaplingAddress # | |
Defined in ZcashHaskell.Types Methods (==) :: SaplingAddress -> SaplingAddress -> Bool # (/=) :: SaplingAddress -> SaplingAddress -> Bool # |
data ShieldedSpend #
Type to represent a Sapling Shielded Spend as provided by the getrawtransaction
RPC method
Constructors
ShieldedSpend | |
Instances
data ShieldedOutput #
Type to represent a Sapling Shielded Output as provided by the getrawtransaction
RPC method of zcashd
.
Constructors
ShieldedOutput | |
Fields
|
Instances
newtype SaplingCommitmentTree #
Type for a Sapling note commitment tree
Constructors
SaplingCommitmentTree | |
Instances
Read SaplingCommitmentTree # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS SaplingCommitmentTree # readList :: ReadS [SaplingCommitmentTree] # | |
Show SaplingCommitmentTree # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> SaplingCommitmentTree -> ShowS # show :: SaplingCommitmentTree -> String # showList :: [SaplingCommitmentTree] -> ShowS # | |
Eq SaplingCommitmentTree # | |
Defined in ZcashHaskell.Types Methods (==) :: SaplingCommitmentTree -> SaplingCommitmentTree -> Bool # (/=) :: SaplingCommitmentTree -> SaplingCommitmentTree -> Bool # |
data SaplingRawTree #
Constructors
SaplingRawTree | |
Instances
data SaplingTree #
Constructors
SaplingTree | |
Instances
Read SaplingTree # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS SaplingTree # readList :: ReadS [SaplingTree] # readPrec :: ReadPrec SaplingTree # readListPrec :: ReadPrec [SaplingTree] # | |
Show SaplingTree # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> SaplingTree -> ShowS # show :: SaplingTree -> String # showList :: [SaplingTree] -> ShowS # | |
Eq SaplingTree # | |
Defined in ZcashHaskell.Types |
data SaplingFrontier #
Instances
newtype SaplingWitness #
Type for a Sapling incremental witness
Constructors
SaplingWitness | |
Instances
Read SaplingWitness # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS SaplingWitness # readList :: ReadS [SaplingWitness] # | |
Show SaplingWitness # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> SaplingWitness -> ShowS # show :: SaplingWitness -> String # showList :: [SaplingWitness] -> ShowS # | |
Eq SaplingWitness # | |
Defined in ZcashHaskell.Types Methods (==) :: SaplingWitness -> SaplingWitness -> Bool # (/=) :: SaplingWitness -> SaplingWitness -> Bool # |
Orchard
newtype OrchardSpendingKey #
A spending key for Orchard
Constructors
OrchardSpendingKey ByteString |
Instances
Read OrchardSpendingKey # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS OrchardSpendingKey # readList :: ReadS [OrchardSpendingKey] # | |
Show OrchardSpendingKey # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> OrchardSpendingKey -> ShowS # show :: OrchardSpendingKey -> String # showList :: [OrchardSpendingKey] -> ShowS # | |
Eq OrchardSpendingKey # | |
Defined in ZcashHaskell.Types Methods (==) :: OrchardSpendingKey -> OrchardSpendingKey -> Bool # (/=) :: OrchardSpendingKey -> OrchardSpendingKey -> Bool # | |
ToBytes OrchardSpendingKey # | |
Defined in ZcashHaskell.Types Methods |
newtype OrchardReceiver #
An Orchard receiver
Constructors
OrchardReceiver ByteString |
Instances
Read OrchardReceiver # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS OrchardReceiver # readList :: ReadS [OrchardReceiver] # | |
Show OrchardReceiver # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> OrchardReceiver -> ShowS # show :: OrchardReceiver -> String # showList :: [OrchardReceiver] -> ShowS # | |
Eq OrchardReceiver # | |
Defined in ZcashHaskell.Types Methods (==) :: OrchardReceiver -> OrchardReceiver -> Bool # (/=) :: OrchardReceiver -> OrchardReceiver -> Bool # | |
ToBytes OrchardReceiver # | |
Defined in ZcashHaskell.Types Methods getBytes :: OrchardReceiver -> ByteString # |
data UnifiedAddress #
Type to represent a Unified Address
Constructors
UnifiedAddress | |
Fields
|
Instances
Read UnifiedAddress # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS UnifiedAddress # readList :: ReadS [UnifiedAddress] # | |
Show UnifiedAddress # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> UnifiedAddress -> ShowS # show :: UnifiedAddress -> String # showList :: [UnifiedAddress] -> ShowS # | |
Eq UnifiedAddress # | |
Defined in ZcashHaskell.Types Methods (==) :: UnifiedAddress -> UnifiedAddress -> Bool # (/=) :: UnifiedAddress -> UnifiedAddress -> Bool # |
Helper type for marshalling UAs
Constructors
RawUA | |
Fields
|
Instances
data ValidAddress #
A type to handle user-entered addresses
Constructors
Unified !UnifiedAddress | |
Sapling !SaplingAddress | |
Transparent !TransparentAddress | |
Exchange !ExchangeAddress |
Instances
Show ValidAddress # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> ValidAddress -> ShowS # show :: ValidAddress -> String # showList :: [ValidAddress] -> ShowS # | |
Eq ValidAddress # | |
Defined in ZcashHaskell.Types |
A type to handle user-entered viewing keys
Constructors
FullVk !UnifiedFullViewingKey | |
IncomingVk !UnifiedIncomingViewingKey |
data UnifiedFullViewingKey #
Type to represent a Unified Full Viewing Key
Constructors
UnifiedFullViewingKey | |
Fields
|
Instances
data UnifiedIncomingViewingKey #
Type to represent a Unified Incoming Viewing Key
Constructors
UnifiedIncomingViewingKey | |
Fields
|
Instances
data OrchardAction #
Type to represent an Orchard Action as provided by the getrawtransaction
RPC method of zcashd
, and defined in the Zcash Protocol
Constructors
OrchardAction | |
Fields
|
Instances
data MerklePath #
Constructors
MerklePath | |
Fields
|
Instances
newtype OrchardCommitmentTree #
Type for a Orchard note commitment tree
Constructors
OrchardCommitmentTree | |
Instances
Read OrchardCommitmentTree # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS OrchardCommitmentTree # readList :: ReadS [OrchardCommitmentTree] # | |
Show OrchardCommitmentTree # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> OrchardCommitmentTree -> ShowS # show :: OrchardCommitmentTree -> String # showList :: [OrchardCommitmentTree] -> ShowS # | |
Eq OrchardCommitmentTree # | |
Defined in ZcashHaskell.Types Methods (==) :: OrchardCommitmentTree -> OrchardCommitmentTree -> Bool # (/=) :: OrchardCommitmentTree -> OrchardCommitmentTree -> Bool # |
data OrchardRawTree #
Constructors
OrchardRawTree | |
Instances
data OrchardTree #
Constructors
OrchardTree | |
Instances
Read OrchardTree # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS OrchardTree # readList :: ReadS [OrchardTree] # readPrec :: ReadPrec OrchardTree # readListPrec :: ReadPrec [OrchardTree] # | |
Show OrchardTree # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> OrchardTree -> ShowS # show :: OrchardTree -> String # showList :: [OrchardTree] -> ShowS # | |
Eq OrchardTree # | |
Defined in ZcashHaskell.Types |
data OrchardFrontier #
Instances
newtype OrchardWitness #
Type for a Sapling incremental witness
Constructors
OrchardWitness | |
Instances
Read OrchardWitness # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS OrchardWitness # readList :: ReadS [OrchardWitness] # | |
Show OrchardWitness # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> OrchardWitness -> ShowS # show :: OrchardWitness -> String # showList :: [OrchardWitness] -> ShowS # | |
Eq OrchardWitness # | |
Defined in ZcashHaskell.Types Methods (==) :: OrchardWitness -> OrchardWitness -> Bool # (/=) :: OrchardWitness -> OrchardWitness -> Bool # |
data DecodedNote #
Type to represent a decoded note
Constructors
DecodedNote | |
Fields
|
Instances
Constructors
Rseed | |
Fields
|
Instances
data TransparentTxSpend #
Constructors
TransparentTxSpend | |
Fields
|
Instances
data SaplingTxSpend #
Constructors
SaplingTxSpend | |
Fields
|
Instances
data OrchardTxSpend #
Constructors
OrchardTxSpend | |
Fields
|
Instances
data OutgoingNote #
Constructors
OutgoingNote | |
Fields
|
Instances
newtype SaplingSpendParams #
Constructors
SaplingSpendParams | |
Fields |
Instances
Read SaplingSpendParams # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS SaplingSpendParams # readList :: ReadS [SaplingSpendParams] # | |
Show SaplingSpendParams # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> SaplingSpendParams -> ShowS # show :: SaplingSpendParams -> String # showList :: [SaplingSpendParams] -> ShowS # | |
Eq SaplingSpendParams # | |
Defined in ZcashHaskell.Types Methods (==) :: SaplingSpendParams -> SaplingSpendParams -> Bool # (/=) :: SaplingSpendParams -> SaplingSpendParams -> Bool # |
newtype SaplingOutputParams #
Constructors
SaplingOutputParams | |
Fields |
Instances
Read SaplingOutputParams # | |
Defined in ZcashHaskell.Types Methods readsPrec :: Int -> ReadS SaplingOutputParams # readList :: ReadS [SaplingOutputParams] # | |
Show SaplingOutputParams # | |
Defined in ZcashHaskell.Types Methods showsPrec :: Int -> SaplingOutputParams -> ShowS # show :: SaplingOutputParams -> String # showList :: [SaplingOutputParams] -> ShowS # | |
Eq SaplingOutputParams # | |
Defined in ZcashHaskell.Types Methods (==) :: SaplingOutputParams -> SaplingOutputParams -> Bool # (/=) :: SaplingOutputParams -> SaplingOutputParams -> Bool # |
Constructors
Classes
Class to represent types with a bytestring representation
Methods
getBytes :: a -> ByteString #
Instances
ToBytes OrchardReceiver # | |
Defined in ZcashHaskell.Types Methods getBytes :: OrchardReceiver -> ByteString # | |
ToBytes OrchardSpendingKey # | |
Defined in ZcashHaskell.Types Methods | |
ToBytes Phrase # | |
Defined in ZcashHaskell.Types Methods getBytes :: Phrase -> ByteString # | |
ToBytes SaplingReceiver # | |
Defined in ZcashHaskell.Types Methods getBytes :: SaplingReceiver -> ByteString # | |
ToBytes SaplingSpendingKey # | |
Defined in ZcashHaskell.Types Methods | |
ToBytes Seed # | |
Defined in ZcashHaskell.Types Methods getBytes :: Seed -> ByteString # |
Helpers
decodeHexText :: String -> ByteString #
Helper function to turn a hex-encoded string to bytestring