def jsonrpc_key_share(self, key_id, trusted_user_id, include_private=False, timeout=10): return api.key_share(key_id=key_id, trusted_user_id=trusted_user_id, include_private=include_private, timeout=timeout)
def jsonrpc_key_share(self, key_id, trusted_global_id_or_idurl, include_private=False, timeout=10): return api.key_share( key_id=key_id, trusted_global_id_or_idurl=trusted_global_id_or_idurl, include_private=include_private, timeout=timeout)
def key_share_v1(self, request): data = _request_data(request, mandatory_keys=[ 'key_id', 'trusted_user', ]) return api.key_share( key_id=data['key_id'], trusted_global_id_or_idurl=data['trusted_user'], include_private=bool( data.get('include_private', '0') in [ '1', 'true', ]), )
def jsonrpc_key_share(self, key_id, idurl): return api.key_share(key_id, idurl)
def key_share_v1(self, request): data = _request_data(request, mandatory_keys=['key_id', 'trusted_user', ]) return api.key_share(key_id=data['key_id'], trusted_global_id_or_idurl=data['trusted_user'])