modulepackage
0.0.0-20230329100436-cdfdded696fb
Repository: https://github.com/lambdaim/proofdp.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# Functions
GenChal created a challenge instance for given 'idx'.
GenChalWithSeed created a challenge instatnce for given 'idx'.
GeneratePrivateParams returns the PrivateParams instance created using given crypto.PrivKey.
GenerateSignPrivKeyFromSecret creates a new SignPrivKey instance.
GenTag calculates the tag for given 'data' & 'idx'.
ParseChal trys to restore a Chal instance.
ParsePrivateParams try to restore a PrivateParams instance.
ParseProof trys to restore a Proof instance by parsing given string.
ParsePublicParams trys to restore a PublicParams instance from a given string.
ParseTag try to restore a Tag instance.
Prove created a Proof instance against the given challenge & the local storage.
VerifyProof validates if the given 'p' is exactly a sound proof against the given challenge 'c'.
VerifySignature validates if a signature is signed using 'pk'-responding SignPrivKey instance on the given hash 'h'.
# Structs
Chal wraps a validator created random value & corespoding idx.
PrivateParams holds the private parameters of a specific PDP proof.
Proof is the product of Prove.
PublicParams holds the public paramters of a specific PDP proof.
SignPrivKey is the private key for PDP signature.
SignPubKey is the public key for PDP signature verification.