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

v4: feat: remote signer #185

Closed
wants to merge 17 commits into from
Closed

v4: feat: remote signer #185

wants to merge 17 commits into from

Conversation

ieow
Copy link
Contributor

@ieow ieow commented Oct 28, 2024

remoteSigner

Motivation and Context

Jira Link:

Description

How has this been tested?

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • My code follows the code style of this project. (run lint)
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have added tests to cover my changes.
  • All new and existing tests passed.
  • My code requires a db migration.

@ieow ieow changed the title feat: initial commit feat: remote signer - v3 Oct 29, 2024
@ieow ieow force-pushed the feat/remoteSigner-V3 branch from c33d0d0 to ef7e61f Compare November 6, 2024 03:27
@ieow ieow force-pushed the feat/remoteSigner-V3 branch from 5f8870f to 57472c3 Compare November 7, 2024 08:34
@ieow ieow marked this pull request as ready for review November 20, 2024 03:37
@himanshuchawla009 himanshuchawla009 changed the title feat: remote signer - v3 v4: feat: remote signer Nov 25, 2024
@himanshuchawla009 himanshuchawla009 changed the base branch from master to v4 November 26, 2024 09:47
@@ -934,10 +970,182 @@ export class Web3AuthMPCCoreKit implements ICoreKit {
}
}

async setupRemoteSigning(params: Omit<IRemoteClientState, "tssShareIndex" | "signatures">): Promise<void> {
Copy link
Member

Choose a reason for hiding this comment

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

i think this function can be moved to plugin itself

msgHash: msgData.toString("hex"),
};

const result = await post<{ data?: Record<string, string> }>(`${this.state.remoteClient.remoteClientUrl}/api/v3/mpc/sign/dkls`, data, {
Copy link
Member

Choose a reason for hiding this comment

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

this logic should be moved to a function in plugin so that we can be decoupled from api endpoints here, i think another way to do it is to do it directly inside existing sign function since most of the code is same and call the remoteSign function same as we are doing for copyShare logic.

};
await this.sessionManager.createSession(payload);
// to accommodate async storage
await this.currentStorage.set("sessionId", sessionId);
Copy link
Member

Choose a reason for hiding this comment

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

this function should be moved to plugin as well

@ieow
Copy link
Contributor Author

ieow commented Dec 20, 2024

close in favor of #209

@ieow ieow closed this Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants