• Stars
    star
    3,803
  • Rank 11,573 (Top 0.3 %)
  • Language
    TypeScript
  • License
    MIT License
  • Created over 10 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Bitpay Wallet (formerly Copay) is a secure Bitcoin and other crypto currencies wallet platform for both desktop and mobile devices.

Bitpay Wallet

CircleCI Codecov Crowdin

PLEASE NOTE WE HAVE DETECTED SOME FAKE COPAY WALLETS ON THE GOOGLE PLAY STORE FOR ANDROID, PLEASE BE SURE TO INSTALL "BITPAY WALLET" ONLY FROM THE APP STORES. APP's DEVELOPER SHOULD BE "BITPAY INC" ONLY

Bitpay Wallet (formerly Copay) is a secure Bitcoin, Bitcoin Cash, Ethereum and ERC20 wallet platform for both desktop and mobile devices. Bitpay Wallet uses Bitcore Wallet Service (BWS) for peer synchronization and network interfacing.

Binary versions of Bitpay Wallet are available for download at: https://bitpay.com/wallet/

This project was created by BitPay Inc, and it is maintained by BitPay and hundreds of contributors.

Main Features

  • Bitcoin, Ethereum, Bitcoin Cash and XRP support
  • Multiple wallet creation (BTC, BCH and ETH) and management in-app
  • Intuitive, multisignature security for personal or shared wallets
  • Easy spending proposal flow for shared wallets and group payments
  • BIP32 Hierarchical deterministic (HD) address generation and wallet backups
  • Device-based security: all private keys are stored locally, not in the cloud
  • Support testnet wallets for all supported coins.
  • Synchronous access across all major mobile and desktop platforms
  • Payment protocol (BIP70-BIP73) support: easily-identifiable payment requests and verifiable, secure bitcoin payments
  • Support for over 150 currency pricing options and unit denomination in BTC
  • Mnemonic (BIP39) support for wallet backups
  • Paper wallet sweep support (BIP38)
  • Email for payments, transfers, confirmations, etc.
  • Push notifications (only available for ios and android versions)
  • Customizable wallet naming and background colors
  • Multiple languages supported

See more details and download links at https://bitpay.com/wallet

Coin specific features

Bitcoin

  • Segwit and native segwit addresses (BECH32) for sending and receiving
  • CPFP (Child pays for parent) transaction acceleration (available after 4 hours of unconfirmed TXs).
  • Transaction fee adjustment using 4 preset levels (using bitcoin-core estimations) OR custom fee-rate setting.

Bitcoin Cash

  • Schnorr signature support

Ethereum

  • Wallet connect
  • Multisig wallet (using gnosis multisig contract)
    • mainnet contract address: 0x6e95C8E8557AbC08b46F3c347bA06F8dC012763f
    • kovan testnet contract address: 0x2C992817e0152A65937527B774c7A99a84603045
  • Gas price adjustment using 4 preset levels (using custom estimation algoritm) OR custom gas price setting.

Testing in a Browser

Note: This method should only be used for development purposes. When running Bitpay Wallet in a normal browser environment, browser extensions and other malicious code might have access to internal data and private keys. For production use, see the latest official releases.

Clone the repo and open the directory:

git clone https://github.com/bitpay/wallet.git
cd wallet

Ensure you have Node installed, then install and start Wallet:

npm install
npm run apply:bitpay
npm run start

Visit localhost:8100 to view the app.

Unit & E2E Tests (Karma & Protractor)

To run the tests, run:

 npm run test

Testing on Real Devices

It's recommended that all final testing be done on a real device – both to assess performance and to enable features that are unavailable to the emulator (e.g. a device camera).

Android

Follow the Cordova Android Platform Guide to set up your development environment.

When your development environment is ready, run the start:android package script.

npm run apply:bitpay
npm run prepare:bitpay
npm run start:android

iOS

Follow the Cordova iOS Platform Guide to set up your development environment.

When your development environment is ready, run the start:ios package script.

npm run apply:bitpay
npm run prepare:bitpay
npm run start:ios

Desktop (Linux, macOS, and Windows)

The desktop version of Bitpay Wallet currently uses Electron. To get started, first install Electron on your system from the Electron website.

When Electron is installed, run the start:desktop package script.

npm run apply:wallet
npm run start:desktop

Build Bitpay Wallet App Bundles

Before building the release version for a platform, run the clean-all command to delete any untracked files in your current working directory. (Be sure to stash any uncommitted changes you've made.) This guarantees consistency across builds for the current state of this repository.

The final commands build the production version of the app, and bundle it with the release version of the platform being built.

Android

npm run clean-all
npm install
npm run apply:bitpay
npm run prepare:bitpay
npm run final:android

iOS

npm run clean-all
npm install
npm run apply:bitpay
npm run prepare:bitpay
npm run final:ios

Desktop (Linux, macOS, and Windows)

npm run clean-all
npm install
npm run apply:bitpay
npm run final:desktop

Desktop Data Path

Per-user application data directory for BitPay distribution.

"~/Library/Containers/com.bitpay.wallet.desktop/Data/.bitpay"

Configuration

Enable External Services

To enable external services, set the BITPAY_EXTERNAL_SERVICES_CONFIG_LOCATION environment variable to the location of your configuration before running the apply task.

BITPAY_EXTERNAL_SERVICES_CONFIG_LOCATION="~/.bitpay/externalServices.json" npm run apply:bitpay

About Bitpay Wallet

General

Bitpay Wallet (formerly Copay) implements a multisig wallet using p2sh addresses. It supports multiple wallets, each with its own configuration, such as 3-of-5 (3 required signatures from 5 participant peers) or 2-of-3. To create a multisig wallet shared between multiple participants, Bitpay Wallet requires the extended public keys of all the wallet participants. Those public keys are then incorporated into the wallet configuration and combined to generate a payment address where funds can be sent into the wallet. Conversely, each participant manages their own private key and that private key is never transmitted anywhere.

To unlock a payment and spend the wallet's funds, a quorum of participant signatures must be collected and assembled in the transaction. The funds cannot be spent without at least the minimum number of signatures required by the wallet configuration (2-of-3, 3-of-5, 6-of-6, etc.). Once a transaction proposal is created, the proposal is distributed among the wallet participants for each to sign the transaction locally. Finally, when the transaction is signed, the last signing participant will broadcast the transaction to the Bitcoin network.

Bitpay Wallet also implements BIP32 to generate new addresses for peers. The public key that each participant contributes to the wallet is a BIP32 extended public key. As additional public keys are needed for wallet operations (to produce new addresses to receive payments into the wallet, for example) new public keys can be derived from the participants' original extended public keys. Once again, it's important to stress that each participant keeps their own private keys locally - private keys are not shared - and are used to sign transaction proposals to make payments from the shared wallet.

For more information regarding how addresses are generated using this procedure, see: Structure for Deterministic P2SH Multisignature Wallets.

Bitpay Wallet Backups and Recovery

Since v1.2 Bitpay Wallet uses BIP39 mnemonics for backing up wallets. The BIP44 standard is used for wallet address derivation. Multisig wallets use P2SH addresses, while non-multisig wallets use P2PKH.

Information about backup and recovery procedures is available at: https://github.com/bitpay/wallet/blob/master/backupRecovery.md

Previous versions of Bitpay Wallet used files as backups. See the following section.

It is possible to recover funds from a Bitpay Wallet Wallet without using Bitpay Wallet or the Wallet Service, check the Copay Recovery Tool.

Wallet Export Format

Bitpay Wallet encrypts the backup with the Stanford JS Crypto Library. To extract the private key of your wallet you can go to settings, choose your wallet, click in "more options", then "wallet information", scroll to the bottom and click in "Extended Private Key". That information is enough to sign any transaction from your wallet, so be careful when handling it!

The backup also contains the key publicKeyRing that holds the extended public keys of the Copayers. Depending on the key derivationStrategy, addresses are derived using BIP44 or BIP45. Wallets created in Copay v1.2 and forward always use BIP44, all previous wallets use BIP45. Also note that since Copay version v1.2, non-multisig wallets use address types Pay-to-PublicKeyHash (P2PKH) while multisig wallets still use Pay-to-ScriptHash (P2SH) (key addressType at the backup):

Copay Version Wallet Type Derivation Strategy Address Type
<1.2 All BIP45 P2SH
≥1.2 Non-multisig BIP44 P2PKH
≥1.2 Multisig BIP44 P2SH
≥1.5 Multisig Hardware wallets BIP44 (root m/48’) P2SH

Using a tool like Bitcore PlayGround all wallet addresses can be generated. (TIP: Use the Address section for P2PKH address type wallets and Multisig Address for P2SH address type wallets). For multisig addresses, the required number of signatures (key m on the export) is also needed to recreate the addresses.

BIP45 note: All addresses generated at BWS with BIP45 use the 'shared cosigner index' (2147483647) so Copay address indexes look like: m/45'/2147483647/0/x for main addresses and m/45'/2147483647/1/y for change addresses.

Since version 1.5, Copay uses the root m/48' for hardware multisignature wallets. This was coordinated with Ledger and Trezor teams. While the derivation path format is still similar to BIP44, the root was in order to indicate that these wallets are not discoverable by scanning addresses for funds. Address generation for multisignature wallets requires the other copayers extended public keys.

Bitcore Wallet Service

Bitpay Wallet depends on Bitcore Wallet Service (BWS) for blockchain information, networking and Copayer synchronization. A BWS instance can be setup and operational within minutes or you can use a public instance like https://bws.bitpay.com. Switching between BWS instances is very simple and can be done with a click from within Bitpay Wallet. BWS also allows Bitpay Wallet to interoperate with other wallets like Bitcore Wallet CLI.

Please note that Bitpay Wallet v5.3.0 and above use CSP to restrict network access. To use a custom BWS see CSP announcement.

Translations

Bitpay Wallet uses standard gettext PO files for translations and Crowdin as the front-end tool for translators. To join our team of translators, please create an account at Crowdin and translate the Bitpay Wallet documentation and application text into your native language.

To download and build using the latest translations from Crowdin, please use the following commands:

cd i18n
node crowdin_download.js

This will download all partial and complete language translations while also cleaning out any untranslated ones.

Translation Credits:

  • Japanese: @dabura667
  • French: @kirvx
  • Portuguese: @pmichelazzo
  • Spanish: @cmgustavo
  • German: @saschad
  • Russian: @vadim0

Gracias totales!

Release Schedules

Bitpay Wallet uses the MAJOR.MINOR.BATCH convention for versioning. Any release that adds features should modify the MINOR or MAJOR number.

Bug Fixing Releases

We release bug fixes as soon as possible for all platforms. Usually around a week after patches, a new release is made with language translation updates (like 1.1.4 and then 1.1.5). There is no coordination so all platforms are updated at the same time.

Minor and Major Releases

  • t+0: tag the release 1.2 and "text lock" (meaning only non-text related bug fixes. Though this rule is sometimes broken, it's good to make a rule.)
  • t+7: testing for 1.2 is finished, translation is also finished, and 1.2.1 is tagged with all translations along with bug fixes made in the last week.
  • t+7: iOS is submitted for 1.2.1. All other platforms are submitted with auto-release off.
  • t + (~17): All platforms 1.2.1 are released when Apple approves the iOS application update.

Anyone and everyone is welcome to contribute. Please take a moment to review the guidelines for contributing.

Current Active Developers GPG keys ID

  • 15EDAD8D9F2EB1AF @cmgustavo

  • FC283098DA862864 @gabrielbazan7

  • DD6D7EAADE12280D @Gamboster

  • D87947CC8A32D91C @msalcala11

  • 612C9C4DDAC47B61 @rastajpa

  • F8FC1D9B1B46486D @matiu

Support

Please see Support requests

License

Bitpay Wallet is released under the MIT License. Please refer to the LICENSE file that accompanies this project for more information including complete terms and conditions.

More Repositories

1

bitcore

A full stack for bitcoin and blockchain-based applications
JavaScript
4,835
star
2

insight

A bitcoin blockchain explorer and API
TypeScript
1,191
star
3

bitcore-wallet-service

A multisig, HD Bitcoin and Bitcoin Cash wallet service. Used by Copay.
JavaScript
619
star
4

bitcore-lib

A pure and powerful JavaScript Bitcoin library
JavaScript
608
star
5

insight-api

The bitcoin blockchain API powering Insight
JavaScript
591
star
6

cordova-plugin-qrscanner

A fast, energy efficient, highly-configurable QR code scanner for Cordova apps and the browser.
JavaScript
569
star
7

bitauth

Authenticate with web services utilizing the same strategy as Bitcoin.
JavaScript
496
star
8

bitcore-node

Extensible full node using Bitcore
JavaScript
351
star
9

bitcoind-rpc

A client library to connect to Bitcoin Core RPC in JavaScript.
JavaScript
166
star
10

php-bitpay-client

PHP implementation for the BitPay cryptographically secure RESTful API
PHP
163
star
11

copay

Copay wallet is now Bitpay Wallet.
159
star
12

bitcore-mnemonic

BIP39 Mnemonics implemented for Bitcore
JavaScript
153
star
13

bitcore-wallet-client

A client library for bitcore-wallet-service
JavaScript
151
star
14

foxtrot

Simple and secure routing based on Bitcoin cryptography.
JavaScript
115
star
15

node-bitpay-client

A Node.js module and command line client for interacting with BitPay's Cryptographically Secure API
JavaScript
101
star
16

bitcore-wallet

A command line interface Multisig HD Wallet, based on `bitcore-wallet-service`.
JavaScript
96
star
17

bitcore-message

Bitcoin Message Verification and Signing for Bitcore
JavaScript
86
star
18

bitcore-p2p

Interface to the bitcoin P2P network for bitcore
JavaScript
79
star
19

ruby-client

Powerful, flexible, lightweight SDK for the BitPay Bitcoin Payment Gateway API.
Ruby
77
star
20

bitpay-app

BitPay App (formerly Copay) is a secure Bitcoin and other crypto currencies wallet platform for IOS/Android.
TypeScript
73
star
21

bitcore-explorers

Blockchain APIs for bitcore
JavaScript
67
star
22

bitcore-ecies

A module for bitcore that implements the Elliptic Curve Integrated Encryption Scheme (ECIES).
JavaScript
56
star
23

copay-recovery

A simple client-side app to recover funds from all current and past Copay backups.
JavaScript
55
star
24

bitcore-channel

Payment channels smart contract support for bitcore.
JavaScript
49
star
25

bitpay-python

Powerful, flexible, lightweight SDK for the BitPay Bitcoin Payment Gateway API.
Python
48
star
26

jsonPaymentProtocol

JSON Payment Protocol Interface
JavaScript
47
star
27

nodejs-bitpay-client

NodeJs implementation for the BitPay Cryptographically Secure RESTful API
TypeScript
46
star
28

whmcs-plugin

WHMCS plugin for BitPay.com
PHP
44
star
29

bitcoind.js

Project has moved:
JavaScript
44
star
30

php-bitpay-client-v2

PHP implementation for the BitPay Cryptographically Secure RESTful API
PHP
37
star
31

bitcore-payment-protocol

Payment Protocol (BIP70) for Bitcore
JavaScript
37
star
32

i-made-this

Timestamp your work in the Bitcoin blockchain.
JavaScript
36
star
33

wordpress-ecommerce-plugin

BitPay bitcoin payment plugin for WP eCommerce
PHP
36
star
34

bwdb

A bitcoin wallet database for wallets with millions of addresses and transactions
JavaScript
36
star
35

java-bitpay-client

Java library for the new cryptographically secure BitPay API
Java
35
star
36

bloom-filter

A JavaScript bloom filter suitable for use in Bitcoin Connection Bloom Filtering
JavaScript
35
star
37

bitpay-go

Powerful, flexible, lightweight interface to the BitPay Bitcoin Payment Gateway API.
Go
34
star
38

bitcore-lib-cash

JavaScript
32
star
39

opencart-plugin

Opencart payment plugin for Bitpay.com
PHP
30
star
40

elixir-client

Elixir core library for connecting to bitpay.com
Elixir
30
star
41

csharp-bitpay-client

C# implementation for the BitPay Cryptographically Secure RESTful API
C#
29
star
42

bitpay-browser-extension

Pay with BitPay: Spend Crypto Instantly
TypeScript
25
star
43

pgp-keys

An additional place for distributing our PGP public keys
24
star
44

lemonade-stand

JavaScript
21
star
45

bitcoin-brand

The Bitcoin logo, icon, and color. For the BitPay logo and color, see: https://github.com/bitpay/bitpay-brand
20
star
46

python-bitpay-client

Python implementation for the BitPay Cryptographically Secure RESTful API
Python
18
star
47

android-sdk

An Android SDK to consume the BitPay API.
Java
17
star
48

php-bitpay-light-client

Light version of the PHP library for the new cryptographically secure BitPay API
PHP
17
star
49

angular-bitcore-wallet-client

angular module for bitcore-wallet-client
JavaScript
16
star
50

zencart-plugin

Zencart payment plugin for Bitpay.com
PHP
15
star
51

ios-sdk

BitPay iOS SDK
Swift
14
star
52

opencart3-plugin

PHP
13
star
53

bitpay-checkout-magento2

BitPay Integration for Magento 2
PHP
13
star
54

magento2-plugin

Magento2.x payment plugin for Bitpay.com
PHP
12
star
55

bitcore.io

Moved to https://github.com/bitpay/bitcore-website
CSS
12
star
56

bitpay-checkout-for-woocommerce

BitPay Checkout for WooCommerce
PHP
11
star
57

bitcore-website

JavaScript
11
star
58

node-libbitcoinconsensus

Node.js bindings for libbitcoinconsensus
JavaScript
11
star
59

spree-bitpay

BitPay bitcoin payments plugin for Spree Commerce
Ruby
11
star
60

bitpay-brand

The BitPay logo and color. For the Bitcoin logo and color, see: https://github.com/bitpay/bitcoin-brand
10
star
61

ubercart7-plugin

Drupal 7 Ubercart Plugin. For Drupal 6 Ubercart, please see https://github.com/bitpay/ubercart-plugin
PHP
10
star
62

bitcore-playground

Moved to https://github.com/bitpay/bitcore-website
JavaScript
10
star
63

gravityforms-plugin

BitPay bitcoin payment plugin for Gravity Forms
PHP
10
star
64

cordova-sdk

A cordova plugin to interface with the BitPay API.
JavaScript
10
star
65

copay-website

JavaScript
8
star
66

qr-code

WIP
TypeScript
8
star
67

bitpay-python-py2

Python 2.7 Library for the BitPay API
Python
8
star
68

crypto-rpc

JavaScript
8
star
69

bitcore-payment-code

Payment Code BIP47 for Bitcore Lib
JavaScript
7
star
70

bitpay-php-keyutils

BitPay Key Utilities for PHP
PHP
7
star
71

cordova-sdk-sample

sample application using the bitpay cordova sdk
JavaScript
7
star
72

oscommerce-plugin

Plugin for connecting osCommerce with Bitpay.com
PHP
7
star
73

bitpay-ios-client

Powerful, flexible, lightweight interface to the BitPay Bitcoin Payment Gateway API.
Ruby
7
star
74

satoshi-fire-alarm

JavaScript
7
star
75

bitpay-ghost-theme

CSS
7
star
76

copay-whitepaper

Copay: A Multisignature Bitcoin Wallet
TeX
7
star
77

chainlib

A blockchain library for Node.js
JavaScript
7
star
78

gitian.sigs

Trusted Build Process signatures
6
star
79

chainlib-bitcoin

A Bitcoin blockchain library for Node.js
JavaScript
6
star
80

commerce-seo-plugin

Commerce SEO plugin for bitpay.com
PHP
6
star
81

xcartgold-plugin

Plugin for connecting X-Cart Gold with Bitpay.com
PHP
6
star
82

node-bufferput

Pack multibyte binary values into buffers with specific endiannesses.
JavaScript
6
star
83

copay-sign

Prove control over a copay wallet
JavaScript
6
star
84

bitpay-ios-keyutils

Provides required cryptographic functions to use the BitPay 2.0 API
C
6
star
85

blockchain-data

Bitcoin blockchain data
JavaScript
6
star
86

bitpay-rails

Rails plugin for the bitpay library.
Ruby
6
star
87

bitcore-build

A helper to add tasks to gulp
JavaScript
6
star
88

harness

Craft and test API calls to the BitPay REST API with this handy harness!
JavaScript
6
star
89

bitcore-p2p-cash

JavaScript
5
star
90

bcoin-mongo-models

JavaScript
5
star
91

copay-brand

Brand manual for Copay
5
star
92

copay-shell

native application wrapper for copay using atom-shell
JavaScript
5
star
93

bitcore-stealth

Stealth Addresses implemented for Bitcore
JavaScript
5
star
94

wallet-cli-tools

Bitcoin wallet command line tools
JavaScript
5
star
95

impulse.is

Source for the new domain, impulse.is.
CSS
5
star
96

bitcore-tester

A tool to test projects that depend on bitcore
Shell
5
star
97

bitpay-go-cli

The command line client for test driving the bitpay-go library
Go
5
star
98

bitpay-drupalcommerce

BitPay payment plugin for Drupal Commerce
PHP
5
star
99

android-sdk-sample

sample application using the bitpay android sdk
Java
5
star
100

bitpay-checkout-easy-digital-downloads

BitPay integration for Easy Digital Downloads (Wordpress)
PHP
5
star