Read some bytes from the console, and decode them if the encoding is recognized.
Modulecardano-addresses-4.0.2Haskell2010
System.IO.Extra
Synopsis
- value hGetBytes
- value hGetBech32
- value hGetXPrv
- value hGetXPub
- value hGetXP__
- value hGetScriptHash
- value hGetSomeMnemonic
- value hGetSomeMnemonicInteractively
- value hGetPassphraseMnemonic
- value hGetPassphraseBytes
- value hPutBytes
- value hPutString
- value hPutStringNoNewLn
- value prettyIOException
- value progName
- value markCharsRedAtIndices
- value noNewline
- Packagecardano-addresses-4.0.2
- Exports17
- LanguageHaskell2010
- LicenceApache-2.0
- SourceExtra.hs
I/O application-specific helpers
Read
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
Fail 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).