-
Notifications
You must be signed in to change notification settings - Fork 479
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
use-cases: Add multi sig contract #840
Conversation
344c8ab
to
b7aca70
Compare
let | ||
present = $$(P.length) ($$(P.filter) ($$(V.txSignedBy) p) keys) | ||
in | ||
if $$(P.geq) present num |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For illustration perhaps it would be nice to log the keys that were present and those that weren't or something?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we can log them from on-chain code (we'd need to to base16-encode them and then convert to a string) but I'll have a look
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A way to convert bytestrings into strings on chain would be nice.
plutus-use-cases/src/Language/PlutusTx/Coordination/Contracts/MultiSig.hs
Show resolved
Hide resolved
plutus-use-cases/src/Language/PlutusTx/Coordination/Contracts/MultiSig.hs
Outdated
Show resolved
Hide resolved
plutus-use-cases/src/Language/PlutusTx/Coordination/Contracts/MultiSig.hs
Outdated
Show resolved
Hide resolved
3efb2e8
to
0c5aa8f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excellent — thanks!
Add `runWalletAction` to get the return value of the wallet action.
0c5aa8f
to
4d22843
Compare
This implements the simple multisig contract, where the spending transaction needs to be passed around via a separate channel.