--- title: Compute Options section: developers description: Specification of compute options for assets in Ocean Protocol. --- # Compute Options ### Compute Options An asset categorized as a `compute type` incorporates additional attributes under the `compute object`. These attributes are specifically relevant to assets that fall within the compute category and are not required for assets classified under the `access type`. However, if an asset is designated as `compute`, it is essential to include these attributes to provide comprehensive information about the compute service associated with the asset.
Attribute | Type | Description |
---|---|---|
allowRawAlgorithm * | boolean | If true , any passed raw text will be allowed to run. Useful for an algorithm drag & drop use case, but increases risk of data escape through malicious user input. Should be false by default in all implementations. |
allowNetworkAccess * | boolean | If true , the algorithm job will have network access. |
publisherTrustedAlgorithmPublishers * | Array of string | If not defined, then any published algorithm is allowed. If empty array, then no algorithm is allowed. If not empty any algo published by the defined publishers is allowed. |
publisherTrustedAlgorithms * | Array of publisherTrustedAlgorithms | If not defined, then any published algorithm is allowed. If empty array, then no algorithm is allowed. Otherwise only the algorithms defined in the array are allowed. (see below). |
Attribute | Type | Description |
---|---|---|
did | string | The DID of the algorithm which is trusted by the publisher. |
filesChecksum | string | Hash of algorithm's files (as string ). |
containerSectionChecksum | string | Hash of algorithm's image details (as string ). |