Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MPoW] New TEE register #171

Merged
merged 3 commits into from
Jun 23, 2020
Merged

[MPoW] New TEE register #171

merged 3 commits into from
Jun 23, 2020

Conversation

badkk
Copy link
Member

@badkk badkk commented Jun 23, 2020

1. New register process

  1. Add IAS root CA
  2. New identity
    • IAS temp CA
    • IAS signature
    • ISV body
    • Chain account id
    • Identity sig
  3. Validation process
    • base64 decode IAS signature
    • Extract IAS temp pub key
    • Parse ISV body
      • Extract public_key from isvEnclaveQuoteBody and decoded by base64([368, 431] bytes)
    • 馃攽 Verify certification trusted chain
    • 馃攽 Verify ISV body using IAS signature and IAS temp CA
    • 馃攽 Verify enclave code
    • 馃攽 Verify identity sig using public_key

2. Add error type for tee module

3. Change all identity test cases and fix 1 work report test case bug

@badkk badkk added pleasereview A2-breakapi PR which break the outter api A0-breakconsensus PR which break the consensus, make blocking error P0-dropeverything馃敂 Fix first labels Jun 23, 2020
@badkk badkk self-assigned this Jun 23, 2020
});
}

#[test]
fn test_for_work_report_sig_check_failed() {
new_test_ext().execute_with(|| {
// generate 53 blocks first
run_to_block(53);
run_to_block(303);
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change this wrong test case for accurate error type

@badkk badkk merged commit 35c015d into master Jun 23, 2020
@badkk badkk deleted the zikun/new-identity branch June 30, 2020 06:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A0-breakconsensus PR which break the consensus, make blocking error A2-breakapi PR which break the outter api P0-dropeverything馃敂 Fix first
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants