Coder Social home page Coder Social logo

fhenix-contracts's Introduction

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.

fhenix-contracts's People

Contributors

cashmaney avatar eshelb avatar web-flow avatar liorbond avatar tovi-fhe avatar scrt-tovi avatar

Stargazers

Durodola Azeez avatar Sen Yang avatar Cyril avatar Jordi Pinyana  avatar 雨未 avatar  avatar  avatar Carter Carlson avatar Diego avatar Orpheus Lummis avatar  avatar  avatar  avatar  avatar ruibabasss avatar zwjun668 avatar Prasad Reddy avatar  avatar Emmanuel avatar OdharmieKLV avatar  avatar  avatar  avatar Andrey Dodonov avatar Ha Link avatar Jander avatar Javed Khan avatar

Watchers

Tom Langer avatar  avatar  avatar

fhenix-contracts's Issues

resestEaddress() function

What happened to the resestEaddress() function to reencrypt an eaddress?
can't find it in the fhenix-contracts repo

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.