Skip to content
This repository has been archived by the owner on Aug 23, 2021. It is now read-only.

Commit

Permalink
Merge pull request #162 from oceanprotocol/feature/ctd_trusted_algo
Browse files Browse the repository at this point in the history
add updateComputePrivacy
  • Loading branch information
alexcos20 committed May 15, 2020
2 parents 90846d1 + cd9bda7 commit ba98510
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions doc/architecture/squid.md
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,43 @@ const permissions = ocean.assets.getPermissions(did, subjectAddress)

---

### updateComputePrivacy
Update compute privacy attributes

_Parameters_

```
did: DID of the asset
serviceIndex: Index of the compute service,
computePrivacy: Compute Privacy structure,
account: Account
```
_Returns_

- null if call failed

_Example_

```js


const newComputePrivacy = {
allowRawAlgorithm: false,
allowNetworkAccess: false,
trustedAlgorithms: ['did:op:123', 'did:op:1234']
}

const result = await ocean.assets.updateComputePrivacy(
id,
serviceIndex,
newComputePrivacy as ServiceComputePrivacy,
account
)

```

---


## ocean.accounts

Expand Down

0 comments on commit ba98510

Please sign in to comment.