Skip to content

refactor(keyring-eth-money-mpc): call check-key-share with GET - #717

Merged
ccharly merged 3 commits into
mainfrom
mg/check-key-share-get
Dec 1, 2026
Merged

ccharly merged 3 commits into
mainfrom
mg/check-key-share-get

Conversation

@matthiasgeihs

@matthiasgeihs matthiasgeihs commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

checkKeyShare sends POST /check-key-share with an empty body, but the call only reads the profile's epochs (latestShareEpoch, latestBackupEpoch, activeEpoch). The MPC backend now serves this route as GET. It keeps POST as a deprecated alias for older keyring releases, to be removed later.

This PR switches checkKeyShare to the existing getJson helper, like loadKeyShareBackup. The request still sends the profile token as a Bearer header, and the response validation and error messages don't change. The test now also checks the method and headers.

The package API doesn't change. The new version needs an MPC backend that serves GET /check-key-share.

Examples

No client changes are needed beyond bumping the package.

Co-authored-by: Cursor <cursoragent@cursor.com>
@matthiasgeihs
matthiasgeihs requested a review from a team as a code owner November 26, 2026 11:07
Co-authored-by: Cursor <cursoragent@cursor.com>
@matthiasgeihs

Copy link
Copy Markdown
Contributor Author

@MetaMask publish-preview

Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	packages/keyring-eth-money-mpc/CHANGELOG.md
@ccharly
ccharly added this pull request to the merge queue Dec 1, 2026
Merged via the queue into main with commit ef0c15e Dec 1, 2026
27 checks passed
@ccharly
ccharly deleted the mg/check-key-share-get branch December 1, 2026 13:30
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