Skip to content

Horus-Org/payjoin-react-native

Repository files navigation

Payjoin React Native

⚠️Alpha Software

NPM version Bitcoin-only

React Native Library to Payjoin

About

Payjoin React Native is a mobile-focused implementation of the Payjoin (P2EP) protocol built with React Native. This library facilitates secure peer-to-peer Bitcoin transactions, enhancing privacy by allowing the payer and payee to contribute inputs to the same transaction.

The library is fully compatible with Bitcoin Core and other Bitcoin-compatible APIs, making it a versatile solution for integrating Payjoin into mobile applications.

Key Features

  • Payjoin Protocol Integration: Implements Payjoin (BIP-78) to enhance privacy by allowing input contributions from both parties in a transaction.
  • Bitcoin Core Support: Seamlessly integrates with Bitcoin Core nodes for transaction signing, broadcasting, and input/output management.
  • API Compatibility: Works with Bitcoin-compatible APIs for ease of setup and use without the need for running a full node.
  • React Native Framework: Built specifically for mobile platforms, leveraging React Native for cross-platform compatibility.
  • Secure and Private: Enhances privacy by obfuscating input ownership, protecting against blockchain analysis.
  • Easy Setup and Configuration: User-friendly API to connect and start performing Payjoin transactions with minimal setup.

Main Functions

  1. Transaction Creation: Easily create Bitcoin transactions with Payjoin support.
  2. Input/Output Management: Automatically handles UTXO selection for both payer and payee.
  3. Broadcasting Transactions: Broadcast completed Payjoin transactions to the Bitcoin network using Bitcoin Core or compatible APIs.
  4. Payjoin Communication: Establish communication between payer and payee using the Payjoin endpoint for seamless integration.
  5. Bitcoin Core RPC Support: Utilize Bitcoin Core’s RPC interface for advanced transaction handling, fee calculation, and more.
  6. Compatibility with Bitcoin Services: Connect with third-party Bitcoin APIs for non-full-node setups, providing flexibility for developers.

Installation

Instructions for installing the package and integrating it into your React Native project will be added here.

npm i payjoin-react-native

Roadmap

  • Example
  • Demo project
  • Lightning compatiblity
  • Android & iOS support