mpc-recovery
mpc-recovery copied to clipboard
Update multi-chain contract API
Description
Propositions are welcomed, here is what I think we should change:
### TODO
- [ ] Organize contract API, separate public API
- [ ] return result as a struct (key values), not an array
- [ ] return derived user PK that was used in signing (can be done on FE, but it should allow to check the signature on the contract level and make FE life easier, we may have many integrations in the future)
- [ ] return root and user pk as a point or string, not near_sdk::PK
- [ ] ~~prevent payload hash rotation on the client side~~ (does not seem possible)
- [ ] https://github.com/near/mpc-recovery/issues/548
- [ ] https://github.com/near/mpc-recovery/issues/578
- [ ] https://github.com/near/mpc-recovery/issues/593
- [ ] https://github.com/near/mpc-recovery/issues/583
- [ ] https://github.com/near/mpc-recovery/issues/585
- [ ] https://github.com/near/mpc-recovery/issues/579
### Under discussion
- [ ] https://github.com/near/mpc-recovery/issues/513