You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

30 lines
769 B

package coordinator
import "github.com/hermeznetwork/hermez-node/common"
// ServerProofInfo contains the data related to a ServerProof
type ServerProofInfo struct {
// TODO
Available bool
}
// CalculateProof sends the *common.ZKInputs to the ServerProof to compute the
// Proof
func (p *ServerProofInfo) CalculateProof(zkInputs *common.ZKInputs) error {
return nil
}
// GetProof retreives the Proof from the ServerProof
func (p *ServerProofInfo) GetProof() (*Proof, error) {
return nil, nil
}
// ServerProofPool contains the multiple ServerProofInfo
type ServerProofPool struct {
// pool []ServerProofInfo
}
// GetNextAvailable returns the available ServerProofInfo
func (p *ServerProofPool) GetNextAvailable() (*ServerProofInfo, error) {
return nil, nil
}