arnaucube
arnaucube/hermez-nodePublic Self-hosted repository
hermez-node/coordinator/proofpool.go
coordinator/proofpool.goRaw
 1package coordinator
 2
 3import "github.com/hermeznetwork/hermez-node/common"
 4
 5// ServerProofInfo contains the data related to a ServerProof
 6type ServerProofInfo struct {
 7	// TODO
 8	Available bool
 9}
10
11// CalculateProof sends the *common.ZKInputs to the ServerProof to compute the
12// Proof
13func (p *ServerProofInfo) CalculateProof(zkInputs *common.ZKInputs) error {
14	return nil
15}
16
17// GetProof retreives the Proof from the ServerProof
18func (p *ServerProofInfo) GetProof() (*Proof, error) {
19	return nil, nil
20}
21
22// ServerProofPool contains the multiple ServerProofInfo
23type ServerProofPool struct {
24	// pool []ServerProofInfo
25}
26
27// GetNextAvailable returns the available ServerProofInfo
28func (p *ServerProofPool) GetNextAvailable() (*ServerProofInfo, error) {
29	return nil, nil
30}