Skip to content
Projetos

Sobre

Bisq 2 will be the successor to Bisq v1 and will support multiple trade protocols, multiple privacy networks and multiple identities. Read more about Bisq 2 in the Bisq wiki

Outros projetos

Como estes números são medidos

Crescimento medido de estrelas

em 24 h
+1
em 7 dias
+4
em 15 dias
+4
em 1 mês
Coletando histórico

Variações líquidas em períodos sobrepostos, não totais diários. Medições ausentes ficam em branco. Estrelas indicam interesse, não qualidade.

README.md

Original

Bisq 2: The Decentralized Trading Platform

Bisq 2 will be the successor to Bisq v1 and will support multiple trade protocols, multiple privacy networks and multiple identities. Read more about Bisq 2 in the Bisq wiki

For the initial release Bisq 2 will come with the Bisq Easy protocol only. Work on the other protocols will start after Bisq 2 has been shipped.

Bisq Easy is designed for novice Bitcoin users with a focus on ease of use and convenience. It does not require that the user already has Bitcoin and it is based on an easy-to-use chat interface. Security is based on reputation of the Bitcoin seller. It does not compete with the current Bisq v1 trade protocol but is complementary to it. It serves and targets a user group which we cannot reach with Bisq v1. You can read more about Bisq Easy in the Bisq wiki.

Getting Started

Quick Setup

  1. Clone Bisq 2:

    git clone --recurse-submodules https://github.com/bisq-network/bisq2.git
    
    cd bisq2
    
  2. Install Dependencies: Bisq requires JDK 21. See our Installation Guide for detailed instructions.

  3. Update to latest GitHub version:

    git pull --recurse-submodules
    
  4. Build desktop client distribution:

    ./gradlew :apps:desktop:desktop-app:installDist
    
  5. Run desktop client:

    ./apps/desktop/desktop-app/build/install/desktop-app/bin/desktop-app
    
  6. Run desktop client with custom data directory:

    ./apps/desktop/desktop-app/build/install/desktop-app/bin/desktop-app --data-dir=<data_dir>
    

For Windows environments: replace ./gradlew with gradlew.bat.

Tor Submodule

The directory tor/ is the Git submodule tor, the Tor build of Bisq. Bisq 2 records one commit of it, and tor/ must contain this commit.

Check out the recorded commit. A clone without --recurse-submodules, a git pull without it, and a branch switch leave tor/ empty or at another commit. Then run:

git submodule update --init

This command does not take new commits of the tor repository. It checks out the commit which Bisq 2 records, also when tor/ has a newer commit checked out.

If tor/ still contains files of a checkout from before the submodule, for example tor/build of an earlier build, the command fails with destination path 'tor' already exists and is not an empty directory. Remove the directory first (rm -rf tor) and run the command again.

To let git pull and git switch update tor/ automatically, run once: git config submodule.recurse true.

Update Bisq 2 to a newer commit of the tor repository:

  1. Fetch the new commits into tor/ and check out the new commit there:
    git -C tor fetch origin
    git -C tor checkout <commit>
    

To use the main branch:

git -C tor fetch origin
git -C tor checkout origin/main

git submodule update --remote tor does both for the newest commit of the main branch. 2. Review the changes which the update brings:

git diff --submodule=log tor
  1. Build and test, then commit the new commit of tor/ in Bisq 2:
    git add tor
    
    git commit -s -S
    

Change the Tor code. tor/ is a repository of its own. Commit the change in tor/ on a branch and push it to the tor repository. Then commit the new commit of tor/ in Bisq 2 as in step 3. Push the tor commit first, otherwise other clones of Bisq 2 cannot check it out.

Use a local Tor repository. For local development, a checkout which uses a local repository tor next to the Bisq 2 checkout can override the published URL in its local Git configuration. Use relative paths, so that the URLs work when another machine (for example a virtual machine) sees the directories under another absolute path:

git config submodule.tor.url ../tor
git -C tor remote set-url origin ../../tor

Git resolves the first URL from the Bisq 2 checkout and the second from tor/. Git refuses local submodule URLs by default, so add -c protocol.file.allow=always to submodule commands which clone, for example git -c protocol.file.allow=always submodule update --init. Do not run git submodule sync in such a checkout: it restores the published URL from .gitmodules in both places, replacing the local overrides.

Community and Contributions

Bisq is an open source project and a Decentralized Autonomous Organization (DAO).

Before starting development work, read the contribution and compensation guidelines and discuss priorities and review capacity with the maintainers on Matrix. Every contributed commit requires a DCO sign-off and a GPG signature.

Report suspected security issues privately using Report a vulnerability on the Bisq 2 Security Advisories page. Keep security reports and proposed fixes out of public channels.

If you are a developer check out the dev guide.

Why work on Bisq 2?

  • Technological Edge: P2P network, Bitcoin, Cryptography,...
  • Complex, Rewarding Challenges: Dive into a sophisticated architecture that rewards ingenuity.

License

Bisq 2 is licensed under the AGPL-3.0 license. All contributions are subject to this license.

Actions Status

Explore projetos relacionados

Carregando…