Copyright | Aleksandr Krupenkin 2016-2021 |
---|---|
License | Apache-2.0 |
Maintainer | mail@akru.me |
Stability | experimental |
Portability | unportable |
Safe Haskell | None |
Language | Haskell2010 |
Big numbers and codecs for Haskell Web3 library.
Documentation
Instances
Instances
20 byte of data.
Instances
Eq H160 Source # | |
Ord H160 Source # | |
Show H160 Source # | |
IsString H160 Source # | |
Defined in Data.BigNum fromString :: String -> H160 # | |
ByteArrayAccess H160 Source # | |
ToHex H160 Source # | |
Defined in Data.BigNum | |
FromHex H160 Source # | |
Encode H160 Source # | |
Defined in Data.BigNum | |
Decode H160 Source # | |
Defined in Data.BigNum |
h160 :: ByteArrayAccess a => a -> Maybe H160 Source #
Convert any 20 byte array into H160 type, otherwise returns Nothing.
32 byte of data.
Instances
Eq H256 Source # | |
Ord H256 Source # | |
Show H256 Source # | |
IsString H256 Source # | |
Defined in Data.BigNum fromString :: String -> H256 # | |
ByteArrayAccess H256 Source # | |
ToHex H256 Source # | |
Defined in Data.BigNum | |
FromHex H256 Source # | |
Encode H256 Source # | |
Defined in Data.BigNum | |
Decode H256 Source # | |
Defined in Data.BigNum |
h256 :: ByteArrayAccess a => a -> Maybe H256 Source #
Convert any 32 byte array into H256 type, otherwise returns Nothing.
64 byte of data.
Instances
Eq H512 Source # | |
Ord H512 Source # | |
Show H512 Source # | |
IsString H512 Source # | |
Defined in Data.BigNum fromString :: String -> H512 # | |
ByteArrayAccess H512 Source # | |
ToHex H512 Source # | |
Defined in Data.BigNum | |
FromHex H512 Source # | |
Encode H512 Source # | |
Defined in Data.BigNum | |
Decode H512 Source # | |
Defined in Data.BigNum |
h512 :: ByteArrayAccess a => a -> Maybe H512 Source #
Convert any 64 byte array into H512 type, otherwise returns Nothing.