GetShareIndex returns index of the share that is requested to submit proof to the contract to represent correctness of the submitted claim. GetShareIndex must be called after SubmitClaim to get shareIndex which is used to pass to VerifyClaim. If GetShareIndex is called before SubmitClaim, the index
(claim Claim)
| 77 | // is used to pass to VerifyClaim. If GetShareIndex is called before |
| 78 | // SubmitClaim, the index will have no meaning to contract. |
| 79 | GetShareIndex(claim Claim) *big.Int |
| 80 | // VerifyClaim takes some necessary parameters that provides complete proof |
| 81 | // of a share with index shareIndex in the cliam and submit to contract side |
| 82 | // in order to prove that the claim is valid so the miner can take credit |
no outgoing calls
no test coverage detected