Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/bitlayer-org/BitVM-Research
Opensource code to replicate the whole process of BitVM white paper
https://github.com/bitlayer-org/BitVM-Research
Last synced: 3 months ago
JSON representation
Opensource code to replicate the whole process of BitVM white paper
- Host: GitHub
- URL: https://github.com/bitlayer-org/BitVM-Research
- Owner: bitlayer-org
- License: mit
- Created: 2024-02-26T12:23:13.000Z (12 months ago)
- Default Branch: develop
- Last Pushed: 2024-03-03T08:24:00.000Z (12 months ago)
- Last Synced: 2024-08-01T21:40:11.897Z (7 months ago)
- Language: TypeScript
- Homepage:
- Size: 54.7 KB
- Stars: 27
- Watchers: 6
- Forks: 10
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-bitvm - BitVM Research
README
# 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 meeting `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