Safe Haskell | None |
---|---|
Language | Haskell2010 |
PlutusCore.Flat
Contents
Description
Flat instances for Plutus Core types. Make sure to read the Note [Stable encoding of PLC] before touching anything in this file. Also see the Notes [Serialising unit annotations] and [Serialising Scripts] before using anything in this file.
Synopsis
- newtype AsSerialize a = AsSerialize {
- unAsSerialize :: a
- safeEncodeBits :: NumBits -> Word8 -> Encoding
Documentation
newtype AsSerialize a Source #
For deriving Flat
instances via Serialize
.
Constructors
AsSerialize | |
Fields
|
Instances
Serialise a => Flat (AsSerialize a) Source # | |
Defined in PlutusCore.Flat | |
Serialise a => Serialise (AsSerialize a) Source # | |
Defined in PlutusCore.Flat Methods encode :: AsSerialize a -> Encoding Source # decode :: Decoder s (AsSerialize a) Source # encodeList :: [AsSerialize a] -> Encoding Source # decodeList :: Decoder s [AsSerialize a] Source # |