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

Full integration of threshold plugin with Functions #9765

Merged
merged 9 commits into from
Jul 11, 2023

Conversation

KuphJr
Copy link
Contributor

@KuphJr KuphJr commented Jul 10, 2023

  • Completed integration of threshold plugin with Functions
  • Added Functions integration tests with threshold decryption

@KuphJr KuphJr requested review from a team, bolekk, justinkaseman and pinebit as code owners July 10, 2023 23:30
@KuphJr KuphJr requested review from bolekk and removed request for bolekk July 10, 2023 23:30
@github-actions
Copy link
Contributor

I see that you haven't updated any README files. Would it make sense to do so?

res.WriteHeader(http.StatusOK)
// prepend "0xab" to source and return as result
_, err = res.Write([]byte(fmt.Sprintf(`{"result": "success", "statusCode": 200, "data": {"result": "0xab%s", "error": ""}}`, source)))
_, err = res.Write(responsePayload)

Check warning

Code scanning / CodeQL

Reflected cross-site scripting

Cross-site scripting vulnerability due to [user-provided value](1).
@KuphJr KuphJr requested a review from bolekk July 11, 2023 18:31
@cl-sonarqube-production
Copy link

for i := 0; i < nOracleNodes; i++ {
var thresholdKeyShare string
if len(thresholdKeyShares) == 0 {
thresholdKeyShare = ""
Copy link
Contributor

Choose a reason for hiding this comment

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

This could be simplified.

require.Equal(t, functions.LanguageJavaScript, int(data["language"].(float64)))
require.Equal(t, functions.LocationInline, int(data["codeLocation"].(float64)))
require.Equal(t, functions.LocationRemote, int(data["secretsLocation"].(float64)))
if data["secrets"] != DefaultSecretsBase64 && request["nodeProvidedSecrets"] != fmt.Sprintf(`{"0x0":"%s"}`, DefaultSecretsBase64) {
Copy link
Contributor

Choose a reason for hiding this comment

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

This is hard to understand without remembering how the legacy flow works exactly. I hope we can simplify after everything is migrated to Threshold.

@bolekk bolekk added this pull request to the merge queue Jul 11, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 11, 2023
@bolekk bolekk added this pull request to the merge queue Jul 11, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Jul 11, 2023
@bolekk bolekk added this pull request to the merge queue Jul 11, 2023
Merged via the queue into develop with commit c9a4b6b Jul 11, 2023
@bolekk bolekk deleted the feat/threshold-full-integration branch July 11, 2023 23:47
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