pub trait SignedStepMessage: StepMessage {
const SIGN_SEED: &'static [u8];
// Required methods
fn signable(&self) -> Vec<u8> ⓘ;
fn sign_info(&self) -> SignInfo;
fn sign_info_mut(&mut self) -> &mut SignInfo;
// Provided methods
fn verify_signature(&self) -> Result<(), BlsSigError> { ... }
fn sign(&mut self, sk: &BlsSecretKey, pk: &BlsPublicKey) { ... }
}Required Associated Constants§
Required Methods§
fn signable(&self) -> Vec<u8> ⓘ
fn sign_info(&self) -> SignInfo
fn sign_info_mut(&mut self) -> &mut SignInfo
Provided Methods§
fn verify_signature(&self) -> Result<(), BlsSigError>
fn sign(&mut self, sk: &BlsSecretKey, pk: &BlsPublicKey)
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.