Giter Club home page Giter Club logo

thesis's Introduction

First add Zama Devnet in to your meta mask wallet

Network Name Zama Network New RPC URL https://devnet.zama.ai Chain ID 8009 Currency symbol ZAMA Block URL https://main.explorer.zama.ai

You can get 10 Zama token on https://faucet.zama.ai/

upload all files and folders in remix IDE set solidity compiler to 0.8.19 set DEPLOY & RUN TRANSACTIONS environment to METAMASK

make a new example file, which you want to execute suppose in my case, below is the solidity file i want to execute


// SPDX-License-Identifier: BSD-3-Clause-Clear

pragma solidity 0.8.19;

import "fhevm/lib/TFHE.sol";

contract Counter { euint32 public counter; // bytes memory dummyEncryptedValue = abi.encodePacked(uint32(42)); // Encrypt the value 42 function add() public { counter = TFHE.asEuint32((uint32(42))); counter = counter + TFHE.asEuint32((uint32(42))); }

function getTotalSupply() public view returns (uint32) { return TFHE.decrypt(counter); } }


( in this example , i am encrypting 42, and then adding in to counter with tfhe ) then compile and deploy and you are ready to go !!

thesis's People

Contributors

immortal-tofu avatar leventdem avatar dartdart26 avatar tremblaythibaultl avatar david-zk avatar mitraj405 avatar youben11 avatar aquint-zama avatar zaccherinij avatar randhindi avatar 0xf333 avatar carrotcypher avatar

Watchers

 avatar

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.