| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
Cometa.Address
Description
Addresses across Shelley, Byron and reward-account forms. This sum retains each family's validated representation; it does not establish whether an address is an admissible transaction output for a particular ledger era.
import qualified Cometa.Address as Address normalize text = Address.toText $ Address.fromText text
Documentation
Address families. Equality and ordering compare constructors then values;
use toBytes when serialization order is required.
Constructors
| ShelleyAddress !Address | Base, enterprise or pointer payment address. |
| ByronAddress !Address | Historical bootstrap address. |
| RewardAddress !RewardAddress | Reward account; assembly does not imply output admissibility. |
fromBytes :: ByteString -> Either Error Address Source #
Decode the complete address according to its header. Validation errors retain the corresponding family's structured error.
toBytes :: Address -> ByteString Source #
Exact validated address bytes.