Cardano.Crypto.VRF.Simple
Description
Mock implementations of verifiable random functions.
data SimpleVRF Source #
Defined in Cardano.Crypto.VRF.Simple
Associated Types
data VerKeyVRF SimpleVRF Source #
data SignKeyVRF SimpleVRF Source #
data CertVRF SimpleVRF Source #
type ContextVRF SimpleVRF Source #
type Signable SimpleVRF :: Type -> Constraint Source #
Methods
algorithmNameVRF :: proxy SimpleVRF -> String Source #
deriveVerKeyVRF :: SignKeyVRF SimpleVRF -> VerKeyVRF SimpleVRF Source #
hashVerKeyVRF :: HashAlgorithm h => VerKeyVRF SimpleVRF -> Hash h ( VerKeyVRF SimpleVRF ) Source #
evalVRF :: ( HasCallStack , Signable SimpleVRF a) => ContextVRF SimpleVRF -> a -> SignKeyVRF SimpleVRF -> ( OutputVRF SimpleVRF , CertVRF SimpleVRF ) Source #
verifyVRF :: ( HasCallStack , Signable SimpleVRF a) => ContextVRF SimpleVRF -> VerKeyVRF SimpleVRF -> a -> ( OutputVRF SimpleVRF , CertVRF SimpleVRF ) -> Bool Source #
genKeyVRF :: Seed -> SignKeyVRF SimpleVRF Source #
genKeyPairVRF :: Seed -> ( SignKeyVRF SimpleVRF , VerKeyVRF SimpleVRF ) Source #
seedSizeVRF :: proxy SimpleVRF -> Word Source #
sizeVerKeyVRF :: proxy SimpleVRF -> Word Source #
sizeSignKeyVRF :: proxy SimpleVRF -> Word Source #
sizeCertVRF :: proxy SimpleVRF -> Word Source #
sizeOutputVRF :: proxy SimpleVRF -> Word Source #
rawSerialiseVerKeyVRF :: VerKeyVRF SimpleVRF -> ByteString Source #
rawSerialiseSignKeyVRF :: SignKeyVRF SimpleVRF -> ByteString Source #
rawSerialiseCertVRF :: CertVRF SimpleVRF -> ByteString Source #
rawDeserialiseVerKeyVRF :: ByteString -> Maybe ( VerKeyVRF SimpleVRF ) Source #
rawDeserialiseSignKeyVRF :: ByteString -> Maybe ( SignKeyVRF SimpleVRF ) Source #
rawDeserialiseCertVRF :: ByteString -> Maybe ( CertVRF SimpleVRF ) Source #
(==) :: VerKeyVRF SimpleVRF -> VerKeyVRF SimpleVRF -> Bool Source #
(/=) :: VerKeyVRF SimpleVRF -> VerKeyVRF SimpleVRF -> Bool Source #
(==) :: SignKeyVRF SimpleVRF -> SignKeyVRF SimpleVRF -> Bool Source #
(/=) :: SignKeyVRF SimpleVRF -> SignKeyVRF SimpleVRF -> Bool Source #
(==) :: CertVRF SimpleVRF -> CertVRF SimpleVRF -> Bool Source #
(/=) :: CertVRF SimpleVRF -> CertVRF SimpleVRF -> Bool Source #
showsPrec :: Int -> VerKeyVRF SimpleVRF -> ShowS Source #
show :: VerKeyVRF SimpleVRF -> String Source #
showList :: [ VerKeyVRF SimpleVRF ] -> ShowS Source #
showsPrec :: Int -> SignKeyVRF SimpleVRF -> ShowS Source #
show :: SignKeyVRF SimpleVRF -> String Source #
showList :: [ SignKeyVRF SimpleVRF ] -> ShowS Source #
showsPrec :: Int -> CertVRF SimpleVRF -> ShowS Source #
show :: CertVRF SimpleVRF -> String Source #
showList :: [ CertVRF SimpleVRF ] -> ShowS Source #
type Rep ( VerKeyVRF SimpleVRF ) :: Type -> Type Source #
from :: VerKeyVRF SimpleVRF -> Rep ( VerKeyVRF SimpleVRF ) x Source #
to :: Rep ( VerKeyVRF SimpleVRF ) x -> VerKeyVRF SimpleVRF Source #
type Rep ( SignKeyVRF SimpleVRF ) :: Type -> Type Source #
from :: SignKeyVRF SimpleVRF -> Rep ( SignKeyVRF SimpleVRF ) x Source #
to :: Rep ( SignKeyVRF SimpleVRF ) x -> SignKeyVRF SimpleVRF Source #
type Rep ( CertVRF SimpleVRF ) :: Type -> Type Source #
from :: CertVRF SimpleVRF -> Rep ( CertVRF SimpleVRF ) x Source #
to :: Rep ( CertVRF SimpleVRF ) x -> CertVRF SimpleVRF Source #
toCBOR :: VerKeyVRF SimpleVRF -> Encoding Source #
encodedSizeExpr :: ( forall t. ToCBOR t => Proxy t -> Size ) -> Proxy ( VerKeyVRF SimpleVRF ) -> Size Source #
encodedListSizeExpr :: ( forall t. ToCBOR t => Proxy t -> Size ) -> Proxy [ VerKeyVRF SimpleVRF ] -> Size Source #
toCBOR :: SignKeyVRF SimpleVRF -> Encoding Source #
encodedSizeExpr :: ( forall t. ToCBOR t => Proxy t -> Size ) -> Proxy ( SignKeyVRF SimpleVRF ) -> Size Source #
encodedListSizeExpr :: ( forall t. ToCBOR t => Proxy t -> Size ) -> Proxy [ SignKeyVRF SimpleVRF ] -> Size Source #
toCBOR :: CertVRF SimpleVRF -> Encoding Source #
encodedSizeExpr :: ( forall t. ToCBOR t => Proxy t -> Size ) -> Proxy ( CertVRF SimpleVRF ) -> Size Source #
encodedListSizeExpr :: ( forall t. ToCBOR t => Proxy t -> Size ) -> Proxy [ CertVRF SimpleVRF ] -> Size Source #
fromCBOR :: Decoder s ( VerKeyVRF SimpleVRF ) Source #
label :: Proxy ( VerKeyVRF SimpleVRF ) -> Text Source #
fromCBOR :: Decoder s ( SignKeyVRF SimpleVRF ) Source #
label :: Proxy ( SignKeyVRF SimpleVRF ) -> Text Source #
fromCBOR :: Decoder s ( CertVRF SimpleVRF ) Source #
label :: Proxy ( CertVRF SimpleVRF ) -> Text Source #
rnf :: VerKeyVRF SimpleVRF -> () Source #
rnf :: SignKeyVRF SimpleVRF -> () Source #
rnf :: CertVRF SimpleVRF -> () Source #
noThunks :: Context -> VerKeyVRF SimpleVRF -> IO ( Maybe ThunkInfo ) Source #
wNoThunks :: Context -> VerKeyVRF SimpleVRF -> IO ( Maybe ThunkInfo ) Source #
showTypeOf :: Proxy ( VerKeyVRF SimpleVRF ) -> String Source #
noThunks :: Context -> SignKeyVRF SimpleVRF -> IO ( Maybe ThunkInfo ) Source #
wNoThunks :: Context -> SignKeyVRF SimpleVRF -> IO ( Maybe ThunkInfo ) Source #
showTypeOf :: Proxy ( SignKeyVRF SimpleVRF ) -> String Source #
noThunks :: Context -> CertVRF SimpleVRF -> IO ( Maybe ThunkInfo ) Source #
wNoThunks :: Context -> CertVRF SimpleVRF -> IO ( Maybe ThunkInfo ) Source #
showTypeOf :: Proxy ( CertVRF SimpleVRF ) -> String Source #
pointFromMaybe :: Maybe ( Integer , Integer ) -> Point Source #