Type Alias indyCreatePaymentAddressCB

Source
pub type indyCreatePaymentAddressCB = Option<unsafe extern "C" fn(command_handle: indy_handle_t, wallet_handle: indy_handle_t, config: *const c_char, cb: indy_err_str_cb) -> indy_error_t>;
Expand description

Create the payment address for this 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 keys for signature are stored config: payment address config as json: { seed: , // allows deterministic creation of payment address }

#Returns payment_address - public identifier of payment address in fully resolvable payment address format

Aliased Type§

pub enum indyCreatePaymentAddressCB {
    None,
    Some(unsafe extern "C" fn(i32, i32, *const i8, Option<unsafe extern "C" fn(i32, i32, *const i8) -> i32>) -> i32),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(unsafe extern "C" fn(i32, i32, *const i8, Option<unsafe extern "C" fn(i32, i32, *const i8) -> i32>) -> i32)

Some value of type T.