GithubHelp home page GithubHelp logo

ftupas / catnet Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitcoin-wildlife-sanctuary/catnet

0.0 0.0 0.0 104 KB

Catnet custom Bitcoin signet with OP_CAT enabled, used to test implementation of Bitcoin Circle STARK Verifier ๐Ÿบ-๐Ÿ˜บ

Home Page: https://catnet-mempool.btcwild.life/

License: MIT License

catnet's Introduction

Catnet ๐Ÿบ-๐Ÿ˜บ

Catnet is a custom Bitcoin signet with OP_CAT enabled, used to test implementation of Bitcoin Circle STARK Verifier.

Catnet signet magic is: af34136e.

Resources

Joining the Catnet Custom Signet

Catnet is a custom Signet network that provides an environment for testing Bitcoin applications with the OP_CAT functionality enabled. This guide will walk you through setting up a local node to connect to the Catnet.

Notably, we will use Catnet to test the implementation of a Bitcoin Circle STARK Verifier.

Catnet is built based on Bitcoin Inquisition fork, v27.0. Bitcoin Inquisistion includes activation of BIP 118 (ANYPREVOUT), BIP 119 (CHECKTEMPLATEVERIFY), and BIN-24-1 (BIP 347, OP_CAT). It also includes a new 'evalscript' subcommand for bitcoin-util that can be used to test script opcode behaviour.

Prerequisites

  • Basic command-line interface skills
  • Administrative permissions on your machine
  • An internet connection

Step 1: Download and Install Bitcoin Core

You have two options to download and install Bitcoin Core:

  • Download the pre-built binaries: You can download the pre-built binaries from the Bitcoin Inquisition release and use them directly.
  • Build from source: You can build Bitcoin Inquisition from source code (this release).

First, you need to download the appropriate Bitcoin Core binaries for your system. Below are links for commonly used systems:

You can find links for other systems here.

After downloading the tar.gz file for your system, extract it using the following command:

tar -xzf bitcoin-27.0-inq-<platform>.tar.gz

Navigate to the extracted directory:

cd bitcoin-27.0-inq/bin

Step 2: Configuration

Before starting your node, you need to create a configuration file to properly join the Catnet Signet.

  1. Create a new directory for your Bitcoin data:

    mkdir -p ~/.bitcoin/catnet
  2. Create the bitcoin.conf file:

    nano ~/.bitcoin/catnet/bitcoin.conf
  3. Add the following configuration to the file:

    # General settings
    signet=1
    txindex=1
    server=1
    daemon=1
    deprecatedrpc=create_bdb
    
    # Signet settings
    [signet]
    # Custom signet challenge
    signetchallenge=5121027be9dab7dfc2d1b9aac03f883b9a229fc9c298770dec626b2acbf39e9b6e0e0c51ae
    # Add the seed node
    addnode=catnet.btcwild.life
    
    # RPC settings
    rpcbind=127.0.0.1
    rpcallowip=127.0.0.0/8
    rpcport=38332
    rpcuser=XXX
    rpcpassword=XXX

    Save and close the file. Replace rpcuser and rpcpassword with your desired credentials.

Step 3: Start Your Node

Using bitcoind: Run the following command in the terminal from the bin directory of your Bitcoin Core installation:

./bitcoind -datadir=~/.bitcoin/catnet

This command will start your Bitcoin node and connect it to the Catnet Signet.

OR

Using bitcoin-qt: Run the following command in the terminal from the bin directory of your Bitcoin Core installation:

./bitcoin-qt -datadir=~/.bitcoin/catnet

Screenshot example:

bitcoin-qt

Step 4: Verifying the Connection

After your node starts, you can verify it's properly connecting to the network by checking the peer information:

./bitcoin-cli -rpcport=38332 -rpcuser=XXX -rpcpassword=XXX getpeerinfo

You should see the Catnet node 35.192.139.170 listed among the peers.

Step 5: Create a Wallet

You can create a new wallet to interact with the Catnet Signet using the following command:

./bitcoin-cli -rpcport=38332 -rpcuser=XXX -rpcpassword=XXX -named createwallet wallet_name="test" descriptors=false

Step 6: Generate a New Address

You can generate a new address to receive funds on the Catnet Signet:

./bitcoin-cli -rpcport=38332 -rpcuser=XXX -rpcpassword=XXX getnewaddress

Step 7: Claim some coins from the faucet

You can claim some coins from the faucet by visiting the Catnet faucet and submitting your address and the captcha.

Screenshot example:

faucet

Conclusion

You are now connected to the Catnet custom Signet! This environment allows you to test applications with Bitcoinโ€™s OP_CAT enabled without risking real assets or impacting the main Bitcoin network.

Please ensure that your firewall settings allow connections on port 38333 to enable peer-to-peer network interactions.

catnet's People

Contributors

abdelstark 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.