Trait dash_sdk::platform::transition::put_identity::PutIdentity
source · pub trait PutIdentity<S: Signer> {
// Required methods
fn put_to_platform<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
sdk: &'life1 Sdk,
asset_lock_proof: AssetLockProof,
asset_lock_proof_private_key: &'life2 PrivateKey,
signer: &'life3 S,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
fn put_to_platform_and_wait_for_response<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
sdk: &'life1 Sdk,
asset_lock_proof: AssetLockProof,
asset_lock_proof_private_key: &'life2 PrivateKey,
signer: &'life3 S,
) -> Pin<Box<dyn Future<Output = Result<Identity, Error>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait;
}
Expand description
A trait for putting an identity to platform
Required Methods§
sourcefn put_to_platform<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
sdk: &'life1 Sdk,
asset_lock_proof: AssetLockProof,
asset_lock_proof_private_key: &'life2 PrivateKey,
signer: &'life3 S,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn put_to_platform<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
sdk: &'life1 Sdk,
asset_lock_proof: AssetLockProof,
asset_lock_proof_private_key: &'life2 PrivateKey,
signer: &'life3 S,
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Puts an identity on platform
sourcefn put_to_platform_and_wait_for_response<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
sdk: &'life1 Sdk,
asset_lock_proof: AssetLockProof,
asset_lock_proof_private_key: &'life2 PrivateKey,
signer: &'life3 S,
) -> Pin<Box<dyn Future<Output = Result<Identity, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn put_to_platform_and_wait_for_response<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
sdk: &'life1 Sdk,
asset_lock_proof: AssetLockProof,
asset_lock_proof_private_key: &'life2 PrivateKey,
signer: &'life3 S,
) -> Pin<Box<dyn Future<Output = Result<Identity, Error>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Puts an identity on platform and waits for the confirmation proof