Skip to content

Commit

Permalink
Include simple CLI with testing-utils (#417)
Browse files Browse the repository at this point in the history
* 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
ameba23 and HCastano authored Dec 1, 2023
1 parent c4fba10 commit 84eb9e3
Show file tree
Hide file tree
Showing 11 changed files with 1,033 additions and 145 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ At the moment this project **does not** adhere to

## [Unreleased]

- Test CLI which calls the same code as in integration tests ([#417](https://github.com/entropyxyz/entropy-core/pull/417))

## [0.0.9](https://github.com/entropyxyz/entropy-core/compare/release/v0.0.8..release/v0.0.9) - 2023-11-30

Some of the noteworthy changes related to this release are related to better integration in Web
Expand Down
Loading

0 comments on commit 84eb9e3

Please sign in to comment.