haskoin-core-1.1.0: Bitcoin & Bitcoin Cash library for Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

Haskoin.Util.Marshal

Documentation

class Marshal s a | a -> s where Source #

Methods

marshalPut :: MonadPut m => s -> a -> m () Source #

marshalGet :: MonadGet m => s -> m a Source #

Instances

Instances details
Marshal Network XPrvKey Source # 
Instance details

Defined in Haskoin.Crypto.Keys.Extended

Marshal Ctx PublicKey Source # 
Instance details

Defined in Haskoin.Crypto.Keys.Common

Marshal Ctx ScriptOutput Source # 
Instance details

Defined in Haskoin.Script.Standard

Marshal Ctx XOnlyPubKey Source # 
Instance details

Defined in Haskoin.Transaction.Taproot

Marshal Ctx Sig Source # 
Instance details

Defined in Haskoin.Crypto.Signature

Methods

marshalPut :: MonadPut m => Ctx -> Sig -> m () Source #

marshalGet :: MonadGet m => Ctx -> m Sig Source #

Marshal (Network, Ctx) XPubKey Source # 
Instance details

Defined in Haskoin.Crypto.Keys.Extended

Methods

marshalPut :: MonadPut m => (Network, Ctx) -> XPubKey -> m () Source #

marshalGet :: MonadGet m => (Network, Ctx) -> m XPubKey Source #

Marshal (Network, Ctx) TxSignature Source # 
Instance details

Defined in Haskoin.Script.SigHash

Marshal (Network, Ctx) ScriptInput Source # 
Instance details

Defined in Haskoin.Script.Standard

marshal :: Marshal s a => s -> a -> ByteString Source #

marshalLazy :: Marshal s a => s -> a -> ByteString Source #

class MarshalJSON s a | a -> s where Source #

Minimal complete definition

marshalValue, unmarshalValue

Instances

Instances details
MarshalJSON Network Address Source # 
Instance details

Defined in Haskoin.Address

MarshalJSON Network PrivateKey Source # 
Instance details

Defined in Haskoin.Crypto.Keys.Common

MarshalJSON Network XPrvKey Source # 
Instance details

Defined in Haskoin.Crypto.Keys.Extended

MarshalJSON Ctx PublicKey Source # 
Instance details

Defined in Haskoin.Crypto.Keys.Common

MarshalJSON Ctx ScriptOutput Source # 
Instance details

Defined in Haskoin.Script.Standard

MarshalJSON Ctx SigInput Source # 
Instance details

Defined in Haskoin.Transaction.Builder.Sign

MarshalJSON Ctx XOnlyPubKey Source # 
Instance details

Defined in Haskoin.Transaction.Taproot

MarshalJSON Ctx Sig Source # 
Instance details

Defined in Haskoin.Crypto.Signature

MarshalJSON (Network, Ctx) XPubKey Source # 
Instance details

Defined in Haskoin.Crypto.Keys.Extended

MarshalJSON (Network, Ctx) TxSignature Source # 
Instance details

Defined in Haskoin.Script.SigHash