-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* remove permissioned * have verifying key as key in registered state * tss crate compile * compiling * fix one broken test * fix another test * fix more tests * sign tx test * more tests * fix all tests * at an event listener for registered * registry tests * more tests * keyshare check * clean * clean * tests * fmt * update wasm * clean wasm tests * fmt * spelling * inline docs * fix test * changelog * fix event issue * lint * clean * clean * Update pallets/registry/src/lib.rs Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * fix * Update crates/test-cli/src/main.rs Co-authored-by: peg <peg@magmacollective.org> * fixes * clean * clean * Apply suggestions from code review Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * clean * clean * fix * fix * fix * fmt * Update pallets/registry/src/lib.rs Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> * lint * fix wasm * fix --------- Co-authored-by: Hernando Castano <HCastano@users.noreply.github.com> Co-authored-by: peg <peg@magmacollective.org>
- Loading branch information
1 parent
d7a7f3c
commit da40bd7
Showing
31 changed files
with
590 additions
and
581 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
use hex_literal::hex; | ||
use lazy_static::lazy_static; | ||
use sp_std::vec; | ||
use sp_std::vec::Vec; | ||
|
||
lazy_static! { | ||
pub static ref DEFAULT_VERIFYING_KEY_NOT_REGISTERED: Vec<u8> = vec![10; VERIFICATION_KEY_LENGTH as usize]; | ||
pub static ref DAVE_VERIFYING_KEY: Vec<u8> = vec![1; VERIFICATION_KEY_LENGTH as usize]; | ||
// this key is associated with a constant key share generation from DETERMINISTIC_KEY_SHARE | ||
pub static ref EVE_VERIFYING_KEY: Vec<u8> = vec![2, 78, 59, 129, 175, 156, 34, 52, 202, 208, 157, 103, 156, 230, 3, 94, 209, 57, 35, 71, 206, 100, 206, 64, 95, 93, 205, 54, 34, 138, 37, 222, 110]; | ||
pub static ref FERDIE_VERIFYING_KEY: Vec<u8> = vec![3; VERIFICATION_KEY_LENGTH as usize]; | ||
pub static ref DEFAULT_VERIFYING_KEY: Vec<u8> = vec![0; VERIFICATION_KEY_LENGTH as usize]; | ||
// key used to create a deterministic key share taken from here https://docs.rs/k256/latest/k256/ecdsa/index.html | ||
pub static ref DETERMINISTIC_KEY_SHARE: [u8; 32] = hex!("4c0883a69102937d6231471b5dbb6204fe5129617082792ae468d01a3f362318"); | ||
} | ||
|
||
pub const SIGNING_PARTY_SIZE: usize = 2; | ||
|
||
// min balance 12 decimal chain = 0.1 | ||
pub const MIN_BALANCE: u128 = 10000000000; | ||
|
||
// 6 seconds a block this is one day | ||
/// The amount of blocks before a tx request is pruned from the kvdb | ||
pub const PRUNE_BLOCK: u32 = 14400; | ||
|
||
/// Timeout for validators to wait for other validators to join protocol committees | ||
pub const SETUP_TIMEOUT_SECONDS: u64 = 20; | ||
|
||
/// The amount of proactive refreshes we do per session | ||
pub const REFRESHES_PER_SESSION: u32 = 10; | ||
|
||
/// Max instructions per wasm program | ||
pub const MAX_INSTRUCTIONS_PER_PROGRAM: u64 = 100_000; | ||
|
||
/// Blocks a transaction is valid for | ||
pub const MORTALITY_BLOCKS: u64 = 32; | ||
|
||
/// Size of the verification key | ||
pub const VERIFICATION_KEY_LENGTH: u32 = 33; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.