0.3.0 • Published 10 months ago

@fhenixprotocol/contracts v0.3.0

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

Fhenix Contracts NPM Package Github Actions License: MIT

Solidity contracts for working with FHE smart contract on Fhenix.

Need help getting started? Check out the fhenix documentation!

These contracts are still under heavy constructions and will be changing frequently. Consider binding your contracts to a specific version, and keep an eye on the changelog

Install

npm install @fhenixprotocol/contracts

Usage

Import FHE.sol or any of the helper contracts

import "@fhenixprotocol/contracts/FHE.sol";

Example

pragma solidity ^0.8.20;

import {FHE, euint8, inEuint8} from "@fhenixprotocol/contracts/FHE.sol";

contract Example {
    
    euint8 _output;

    function setOutput(inEuint8 calldata _encryptedNumber) public  {
        _output = FHE.asEuint8(_encryptedNumber);
    }

    function getOutputEncrypted(bytes32 publicKey) public view returns (bytes memory) {
        return _output.seal(publicKey);
    }
}

License

This project is licensed under MIT.

0.3.0

10 months ago

0.3.0-alpha.4

10 months ago

0.3.0-alpha.3

10 months ago

0.2.1-beta.1

1 year ago

0.2.0-beta.9

1 year ago

0.2.1

1 year ago

0.2.0

1 year ago

0.2.0-beta.10

1 year ago

0.3.0-alpha.2

12 months ago

0.3.0-alpha.1

12 months ago

0.2.0-beta.0

1 year ago

0.2.0-beta.6

1 year ago

0.2.0-beta.4

1 year ago

0.2.0-beta.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0-beta.3

2 years ago

0.1.0-beta.2

2 years ago

0.1.0-beta.1

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago