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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test #20017

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

test #20017

wants to merge 1 commit into from

Conversation

joyqvq
Copy link
Contributor

@joyqvq joyqvq commented Oct 24, 2024

Description

Describe the changes or additions included in this PR.

Test plan

How did you test the new or updated feature?


Release notes

Check each box that your changes affect. If none of the boxes relate to your changes, release notes aren't required.

For each box you select, include information after the relevant heading that describes the impact of your changes that a user might notice and any actions they must take to implement updates.

  • Protocol:
  • Nodes (Validators and Full nodes):
  • Indexer:
  • JSON-RPC:
  • GraphQL:
  • CLI:
  • Rust SDK:
  • REST API:

Copy link

vercel bot commented Oct 24, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
sui-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 4, 2024 10:46pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
multisig-toolkit ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2024 10:46pm
sui-kiosk ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2024 10:46pm
sui-typescript-docs ⬜️ Ignored (Inspect) Visit Preview Nov 4, 2024 10:46pm

@joyqvq joyqvq force-pushed the joy/attestation branch 2 times, most recently from f056421 to de1eacd Compare October 31, 2024 21:31
@joyqvq joyqvq temporarily deployed to sui-typescript-aws-kms-test-env October 31, 2024 21:31 — with GitHub Actions Inactive
@joyqvq joyqvq temporarily deployed to sui-typescript-aws-kms-test-env October 31, 2024 22:41 — with GitHub Actions Inactive
@joyqvq joyqvq temporarily deployed to sui-typescript-aws-kms-test-env October 31, 2024 22:45 — with GitHub Actions Inactive
@joyqvq joyqvq temporarily deployed to sui-typescript-aws-kms-test-env November 1, 2024 18:11 — with GitHub Actions Inactive
@joyqvq joyqvq temporarily deployed to sui-typescript-aws-kms-test-env November 1, 2024 19:16 — with GitHub Actions Inactive
@joyqvq joyqvq temporarily deployed to sui-typescript-aws-kms-test-env November 1, 2024 19:23 — with GitHub Actions Inactive
@joyqvq joyqvq temporarily deployed to sui-typescript-aws-kms-test-env November 1, 2024 21:55 — with GitHub Actions Inactive
@joyqvq joyqvq temporarily deployed to sui-typescript-aws-kms-test-env November 1, 2024 22:18 — with GitHub Actions Inactive
@joyqvq joyqvq temporarily deployed to sui-typescript-aws-kms-test-env November 1, 2024 22:18 — with GitHub Actions Inactive
@joyqvq joyqvq temporarily deployed to sui-typescript-aws-kms-test-env November 1, 2024 23:56 — with GitHub Actions Inactive
@joyqvq joyqvq temporarily deployed to sui-typescript-aws-kms-test-env November 4, 2024 22:07 — with GitHub Actions Inactive
// Step 1. Decode the CBOR object and map it to a COSE_Sign1 structure
let cose_sign1 = CoseSign1::from_bytes(document_data)
.map_err(|_| SuiError::AttestationFailedToVerify("cannot parse cose sign1".to_string()))?;
let now = SystemTime::now();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

nitro enclave attestation expires in 3 hours. is it safe to use system time now from validators?

Copy link
Contributor

Choose a reason for hiding this comment

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

local time is not consistent, we can read Clock on the Move level and pass its value to the native call

InvalidUserData,
}

impl From<ciborium::de::Error<std::io::Error>> for NitroError {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

remove

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.

2 participants