* [domain] add reverse boarding inputs in Payment struct * [tx-builder] support reverse boarding script * [wallet] add GetTransaction * [api-spec][application] add reverse boarding support in covenantless * [config] add reverse boarding config * [api-spec] add ReverseBoardingAddress RPC * [domain][application] support empty forfeits txs in EndFinalization events * [tx-builder] optional connector output in round tx * [btc-embedded] fix getTx and taproot finalizer * whitelist ReverseBoardingAddress RPC * [test] add reverse boarding integration test * [client] support reverse boarding * [sdk] support reverse boarding * [e2e] add sleep time after faucet * [test] run using bitcoin-core RPC * [tx-builder] fix GetSweepInput * [application][tx-builder] support reverse onboarding in covenant * [cli] support reverse onboarding in covenant CLI * [test] rework integration tests * [sdk] remove onchain wallet, replace by onboarding address * remove old onboarding protocols * [sdk] Fix RegisterPayment * [e2e] add more funds to covenant ASP * [e2e] add sleeping time * several fixes * descriptor boarding * remove boarding delay from info * [sdk] implement descriptor boarding * go mod tidy * fixes and revert error msgs * move descriptor pkg to common * add replace in go.mod * [sdk] fix unit tests * rename DescriptorInput --> BoardingInput * genrest in SDK * remove boarding input from domain * remove all "reverse boarding" * rename "onboarding" ==> "boarding" * remove outdate payment unit test * use tmpfs docker volument for compose testing files * several fixes
Ark
Welcome to the Ark monorepo, a comprehensive solution for off-chain Bitcoin and Liquid transactions.
⚠️ IMPORTANT DISCLAIMER: ALPHA SOFTWARE Ark is currently in alpha stage. This software is experimental and under active development. DO NOT ATTEMPT TO USE IN PRODUCTION. Use at your own risk.
Supported Networks and Wallets
| Covenant-less | Covenant | |
|---|---|---|
| Network | Bitcoin signet, Bitcoin regtest | Liquid, Liquid testnet, Liquid regtest |
| Wallet | Embedded lnwallet | Ocean wallet |
Usage Documentation
For a comprehensive guide on how to set up and use Ark, please visit our Developer Portal. For a quick-start with Docker, head over to our Quick Start guide where you can setup an Ark Server and Clients in a local Bitcoin regtest network.
Repository Structure
api-spec: Ark Protocol Buffer API specificationclient:arkSingle-key wallet CLI for interacting with the ASPcommon: Shared code between the server and clientpkg/client-sdk: Go SDK for interacting with ASPs running the Ark protocol. It offers WASM bindings to interact with the SDK from the browser and other environments.server:arkdArk Service Provider (ASP) - the always-on daemon
Development
For detailed development instructions, including running tests, and contributing to the implementations, please refer to the README files in the server and client directories.
Compile binary from source
To compile Ark binaries from source, you can use the following Make commands from the root of the monorepo:
make build-server: Builds thearkdbinary (Ark Service Provider)make build-client: Builds thearkbinary (Single-key wallet CLI)make build-wasm: Builds the WebAssembly bindingsmake build: Builds all components for the current architecture (server, client, and WebAssembly SDK)make build-all: Cross-compile all components for all supported architectures
For example, to build both the server and client binaries, run:
make build
This will compile the arkd and ark binaries for your current architecture. For more detailed build instructions and options, please refer to the README files in the server and client directories.
Contributing Guidelines
- No force pushing in PRs: Always use
git push --force-with-leaseto avoid overwriting others' work. - Sign your commits: Use GPG to sign your commits for verification.
- Squash and merge: When merging PRs, use the "Squash and merge" option to maintain a clean commit history.
- Testing: Add tests for each new major feature or bug fix.
- Keep master green: The master branch should always be in a passing state. All tests must pass before merging.
Local Development Setup
-
Install Go (version 1.18 or later)
-
Install Nigiri for local Bitcoin and Liquid networks
-
Clone this repository:
git clone https://github.com/ark-network/ark.git cd ark -
Install dependencies:
go work sync -
Build the project:
cd server make build cd ../client make build
Note: You need to run make build in both the server and client directories separately.
Support
If you encounter any issues or have questions, please file an issue on our GitHub Issues page.
Security
We take the security of Ark seriously. If you discover a security vulnerability, we appreciate your responsible disclosure.
Currently, we do not have an official bug bounty program. However, we value the efforts of security researchers and will consider offering appropriate compensation for significant, responsibly disclosed vulnerabilities.
License
This project is licensed under the MIT License - see the LICENSE file for details.