Grin-wallet contract prototype

As described in (mostly) Lock free transactions - #20 by oryhp, I think the early-lock & late-add is interesting because it brings robustness to fee estimation. Regardless of when we lock the inputs, we can always do the late-add at the sign step without any drawbacks (as far as I can tell) which is why I’ll add this as the only behavior in the contract code. I welcome any feedback on this and am open to being convinced other approaches may be more suitable. I’m especially interested in feedback whether early-lock or late-lock should be the default. The tradeoff seems to be stability (you can’t start a contract which you can’t finish) vs flexibility (just in time input selection).

1 Like