Safe Haskell | None |
---|---|
Language | Haskell98 |
- type TxHash = BigWord Mod256Tx
- type BlockHash = BigWord Mod256Block
- type Word512 = BigWord Mod512
- type Word256 = BigWord Mod256
- type Word160 = BigWord Mod160
- type Word128 = BigWord Mod128
- type FieldP = BigWord ModP
- type FieldN = BigWord ModN
- newtype BigWord n = BigWord {}
- class BigWordMod a where
- inverseP :: FieldP -> FieldP
- inverseN :: FieldN -> FieldN
- quadraticResidue :: FieldP -> [FieldP]
- isIntegerValidKey :: Integer -> Bool
- encodeTxHashLE :: TxHash -> String
- decodeTxHashLE :: String -> Maybe TxHash
- encodeBlockHashLE :: BlockHash -> String
- decodeBlockHashLE :: String -> Maybe BlockHash
Documentation
type Word512 = BigWord Mod512 Source #
Data type representing a 512 bit unsigned integer. It is implemented as an Integer modulo 2^512.
type Word256 = BigWord Mod256 Source #
Data type representing a 256 bit unsigned integer. It is implemented as an Integer modulo 2^256.
type Word160 = BigWord Mod160 Source #
Data type representing a 160 bit unsigned integer. It is implemented as an Integer modulo 2^160.
type Word128 = BigWord Mod128 Source #
Data type representing a 128 bit unsigned integer. It is implemented as an Integer modulo 2^128.
type FieldP = BigWord ModP Source #
Data type representing an Integer modulo coordinate field order P.
Format Word256 Source # | |
BigWordMod n => Bounded (BigWord n) Source # | |
BigWordMod n => Enum (BigWord n) Source # | |
Eq (BigWord n) Source # | |
BigWordMod n => Integral (BigWord n) Source # | |
BigWordMod n => Num (BigWord n) Source # | |
Ord (BigWord n) Source # | |
Read (BigWord n) Source # | |
BigWordMod n => Real (BigWord n) Source # | |
Show (BigWord n) Source # | |
BigWordMod n => Bits (BigWord n) Source # | |
NFData (BigWord n) Source # | |
class BigWordMod a where Source #
quadraticResidue :: FieldP -> [FieldP] Source #
isIntegerValidKey :: Integer -> Bool Source #
encodeTxHashLE :: TxHash -> String Source #
Encodes a TxHash
as little endian in HEX format. This is mostly used for
displaying transaction ids. Internally, these ids are handled as big endian
but are transformed to little endian when displaying them.