Skip to content
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

Merged
merged 2 commits into from
Apr 6, 2019
Merged

Conversation

j-mueller
Copy link
Contributor

This implements the simple multisig contract, where the spending transaction needs to be passed around via a separate channel.

let
present = $$(P.length) ($$(P.filter) ($$(V.txSignedBy) p) keys)
in
if $$(P.geq) present num
Copy link
Contributor

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?

Copy link
Contributor Author

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

Copy link
Contributor

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.

@j-mueller j-mueller force-pushed the j-mueller/792-multi-sig branch 7 times, most recently from 3efb2e8 to 0c5aa8f Compare April 4, 2019 20:59
Copy link
Contributor

@mchakravarty mchakravarty left a 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants