| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Pairing.CyclicGroup
Synopsis
- class AsInteger a where
- class Monoid g => CyclicGroup g where
- sumG :: (Foldable t, CyclicGroup g) => t g -> g
- class FromX a where
- yFromX :: a -> LargestY -> Maybe a
- isLargestY :: a -> Bool
- class Validate a where
- isValidElement :: a -> Bool
Documentation
class Monoid g => CyclicGroup g where Source #
Methods
order :: Proxy g -> Integer Source #
expn :: AsInteger e => g -> e -> g Source #
random :: MonadRandom m => g -> m g Source #
Instances
| CyclicGroup GT Source # | |
| CyclicGroup G2 Source # | |
| CyclicGroup G1 Source # | |
sumG :: (Foldable t, CyclicGroup g) => t g -> g Source #
Sum all the elements of some container according to its group structure.
class Validate a where Source #
Methods
isValidElement :: a -> Bool Source #
Instances
| Validate GT Source # | |
Defined in Pairing.Group Methods isValidElement :: GT -> Bool Source # | |
| Validate G2 Source # | |
Defined in Pairing.Group Methods isValidElement :: G2 -> Bool Source # | |
| Validate G1 Source # | |
Defined in Pairing.Group Methods isValidElement :: G1 -> Bool Source # | |