Versions in this module Expand all Collapse all v0 v0.1.0 Nov 10, 2022 Changes in this version + const Error + const ErrorParam + const ErrorParamNotFound + const Success + func GenerateAuthenticator(i int64, s int64, T0 T0, piece []byte, Alpha *pbc.Element, ...) []byte + type FileTagT struct + Signature []byte + type HashNameAndI struct + I int64 + Name string + type PBCKeyPair struct + Alpha *pbc.Element + G *pbc.Element + SharedG []byte + SharedParams string + Spk []byte + Ssk []byte + V *pbc.Element + func Keygen() PBCKeyPair + type PoDR2Commit struct + BlockSize int64 + FilePath string + type PoDR2CommitResponse struct + Sigmas [][]byte + StatueMsg PoDR2StatueMsg + T FileTagT + type PoDR2Prove struct + Matrix [][]byte + QSlice []QElement + S int64 + Sigmas [][]byte + T FileTagT + func (prove PoDR2Prove) PoDR2ProofProve(spk []byte, sharedParams string, sharedG []byte, segmentSize int64) <-chan PoDR2ProveResponse + type PoDR2ProveResponse struct + MU [][]byte + Sigma []byte + StatueMsg PoDR2StatueMsg + type PoDR2StatueMsg struct + Msg string + StatusCode int + type PoDR2Verify struct + MU [][]byte + QSlice []QElement + Sigma []byte + T FileTagT + func (verify PoDR2Verify) PoDR2ProofVerify(SharedG, spk []byte, sharedParams string) bool + type QElement struct + I int64 + V []byte + func PoDR2ChallengeGenerate(N int64, SharedParams string) []QElement + func PoDR2ChallengeGenerateFromChain(blockindex types.Bytes, blockrandom []types.Bytes) ([]QElement, error) + type T0 struct + N int64 + Name []byte + U [][]byte + type TagInfo struct + Sigmas [][]byte + T FileTagT