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

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