Skip to content

sgx option in poco proposal C - #4

Closed
branciard wants to merge 2 commits into
masterfrom
sgx-option-c
Closed

sgx option in poco proposal C#4
branciard wants to merge 2 commits into
masterfrom
sgx-option-c

Conversation

@branciard

@branciard branciard commented Feb 1, 2018

Copy link
Copy Markdown

After discussion with Lei, this one seams to be the best one ( some Sgx option a + Sgx option b).

The scheduler call a worker with a challenge.

callForContribution(address_worker, address _sgxChallenge)
...
	m_tasksContributions[_worker].sgxChallenge=_sgxChallenge;
...

The challenge solution is in the encrypted region on the worker enclave, checked at the contribution function :

contribute(bytes32 _resultHash, bytes32 _resultSign, uint8 _v, bytes32 _r, bytes32 _s) `
		if (m_sgxGuarantee)
		{
				require( m_tasksContributions[msg.sender].sgxChallenge == ecrecover(keccak256(_resultHash ^ _resultSign),  _v,  _r,  _s));
		}

@branciard branciard changed the title Sgx option c sgx option in poco proposal C Feb 1, 2018
@branciard branciard closed this Feb 8, 2018
@branciard
branciard deleted the sgx-option-c branch February 8, 2018 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant