| Copyright | Alexander Krupenkin 2018 |
|---|---|
| License | BSD3 |
| Maintainer | mail@akru.me |
| Stability | experimental |
| Portability | noportable |
| Safe Haskell | None |
| Language | Haskell2010 |
Data.Solidity.Prim.Address
Contents
Description
Ethreum account address.
Synopsis
- data Address
- toHexString :: Address -> HexString
- fromHexString :: HexString -> Either String Address
- fromPubKey :: PublicKey -> Address
- toChecksum :: ByteString -> ByteString
- verifyChecksum :: ByteString -> Bool
The Address type
Ethereum account address
Instances
| Eq Address # | |
| Ord Address # | |
Defined in Data.Solidity.Prim.Address | |
| Show Address # | |
| IsString Address # | |
Defined in Data.Solidity.Prim.Address Methods fromString :: String -> Address # | |
| Generic Address # | |
| ToJSON Address # | |
Defined in Data.Solidity.Prim.Address | |
| FromJSON Address # | |
| Default Address # | |
Defined in Data.Solidity.Prim.Address | |
| Generic Address # | |
| AbiGet Address # | |
Defined in Data.Solidity.Prim.Address | |
| AbiPut Address # | |
Defined in Data.Solidity.Prim.Address | |
| AbiType Address # | |
| type Rep Address # | |
Defined in Data.Solidity.Prim.Address | |
| type Code Address # | |
Defined in Data.Solidity.Prim.Address | |
Hex string encoding
toHexString :: Address -> HexString #
Encode address to hex string
Derive address from public key
fromPubKey :: PublicKey -> Address #
Derive address from secp256k1 public key
EIP55 Mix-case checksum address encoding
toChecksum :: ByteString -> ByteString #
Encode address with mixed-case checksum https://github.com/ethereum/EIPs/blob/master/EIPS/eip-55.md
verifyChecksum :: ByteString -> Bool #
Verify mixed-case address checksum https://github.com/ethereum/EIPs/blob/master/EIPS/eip-55.md