Data Privacy Framework

The Data Privacy Framework 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

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.sol for the full list of supported functions.

Last updated

Was this helpful?