Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Include simple CLI with testing-utils (#417)
* Add dependencies for simple CLI * Simple CLI * hash given word * Minor edit * Add already registered check * Dependencies for cli * Add sign fn to test client * Update program fn * Update program command * Improve sign fn * Doccomments * Fmt * Rm tests for SignedMessage * KeyVisibility as option to register command * Comment * Fallback to environment variable for endpoint URI * Add features show all registered accounts, and fund an account with sudo * Format output of status command * Use x25519chacha20poly1305 for encrypting messages, to reduce duplicated code here * Add a test for test_client * Use bugfix branch of x25519chacha20poly1305 * Use separate sig request and constrain modification accounts * Fmt, re-build lockfile * Re-export KeyVisibility * Fmt * Clippy * As x25519chacha20poly1305 is public, dont use ssh to clone it * User can participate in signing using test client * Update for private signing * Update test for private signing * Make other test fns follow the convention of taking a seed string instead of keypair * Update tests * Select DKG committee when registerig with private key visibility * Taplo * Update test client for changes in master * Update to use main branch of x25519chacha20poly1305 * Update to use SocketAddr for validator ips * Updates following changes to master * Updates following changes to master * Use x25519-dalek v2.0.0 * Increase timeout for waiting for register confirmation * Allow auxilary data for programs to be passed in * Clippy * Use branch of x25519 repo with fix for newer sp-core versions * Move test_client unit tests to integration test * Fix type issue * Use common functions from server instead of duplicating them * Use pair, not seed in test client, and verifiy signature on signing response * Check verfiying keys on signing * Rm unwrap * Store/retrieve keyshares from disk * Logging, comments * Comment * Comment * Adjust block number offset used for selecting DKG committe when registering in private mode * Change about description for CLI Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * Typo Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * Add long about * CLI display changes suggested in PR review * Initialise test logger in integration test Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * Initialize test logger in integration test Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * Improve display of registered accounts * Dont initialise test logger in integration tests * Comment changes based on PR review feedback * Move test cli to separate binary * Add README * Update CLI readme * Taplo * Fix import issue in protocol wasm test * Fixes following merge with master * Rm blank line in readme Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * Typo in readme Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * Set publish to true in test CLI, change package name and use default features of sp-core * Changelog --------- Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com>
- Loading branch information