async def replace_keys_apply(wallet_handle: int,
                             did: str) -> None:
    """
    Apply temporary keys as main for an existing DID (owned by the caller of the library).

    :param wallet_handle: wallet handler (created by open_wallet).
    :param did: The DID to resolve key.
    :return: Error code
    """

    logger = logging.getLogger(__name__)
    logger.debug("replace_keys_apply: >>> wallet_handle: %r, did: %r",
                 wallet_handle,
                 did)

    if not hasattr(replace_keys_apply, "cb"):
        logger.debug("replace_keys_apply: Creating callback")
        replace_keys_apply.cb = create_cb(CFUNCTYPE(None, c_int32, c_int32))

    c_wallet_handle = c_int32(wallet_handle)
    c_did = c_char_p(did.encode('utf-8'))

    await do_call('indy_replace_keys_apply',
                  c_wallet_handle,
                  c_did,
                  replace_keys_apply.cb)

    logger.debug("replace_keys_apply: <<<")
async def replace_keys_apply ( wallet_handle : int , did : str ) -> None : logger = logging . getLogger ( __name__ ) logger . debug ( "replace_keys_apply: >>> wallet_handle: %r, did: %r" , wallet_handle , did ) if not hasattr ( replace_keys_apply , "cb" ) : logger . debug ( "replace_keys_apply: Creating callback" ) replace_keys_apply . cb = create_cb ( CFUNCTYPE ( None , c_int32 , c_int32 ) ) c_wallet_handle = c_int32 ( wallet_handle ) c_did = c_char_p ( did . encode ( 'utf-8' ) ) await do_call ( 'indy_replace_keys_apply' , c_wallet_handle , c_did , replace_keys_apply . cb ) logger . debug ( "replace_keys_apply: <<<" )
Apply temporary keys as main for an existing DID (owned by the caller of the library).

    :param wallet_handle: wallet handler (created by open_wallet).
    :param did: The DID to resolve key.
    :return: Error code