revokeOneAccess
This method allows revoking a specific access authorization from a protectedData
entity. The input parameter for this method is sourced from the fetchGrantedAccess method, which provides a list of all authorizations on single protectedData
entity.
Usage
The revokeOneAccess
method requires a grantedAccess
object as an input parameter. This object is retrieved from the fetchGrantedAccess
method.
Return value example
The return value of this operation confirms the granted access
object values and provides a transaction hash for reference.
Parameters
grantedAccess (required)
This is the complete granted access
object retrieved from an invocation of fetchGrantedAccess
.
Result
This method returns a JSON object containing two fields.
access
This is a nested grantedAccess
object providing details on the prior granted access. The grantedAccess
object has the following fields:
apprestrict - address of the authorized application; a value of 0x0 indicates any application may access this data
dataset - address of the protectedData
containing user data
datasetprice - price (iun nRLC) to charge the user specified in requesterrestrict
for each use of this protectedData
requesterrestrict - address of the requester authorized to use this protectedData
in workloads; a value of 0x0 indicates any requester may use this data
volume - number of authorized uses of this protectedData
; each use decrements this counter
workerpoolrestrict- address of the decentralized infrastructure (worker pool) authorized to execute the application; a value of 0x0 indicates any worker pool may access this data
salt - random value to make an order unique and reusable as nonce in a blockchain transaction
sign - order signature of all the grantedAccess
fields
tag - defines whether a protectedData
is usable in a TEE environment (Trusted Execution Environment); 0x00
is TEE while 0x03
is non-TEE
txHash
The ID of the transaction that happened on iExec's side chain. You may view details on the transaction using the iExec explorer.
Last updated