pub trait Signable: Hashable {
// Required method
fn calculate_sign_hash(
&self,
chain_id: &str,
quorum_type: u8,
quorum_hash: &[u8; 32],
height: i64,
round: i32,
) -> Result<Vec<u8>, Error>;
// Provided method
fn sign_digest(
&self,
chain_id: &str,
quorum_type: u8,
quorum_hash: &[u8; 32],
height: i64,
round: i32,
) -> Result<Vec<u8>, Error> { ... }
}Expand description
Object that can be signed/verified by Tenderdash.
Required Methods§
Provided Methods§
fn sign_digest( &self, chain_id: &str, quorum_type: u8, quorum_hash: &[u8; 32], height: i64, round: i32, ) -> Result<Vec<u8>, Error>
👎Deprecated: replaced by calculate_sign_hash() to unify naming between core, platform and tenderdash