Getting Started
Take this example contract that holds an encrypted credit score of a user, to determine whether they’re eligible for a loan:Supported operations
| Name | Op | Type | Returns |
|---|---|---|---|
| Equal | AttestedComputeSupportedOps.Eq | Scalar Binary* | bool |
| Not equal | AttestedComputeSupportedOps.Ne | Scalar Binary* | bool |
| Greater than or equal | AttestedComputeSupportedOps.Ge | Scalar Binary* | bool |
| Greater than | AttestedComputeSupportedOps.Gt | Scalar Binary* | bool |
| Less than or equal | AttestedComputeSupportedOps.Le | Scalar Binary* | bool |
| Less than | AttestedComputeSupportedOps.Lt | Scalar Binary* | bool |
- Scalar binary operation - operation that takes in two operands, one of which is a handle and the second one is a number (aka scalar).