pub trait BreezSigner: Send + Sync {
Show 19 methods
// Required methods
fn identity_public_key(&self) -> Result<PublicKey, SdkError>;
fn sign_ecdsa<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
path: &'life2 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<Signature, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn sign_ecdsa_recoverable<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
path: &'life2 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn ecies_encrypt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
path: &'life2 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn ecies_decrypt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
message: &'life1 [u8],
path: &'life2 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn sign_hash_schnorr<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
hash: &'life1 [u8],
path: &'life2 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<Signature, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn derive_public_key<'life0, 'life1, 'async_trait>(
&'life0 self,
path: &'life1 DerivationPath,
) -> Pin<Box<dyn Future<Output = Result<PublicKey, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn generate_frost_signing_commitments<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<FrostSigningCommitmentsWithNonces, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_public_key_for_node<'life0, 'life1, 'async_trait>(
&'life0 self,
id: &'life1 TreeNodeId,
) -> Pin<Box<dyn Future<Output = Result<PublicKey, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn generate_random_key<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<PrivateKeySource, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_static_deposit_private_key_source<'life0, 'async_trait>(
&'life0 self,
index: u32,
) -> Pin<Box<dyn Future<Output = Result<PrivateKeySource, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_static_deposit_private_key<'life0, 'async_trait>(
&'life0 self,
index: u32,
) -> Pin<Box<dyn Future<Output = Result<SecretKey, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn get_static_deposit_public_key<'life0, 'async_trait>(
&'life0 self,
index: u32,
) -> Pin<Box<dyn Future<Output = Result<PublicKey, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn subtract_private_keys<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
signing_key: &'life1 PrivateKeySource,
new_signing_key: &'life2 PrivateKeySource,
) -> Pin<Box<dyn Future<Output = Result<PrivateKeySource, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn split_secret_with_proofs<'life0, 'life1, 'async_trait>(
&'life0 self,
secret: &'life1 SecretToSplit,
threshold: u32,
num_shares: usize,
) -> Pin<Box<dyn Future<Output = Result<Vec<VerifiableSecretShare>, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn encrypt_private_key_for_receiver<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
private_key: &'life1 EncryptedPrivateKey,
receiver_public_key: &'life2 PublicKey,
) -> Pin<Box<dyn Future<Output = Result<Vec<u8>, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait;
fn get_public_key_from_private_key_source<'life0, 'life1, 'async_trait>(
&'life0 self,
private_key: &'life1 PrivateKeySource,
) -> Pin<Box<dyn Future<Output = Result<PublicKey, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait;
fn sign_frost<'a, 'life0, 'async_trait>(
&'life0 self,
request: SignFrostRequest<'a>,
) -> Pin<Box<dyn Future<Output = Result<SignatureShare, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
fn aggregate_frost<'a, 'life0, 'async_trait>(
&'life0 self,
request: AggregateFrostRequest<'a>,
) -> Pin<Box<dyn Future<Output = Result<Signature, SdkError>> + Send + 'async_trait>>
where Self: 'async_trait,
'a: 'async_trait,
'life0: 'async_trait;
}Required Methods§
Sourcefn identity_public_key(&self) -> Result<PublicKey, SdkError>
fn identity_public_key(&self) -> Result<PublicKey, SdkError>
Returns the identity public key.