[−][src]Function indyrs::payments::create_payment_address
pub fn create_payment_address(
wallet_handle: WalletHandle,
payment_method: &str,
config: &str
) -> Box<dyn Future<Item = String, Error = IndyError>>
Create the payment address for specified payment method
This method generates private part of payment address and stores it in a secure place. Ideally it should be secret in libindy wallet (see crypto module).
Note that payment method should be able to resolve this secret by fully resolvable payment address format.
Arguments
wallet_handle
- wallet handle where to save new addresspayment_method
- payment method to use (for example, 'sov')config
- payment address config as json
Example
config
{
seed:
Returns
payment_address
- public identifier of payment address in fully resolvable payment address format