ouroboros-consensus-cardano-0.20.0.0: The instantation of the Ouroboros consensus layer used by Cardano
Safe HaskellSafe-Inferred
LanguageHaskell2010

Cardano.Api.SerialiseUsing

Description

Raw binary serialisation

Synopsis

Documentation

newtype UsingRawBytes a Source #

For use with deriving via, to provide ToCBOR and FromCBOR instances, based on the SerialiseAsRawBytes instance. Eg:

deriving (ToCBOR, FromCBOR) via (UsingRawBytes Blah)

Constructors

UsingRawBytes a 

Instances

Instances details
(SerialiseAsRawBytes a, Typeable a) ⇒ FromCBOR (UsingRawBytes a) Source # 
Instance details

Defined in Cardano.Api.SerialiseUsing

(SerialiseAsRawBytes a, Typeable a) ⇒ ToCBOR (UsingRawBytes a) Source # 
Instance details

Defined in Cardano.Api.SerialiseUsing

Methods

toCBORUsingRawBytes a → Encoding Source #

encodedSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy (UsingRawBytes a) → Size Source #

encodedListSizeExpr ∷ (∀ t. ToCBOR t ⇒ Proxy t → Size) → Proxy [UsingRawBytes a] → Size Source #

(SerialiseAsRawBytes a, Typeable a) ⇒ DecCBOR (UsingRawBytes a) Source # 
Instance details

Defined in Cardano.Api.SerialiseUsing

(SerialiseAsRawBytes a, Typeable a) ⇒ EncCBOR (UsingRawBytes a) Source # 
Instance details

Defined in Cardano.Api.SerialiseUsing

Methods

encCBORUsingRawBytes a → Encoding Source #

encodedSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy (UsingRawBytes a) → Size Source #

encodedListSizeExpr ∷ (∀ t. EncCBOR t ⇒ Proxy t → Size) → Proxy [UsingRawBytes a] → Size Source #

newtype UsingRawBytesHex a Source #

For use with deriving via, to provide instances for any/all of Show, IsString, ToJSON, FromJSON, ToJSONKey, FromJSONKey' using a hex encoding, based on the SerialiseAsRawBytes instance.

deriving (Show, IsString) via (UsingRawBytesHex Blah)
deriving (ToJSON, FromJSON) via (UsingRawBytesHex Blah)
deriving (ToJSONKey, FromJSONKey) via (UsingRawBytesHex Blah)

Constructors

UsingRawBytesHex a 

Instances

Instances details
(SerialiseAsRawBytes a, Typeable a) ⇒ FromJSON (UsingRawBytesHex a) Source # 
Instance details

Defined in Cardano.Api.SerialiseUsing

(SerialiseAsRawBytes a, Typeable a) ⇒ FromJSONKey (UsingRawBytesHex a) Source # 
Instance details

Defined in Cardano.Api.SerialiseUsing

SerialiseAsRawBytes a ⇒ ToJSON (UsingRawBytesHex a) Source # 
Instance details

Defined in Cardano.Api.SerialiseUsing

SerialiseAsRawBytes a ⇒ ToJSONKey (UsingRawBytesHex a) Source # 
Instance details

Defined in Cardano.Api.SerialiseUsing

SerialiseAsRawBytes a ⇒ IsString (UsingRawBytesHex a) Source # 
Instance details

Defined in Cardano.Api.SerialiseUsing

SerialiseAsRawBytes a ⇒ Show (UsingRawBytesHex a) Source # 
Instance details

Defined in Cardano.Api.SerialiseUsing