Giter Site home page Giter Site logo

bitvm-research's Introduction

BitVM-Research

Overview

Currently, this repository has implemented the complete processes of BitVM, which can help you understand them faster.

Article link

https://bitlayerlabs.notion.site/Experiment-of-BitVM-White-Paper-ef87e719001e4e2d83765c68f1bb8443

Usage

  • node version

use nvm to switch node version

nvm install v12.22.9
nvm use v12.22.9
  • .env file

REMEMBER to modify the private key

cp .env-tpl .env

testnet faucet:

https://faucet.bitvmcn.xyz/
https://testnet.help/en/btcfaucet/testnet#log
https://coinfaucet.eu/en/
https://bitcoinfaucet.uo1.net/send.php

BitVM

If you want to run the normal process of BitVM, you can execute the following command:

yarn run start_process_trace

If you want to run the case where the Prover is penalized for equivocation in BitVM, you can execute the following command:

yarn run start_process_trace_with_equivocation

If you want to execute a single bitvalue_commitment in BitVM, you can run the following command:

yarn run start_bitvm_bitvalue_commitment

If you want to execute a single NAND_gate in bitvm, you can run the following command:

yarn run start_bitvm_NAND_gate

Transfer sats to the taproot address corresponding to the program

When you meet Waiting till UTXO is detected at addr: tb1pqnvkahjv98sl9m28mpyhejx23jequp4ehvsy844yrd6au8q88hxquk3zxl, you need to transfer some satoishs to this account.

The consumption of each transaction is 250 Sats.

The consumption of programs: start_process_trace: 2000 sats. start_process_trace_with_equivocation: 2500 sats start_bitvm_nand_gate: 500 sats start_bitvm_bitvalue_commitment: 500 sats

bitvm-research's People

Contributors

0xchampion avatar cyl19970726 avatar eunovo avatar kevinho avatar miles-six 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.