# Grin-wallet contract prototype

**URL:** <https://forum.grin.mw/t/grin-wallet-contract-prototype/9745>\
**Category:** Development and Technical Discussion\
**Created:** [April 26, 2022, 1:16pm UTC](https://forum.grin.mw/t/grin-wallet-contract-prototype/9745 "2022-04-26T13:16:06Z")\
**Posts on this page:** 1\
**Showing post:** 18

<div class="post-metadata">

**Author:** ![oryhp](https://yyz2.discourse-cdn.com/flex036/user_avatar/forum.grin.mw/oryhp/32/2923_2.png) [@oryhp](https://forum.grin.mw/u/oryhp)\
**Post date:** [July 17, 2022, 9:08am UTC](https://forum.grin.mw/t/grin-wallet-contract-prototype/9745/18 "2022-07-17T09:08:47Z")

</div>

Unfortunately, there is an attack possible [1] (confirmed by tromp) when we have 3 or more parties and we’d need some extra work to protect against these. It may be best to start off with only having support for 2 parties and extend beyond this later on - I think protecting against this attack would require a slightly bigger change which might be best done separately.

[1] [Why 3 party contracts are insecure · GitHub](https://gist.github.com/phyro/1bf782db437cec226bff703f4f7f2098)

---

_[View the full topic](https://forum.grin.mw/t/grin-wallet-contract-prototype/9745)._
