MCPcopy Create free account
hub / github.com/SmartPool/smartpool-client / GetShareIndex

Method GetShareIndex

interfaces.go:79–79  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 3

GetVerificationIndexMethod · 0.65
GetShareIndexMethod · 0.65
GetShareIndexMethod · 0.65

Implementers 3

testContractprotocol/test_contract.go
Contractethereum/contract.go
TestPoolSessionethereum/geth/generated_test_pool.go

Calls

no outgoing calls

Tested by

no test coverage detected