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