fix-test-route-construction
4 Commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
c7cdd1e1b4 |
feature/pedersen-commitments (#1048)
* add pedersen.rs and first alias type * replace ciphertexts in BlindSignRequest by commitments and adapt try_from * update BlindSignRequest.to_byte_vec * add TODO to issuance.rs * [WIP] update CmCs proof to use commitments * complete ProofCmCs construct implementation * [WIP] ProofCmCs verify * complete ProofCmCs verify implementation * complete ProofCmCs to_bytes implementation * complete ProofCmCs from_bytes implementation * WIP update ProofCmCs roundtrip tests * WIP update prepare_blind_sign * update prepare_blind_sign * WIP update blind_sign * update blind_sign * update BlindedSignature and try_from * update BlindedSignature unblind * update BlindedSignature to_bytes * move elgamal encrypto to elgamal and manage imports * add verification keys for g1 method * upadate tests to work with Pedersen commitments * unused remove pedersen.rs * update error message * fix proof_cm_cs_bytes_roundtrip test * Move generation of commitment openings into prepare blind signature function * Edits * Extende the verification key; remove validator's secret key from the unblind function * Update the unblind function throughout the whole nymcoconut repo * Fix broken tests * Run cargo clippy and fmt * Add benchmark measurements * Add more detailed printouts * Change byte printout * Update benchmarks * add public attributes as part of the commitment * update bytes order comment for ProofCmCs * check proof_cm_cs_bytes_roundtrip test and remove TODO * remove irrelevant prints in blind signature tests * remove inappropriate function to get betas_g1 * remove irrelevant prints in verification * Remove print statement and add additional checks on the verification key * Run clippy * Fix coconut call in validator-api * Update dependend packages * Update the input to the obtain partial credential function * Fix the verification key bytes calculation * Run cargo fmt on keygen.rs * Run cargo fmt for validator-api * Run cargo fmt for credentials * Replace concat with chain * Remove unneccessary mut * Run cargo fmt * fix type conversion Co-authored-by: aniampio <anna.piotrowska.15@ucl.ac.uk> |
||
|
|
e2e06df4e6 |
Feature/validator api client endpoints (#1024)
* Moved mixnode status route to node status api module * Introduced validator-api endpoint for estimating mixnode's reward * Stake saturation endpoint * kebab-cased coconut routes * Created separate crate for validator API models * Additional routes in validator API client * Introduced support for new queries in the wallet * Typescript type derivation * Fixed up date in license notice |
||
|
|
a274edffba |
Feature/nymd client integration (#736)
* Calculating gas fees * Ability to set custom fees * Added extra test * Removed commented code * Moved all msg types to common contract crate * Temporarily disabling get_tx method * Finishing up nymd client API * Comment fix * Remaining fee values * Some cleanup * Removed needless borrow * Fixed imports in contract tests * Moved error types around * New ValidatorClient * Experiment with new type of defaults * Removed dead module * Dealt with unwrap * Migrated mixnode to use new validator client * Migrated gateway to use new validator client * Mixnode and gateway adjustments * More exported defaults * Clients using new validator client * Fixed mixnode upgrade * Moved default values to a new crate * Changed behaviour of validator client features * Migrated basic functions of validator api * Updated config + fixed startup * Fixed wasm client build * Integration with the explorer api * Removed tokio dev dependency * Needless borrow * Fixex wasm client build * Fixed tauri client build * Needless borrows * Fixed client upgrade print * Removed redundant comments * Made note on aggregated verification key into a doc comment * Removed mixnet contract references from verloc * Modified default validators structure * Reformatted validator-api Cargo.toml file * Removed commented code * Made the doc comment example a no-run * Fixed a upgrade print... again * Adjusted the doc example * Removed unused import |
||
|
|
28e55c6de6 |
Hang coconut issuance off the validator-api (#679)
* Hand coconut issuance off the validator-api
* git to cargo
* Move to own module
* Integrate tauri-client, extract common interface
* cargo fmt
* Ergonomics
* Facelift
* Wrap up tauri client
* Set up publish
* Fix fmt
* Install CI dependencies
* Inline deps
* Remove mac deps
* Add dist dir
* Fix beta clippy nag
* Commit some gateway work
* Thread coconut creds through gateway handshake
* Push in progress patch
* Move State from tauri client to coconut interface
* Move get_aggregated_signature from tauri client to coconut interface
* Move prove_credential from tauri client to coconut interface
* Update sphinx version
* Mount coconut routes and manage config file in rocket
* Split default validator endpoint into host and port
* Add init for simple credential initialization
* Fix common gateway client
* Add coconut cred to webassembly client
* Add coconut cred to socks5 client
* Add coconut cred to native client
* Remove direct coconut-rs dependency
* Use only coconut interface in validator api
* Leave validator-api out of workspace and update Cargo.lock
* Fix clippy warnings and update Cargo.lock after rebase
* Switch from attohttpc to reqwest for async gets
This is not only needed for using async requests, but also because attohttpc
causes OpenSSL issues when cross compiling the webassembly client.
* Replace attohttpc with reqwest for puts too
* Make tauri client commands async
* Fix borrow error
* Guard gateway server code from compiling for wasm (client)
* Fix clippy wasm client
* Fix tests
* Fix clippy in tauri client
* Remove commented code
* Update comment of init message
* Remove unnecessary hex dependency
* Replace config argument with key_pair
* Use `trim()` for whitespace removal
* Move verification key query higher up the function calls
* Put KeyPair instead of Config into rocket's managed items
* Re-enable tauri client verify button
* Move verification key up the function calls for prove_credential
* Use consts for verification_key and blind_sign routes of validator-api
* Replace `match` with `map_err`
* Fix typo
* Remove now unnecessary `Clone` derives
... as config is no longer managed by rocket
* Replace `match` with `map_err`
* Make `InternalSignRequest` really internal to validator-api
* Make `with_keypair` live up to its name
* Update Cargo.lock after rebase
* Replace String error with HandshakeError
* Add CoconutInterfaceError to coconut-interface
* Format the new error in tauri client
* Remove from default, as wasm client doesn't build
* Put public key as init argument...
... for the public attributes of the credential
* Use the hash_to_scalar function to make public key into attribute
Use the function from cli-demo-rs from https://github.com/nymtech/coconut
to make the identity public key into a public attribute.
* Replace vector with array for InitMessage
As we know beforehand the size of the keys, we can use fixed size array
instead of vectors. This eliminates the need for a prefixed length in
the serialized form of the InitMessage structure and enables a easy
deserialization of the remote identity before the actual bincode
deserialization that we do in the handshake process.
Before this, the `extract_remote_identity_from_register_init` function
attempted to deserialize into a public key the length-prefixed public key
received from the client, thus failing sporadically with a `Cannot decompress
Edwards point` error.
* Pass public and private attributes to state `init` instead of PublicKey
* Make tauri call with dummy attributes
* Make clients call with their keypairs
* Revert "Make clients call with their keypairs"
This reverts commit
|