pairing

package
v0.0.0-...-ebe581b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RandChallenger

type RandChallenger struct {
	// contains filtered or unexported fields
}

RandChallenger is the pairing based challenger

func New

New new a challenger by challenge related configuration

func (*RandChallenger) Close

func (m *RandChallenger) Close()

func (*RandChallenger) GenerateChallenge

func (m *RandChallenger) GenerateChallenge(sliceIdxList []int, interval int64) ([][]byte, [][]byte, int64, []byte, error)

GenerateChallenge randomly select a subset of the index list to generate challenge calculate random number for the challenge round by private key and challenge interval

func (*RandChallenger) GetChallengeConf

func (m *RandChallenger) GetChallengeConf() (string, types.PairingChallengeConf)

GetChallengeConf get challenge configuration

func (*RandChallenger) Save

func (m *RandChallenger) Save(cms []ctype.Material) error

Save not implemented for random challenge

func (*RandChallenger) Setup

func (m *RandChallenger) Setup(sliceData []byte, rangeAmount int) (c []ctype.RangeHash, err error)

Setup not implemented for random challenge

func (*RandChallenger) Take

func (m *RandChallenger) Take(fileID string, sliceID string, nodeID []byte) (c ctype.RangeHash, err error)

Take not implemented for random challenge

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL