githubEdit

Data Privacy Framework

The Data Privacy Frameworkarrow-up-right is an abstract Solidity contract designed to manage conditions and operations related to data privacy. The contract handles operations such as user permissions, time-bound constraints, and condition validation based on various keys and parameters.

Core

Usage

// SPDX-License-Identifier: MIT

pragma solidity 0.8.19;

import "@coti-io/coti-contracts/contracts/access/DataPrivacyFramework/DataPrivacyFramework.sol";

contract MyContract is DataPrivacyFramework {
    constructor() DataPrivacyFramework(false, false) {}
}

Types

struct InputData {
        address caller;
        string operation;
        bool active;
        uint256 timestampBefore;
        uint256 timestampAfter;
        bool falseKey;
        bool trueKey;
        uint256 uintParameter;
        address addressParameter;
        string stringParameter;
}

Modifiers

Functions

Extensions

DataPrivacyFrameworkMpc

Usage

Functions

circle-info

Since each numeric private data type supports the same functions, we have chosen to list only the functions pertaining to the gtUint64 type. See DataPrivacyFrameworkMpc.solarrow-up-right for the full list of supported functions.

Last updated

Was this helpful?