5f7b3db9a4
* Add coconut verifier structure for coconut protocol in gateway * Add endpoint for validator-api cred verification * Remove unused signature field * Register new endpoint * Improve validator-api config handling * Aggregate verif result from all apis * Simplify aggregate functions * Verify cred on apis correctly * Introduced coconut bandwidth contract to validator client * Fix rebase double import * Fix clippy on non-coconut * Add multisig contract address to validator client * Refactor Credential struct * Do bincode magic in the coconut interface * Implement serialization for credential and remove bindcode * Fix clippy and don't remove dkg * Client release funds proposal * Add wrapper for blinded serial number Also compare theta with a blinded serial number (in base 58 form) for future double spend protection. * Only post blinded serial number to blockchain * Validator api propose credential spending * Fix wallet * Gateway calls proposal creation * Query for proposal in verify coconut * Remove db from git * Verify against proposal description * Validator apis vote based on verification of cred * Fix wallet fmt * Execute the release of funds * Fix translation between token and bytes * Update CHANGELOG
29 lines
1.3 KiB
Rust
29 lines
1.3 KiB
Rust
// Copyright 2021 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
use crate::ValidatorDetails;
|
|
|
|
pub(crate) const BECH32_PREFIX: &str = "nymt";
|
|
pub const DENOM: &str = "unymt";
|
|
pub const STAKE_DENOM: &str = "unyxt";
|
|
|
|
pub(crate) const MIXNET_CONTRACT_ADDRESS: &str = "nymt1ghd753shjuwexxywmgs4xz7x2q732vcnstz02j";
|
|
pub(crate) const VESTING_CONTRACT_ADDRESS: &str = "nymt14ejqjyq8um4p3xfqj74yld5waqljf88fn549lh";
|
|
pub(crate) const BANDWIDTH_CLAIM_CONTRACT_ADDRESS: &str =
|
|
"nymt17p9rzwnnfxcjp32un9ug7yhhzgtkhvl9f8xzkv";
|
|
pub(crate) const COCONUT_BANDWIDTH_CONTRACT_ADDRESS: &str =
|
|
"nymt1nz0r0au8aj6dc00wmm3ufy4g4k86rjzlgq608r";
|
|
pub(crate) const MULTISIG_CONTRACT_ADDRESS: &str = "nymt1k8re7jwz6rnnwrktnejdwkwnncte7ek7kk6fvg";
|
|
pub(crate) const _ETH_CONTRACT_ADDRESS: [u8; 20] =
|
|
hex_literal::hex!("8e0DcFF7F3085235C32E845f3667aEB3f1e83133");
|
|
pub(crate) const _ETH_ERC20_CONTRACT_ADDRESS: [u8; 20] =
|
|
hex_literal::hex!("E8883BAeF3869e14E4823F46662e81D4F7d2A81F");
|
|
pub(crate) const REWARDING_VALIDATOR_ADDRESS: &str = "nymt1jh0s6qu6tuw9ut438836mmn7f3f2wencrnmdj4";
|
|
|
|
pub(crate) fn validators() -> Vec<ValidatorDetails> {
|
|
vec![ValidatorDetails::new(
|
|
"https://sandbox-validator.nymtech.net",
|
|
Some("https://sandbox-validator.nymtech.net/api"),
|
|
)]
|
|
}
|