-
Notifications
You must be signed in to change notification settings - Fork 2
export-and-sign updates #92
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
Conversation
7510849 to
560b91f
Compare
| } | ||
|
|
||
| // todo(olivia): throw error if enclave quorum public is null once server changes are deployed | ||
| if (enclaveQuorumPublic) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this iframe, we always expect clients to be passing in enclaveQuorumPublic. Therefore, we should enforce the expectation that it'll always be available, and check that it matches TURNKEY_SIGNER_ENCLAVE_QUORUM_PUBLIC_KEY
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a breaking change at all from the sdk side?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't be; as of this change https://github.com/tkhq/mono/pull/2806 we've been passing enclaveQuorumPublic around, so it should be required here
| }); | ||
|
|
||
| it("verifies enclave signature", async () => { | ||
| // No "enclaveQuorumPublic" field in the export bundle. Valid signature |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We're now requiring enclaveQuorumPublic all the time, so we're removing this unit test/expectation.
560b91f to
18924c2
Compare
|
|
||
| // Display only the key | ||
| // Display only the key --> this functionality should be deprecated at some point | ||
| // TODO: In debug mode, we also now need to be display multiple keys? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is not critical at this time; note for ourselves as we consider separating this iframe into "invisible" (no HTML/UI elements) vs. "standalone" (with HTML/UI elements for testing/demo purposes)
- update clear embedded key functionality - ensure backwards compatibility - update build
…tures. also, prettier
5c5b22b to
24bf0f7
Compare
24bf0f7 to
a4b5643
Compare
a4b5643 to
644d026
Compare
7ff0fb9 to
3c5dde8
Compare
|
@moe-dev see 3c5dde8; it corresponds to SDK PR's commit 2eebd7ff3a8435d91ddd4d47e0c3d267d818057d |
moeodeh3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
$title
addressparameter to be passed in along withinjectKeyExportBundle,signMessage, andsignTransaction.enclaveQuorumPublicbeing optional. Because this is a new iframe and customers using this will be on recent versions of our SDKs (which have this in export bundles),enclaveQuorumPublicshould always be checked.SDK counterpart: tkhq/sdk#1103