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

Create an executable exposing various Mithril TMS operations #44

Closed
ghost opened this issue Nov 17, 2021 · 3 comments
Closed

Create an executable exposing various Mithril TMS operations #44

ghost opened this issue Nov 17, 2021 · 3 comments
Labels
idea 💡 Something to discuss and refine T-feature Type: new features

Comments

@ghost
Copy link

ghost commented Nov 17, 2021

Having a CLI available to do various operations in Mithril would be helpful for documenting, explaining and experimenting. Every language and environment can easily spawn processes or run shell commands so this would be provide a crude but simple integration point.

@ghost ghost added enhancement idea 💡 Something to discuss and refine labels Nov 17, 2021
@iquerejeta
Copy link
Contributor

Yes, this sounds helpful for experimenting. First thought for the CLI would be as follows (nothing set in stone):

./stm parameters -k 3 -m 10 -phi 1 <path-for-params>

# This must be run for different players
./stm stm-init -id <ID> -stake <STAKE> <path-for-params> <path-for-initialiser> <path-for-broadcastable-data>

# This must be run for different players
./stm key-reg <path-for-broadcastable-data> [of all parties] <path-for-key-registration>

# This must be run for different players
./stm init-signer <path-for-initialiser> <path-for-key-registration> <path-for-signer>

# This must be run for different players
./stm try-signatures -m <MESSAGE> <path-for-signer> <path-for-parameters> <path-to-store-valid-sigs>

# This needs to be performed a single time
./stm aggregate -m <MESSAGE> <path-for-parameters> <path-to-store-valid-sigs> [for all sigs] <path-for-aggregate-msig>

./stm verify-msig -m <MESSAGE> <path-for-parameters> <path-for-aggregate-msig> 

All these calls can have the option of verbose where all the values will be printed to terminal. Maybe we want to allow for the CLI to take as input the serialised data as well?

@ghost
Copy link
Author

ghost commented Nov 18, 2021

Cool stuff! Once I manage to have my code to compile (see #47 ) I will start working along those lines.

@ghost
Copy link
Author

ghost commented Mar 31, 2022

@jpraynaud started this executable.

@ghost ghost closed this as completed Mar 31, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
idea 💡 Something to discuss and refine T-feature Type: new features
Projects
None yet
Development

No branches or pull requests

1 participant