Read some bytes from the console, and decode them if the encoding is recognized.
Modulecardano-addresses-4.0.2Haskell2010
System.IO.Extra
- 17 values
- Packagecardano-addresses-4.0.2
- Exports17
- LanguageHaskell2010
- LicenceApache-2.0
- SourceExtra.hs
I/O application-specific helpers
0 declarationsRead
Read some bytes encoded in Bech32, only allowing the given prefixes.
Read an encoded private key from the console, or fail.
Read an encoded public key from the console, or fail.
Read either an encoded public or private key from the console, or fail.
Read a script hash from the console, or fail.
Read some English mnemonic words from the console, or fail.
Prompt user and read some English mnemonic words from stdin.
Read mnemonic passphrase from either file or interactively.
Read passphrase from either file or interactively, and decode them accoring to passphrase info.
Write
Print bytes to the console with the given encoding.
Print string to the console with newline appended.
Print string to the console without newline appended.
I/O Helpers
4 declarationsFail with a colored red error message.
Get program name to avoid hard-coding it in documentation excerpt.
Mark all characters from a given string as red (in a console).