cairo-contracts
cairo-contracts copied to clipboard
feat: Add basic Multisig Account
Fixes #21
PR Checklist
- [ ] Tests
- [ ] Documentation
- [ ] Added entry to CHANGELOG.md
- [ ] Tried the feature on a public network
@martriay this is a first draft, only spent 2 hours on it.
Basically, i modified :
get_public_keyforget_public_keys, returning a span of all public keys stored associated with the accountset_public_keyforadd_public_keyandremove_public_key(with some checks missing for now)_is_valid_signaturenow makes sure that all provided sig are valid
It is just a draft so you can tell me if the way i implemented it is relevant or not.
Not that i added a threshold variable in storage, but did not implement for now a way to set it and modify it.
Thanks! Will look into it after we finish the current release.
Hey @TAdev0, thanks for taking the time to contribute. Since we delayed this issue for a while, we worked on an implementation that will be included in this release. Feel free to jump into the conversation on #1193.