Private Contract

Contract Interface

//Function: On the premise of providing correct signature parameters, 
//users can directly store data in their own private contract space; 
//they can participate in token casting;
//where deadline v r s is the parameter related to verifying the signature; 
//data is the content to be stored by the user; cryptoLabel and labelHash are
//The user specifies the label name for the storage content;   
    function saveWithMintingDirectly(
        string memory data,
        string memory cryptoLabel,
        address labelHash,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

//Function: On the premise of providing correct signature parameters, 
//users can directly store data in their own private contract space; 
//do not participate in token casting;
//where deadline v r s is the parameter related to verifying the signature; 
//data is the content to be stored by the user; cryptoLabel and labelHash are
//The user specifies the label name for the storage content;
    function saveWithoutMintingDirectly(
        string memory data,
        string memory cryptoLabel,
        address labelHash,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external;

//Function: According to the user's storage order (specified by the index parameter),
// complete the query and acquisition of the stored content;
//Where deadline v r s is a parameter related to verifying the signature;
    function getPrivateDataByIndexDirectly(
        uint64 index,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external view returns (string memory);

//Function: According to the user's label hash value (specified by the name parameter),
// complete the query and acquisition of the stored content;
//Where deadline v r s is a parameter related to verifying the signature;
    function getPrivateDataByNameDirectly(
        address name,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external view returns (string memory);

//Function: Obtain the user's label content according to the index; directly obtain 
//the encrypted label content, which needs to be further decrypted by the front end;
//Where deadline v r s is a parameter related to verifying the signature;
    function labelNameDirectly(
        uint64 index,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external view returns (string memory);

//Function: Determine whether a label has been used in the current private storage 
//contract according to the labelHash parameter; if it has been used, return TRUE;
//Where deadline v r s is a parameter related to verifying the signature;
    function labelIsExistDirectly(
        address labelHash,
        uint256 deadline,
        uint8 v,
        bytes32 r,
        bytes32 s
    ) external view returns (bool);ol

Contract Address

The private contract is automatically triggered by the user through the entry contract; no one knows the private contract address except the owner;

Last updated