Function libindy_sys::indy_create_payment_address [−][src]
pub unsafe extern "C" fn indy_create_payment_address(
command_handle: indy_handle_t,
wallet_handle: indy_handle_t,
payment_method: *const c_char,
config: *const c_char,
cb: indy_str_cb
) -> indy_error_t
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.
#Params
command_handle: command handle to map callback to context
wallet_handle: wallet handle where to save new address
payment_method: payment method to use (for example, 'sov')
config: payment address config as json:
{
seed:
#Returns payment_address - public identifier of payment address in fully resolvable payment address format