| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
PlutusLedgerApi.V1.Bytes
Synopsis
- newtype LedgerBytes = LedgerBytes {}
- fromHex :: ByteString -> Either LedgerBytesError LedgerBytes
- bytes :: LedgerBytes -> ByteString
- fromBytes :: ByteString -> LedgerBytes
- encodeByteString :: ByteString -> Text
Documentation
newtype LedgerBytes Source #
Constructors
| LedgerBytes | |
Fields | |
Instances
fromHex :: ByteString -> Either LedgerBytesError LedgerBytes Source #
Convert a hex encoded ByteString to a LedgerBytes. May return an error (LedgerBytesError).
bytes :: LedgerBytes -> ByteString Source #
fromBytes :: ByteString -> LedgerBytes Source #
encodeByteString :: ByteString -> Text Source #
Encode a ByteString value in base16 (i.e. hexadecimal), then
decode with UTF-8 to a Text.