forked from crypto-com/thaler
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Problem: tdbe types are not up to date with latest design (fixes cryp…
…to-com#1967) Solution: updated the data types according to the latest doc https://github.com/crypto-com/chain-docs/pull/179/files - chain-abci part was moved to extras module of mls for validation (when crypto-org-chain/chain-docs#141 is done implementation could go there) - in order not to break tx format, confidential init is still takes as Vec<u8> - as tdbe workflows aren't ready yet, a temporary wrapper was put in the client
- Loading branch information
Showing
29 changed files
with
264 additions
and
78 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -357,7 +357,7 @@ impl fmt::Display for StakingCoinChange { | |
#[cfg(test)] | ||
mod tests { | ||
use super::*; | ||
use chain_core::state::account::ConfidentialInit; | ||
use chain_core::state::account::{ConfidentialInit, MLSInit}; | ||
use chain_core::state::tendermint::TendermintValidatorPubKey; | ||
use chain_core::tx::fee::Fee; | ||
use std::str::FromStr; | ||
|
@@ -437,7 +437,7 @@ mod tests { | |
|
||
assert_eq!( | ||
staking_diff.to_string(), | ||
"{\"key\":\"CouncilNode\",\"value\":{\"name\":\"Council Node\",\"security_contact\":\"[email protected]\",\"confidential_init\":{\"keypackage\":\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\"},\"consensus_pubkey\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\"}}}", | ||
"{\"key\":\"CouncilNode\",\"value\":{\"name\":\"Council Node\",\"security_contact\":\"[email protected]\",\"confidential_init\":{\"init_payload\":\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\"},\"consensus_pubkey\":{\"type\":\"tendermint/PubKeyEd25519\",\"value\":\"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=\"}}}", | ||
); | ||
} | ||
|
||
|
@@ -446,7 +446,7 @@ mod tests { | |
let any_security_contact = Some(String::from("[email protected]")); | ||
let any_pub_key = TendermintValidatorPubKey::Ed25519([0u8; 32]); | ||
let any_cert = ConfidentialInit { | ||
keypackage: [0u8; 32].to_vec(), | ||
init_payload: MLSInit::Genesis([0u8; 32].to_vec()), | ||
}; | ||
|
||
CouncilNodeMeta::new_with_details( | ||
|
@@ -546,7 +546,7 @@ mod tests { | |
let any_security_contact = Some(String::from("[email protected]")); | ||
let any_pub_key = TendermintValidatorPubKey::Ed25519([0u8; 32]); | ||
let any_cert = ConfidentialInit { | ||
keypackage: [0u8; 32].to_vec(), | ||
init_payload: MLSInit::Genesis([0u8; 32].to_vec()), | ||
}; | ||
|
||
CouncilNodeMeta::new_with_details( | ||
|
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
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.