copay

Copay是一款适用于桌面和移动设备的安全比特币和比特币现金钱包平台。(Copay is a secure Bitcoin and Bitcoin Cash wallet platform for both desktop and mobile devices.)

  • 所有者: bitpay/copay
  • 平台: Android, iOS, Linux, Mac, Windows, WP, Chrome App
  • 许可证:
  • 分类:
  • 主题:
  • 喜欢:
    0
      比较:

Github星跟踪图

Copay是一款适用于台式机和移动设备的安全比特币和比特币现金钱包平台。 Copay使用 Bitcore钱包服务(BWS)进行对等同步和网络接口。

Copay的二进制版本可在 Copay.io 上下载。 Copay二进制文件使用密钥 copay@bitpay.com 签名 - 请参阅 如何验证Copay签名 了解详情。

有关常见问题的列表,请访问 Copay常见问题解答

主要功能

  • 支持比特币(BTC)和比特币现金(BCH)钱包
  • 多个钱包创建和管理应用
  • 个人或共享钱包的直观,多签名安全性
  • 共享钱包和群组付款的简易付款建议流程
  • BIP32 分层确定性(HD)地址生成和钱包备份
  • 基于设备的安全性:所有私钥都存储在本地,而不是存储在云中
  • 支持比特币testnet钱包
  • 跨所有主要移动和桌面平台的同步访问
  • 支付协议(BIP70-BIP73)支持:易于识别的支付请求和可验证的安全比特币支付
  • 支持BTC或位币超过150种货币定价选项和单位面额
  • 助记符(BIP39)支持钱包备份
  • 纸币清扫支持(BIP38)
  • 硬件钱包支持(Trezor和Ledger)(仅适用于Chrome应用程序版本)
  • 付款和转帐的电子邮件通知
  • 推送通知(仅适用于ios和Android版本)
  • 可自定义的钱包命名和背景颜色
  • 支持多种语言
  • 适用于 iOS Android Windows Phone Chrome应用程序 Linux Windows OS X 设备

在浏览器中测试

注意:此方法只能用于开发目的。在普通浏览器环境中运行Copay时,浏览器扩展和其他恶意代码可能访问内部数据和私钥。有关生产用途,请参阅最新官方发布

克隆仓库并打开目录:

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

确保您已安装Node,然后安装并启动Copay:

npm install
npm run apply:copay
npm run start

访问localhost:8100 以查看该应用。

一个监视任务也可用于在进行更改时重新构建应用程序的组件。此任务可以在单独的进程中运行 -- 而由 npm start 启动的服务器正在运行 - 以快速测试更改。

npm run watch

在真实设备上测试

建议所有最终测试均在真实设备上完成 - 既要评估性能,又要启用仿真器无法使用的功能(例如设备相机)。

Android

按照科尔多瓦Android平台指南设置您的开发环境。

当你的开发环境准备就绪时,运行 start:android 包脚本。

npm run apply:copay
npm run prepare:copay
npm run start:android

iOS

按照科尔多瓦iOS平台指南设置您的开发环境。

当你的开发环境准备就绪时,运行 start:ios 包脚本。

npm run apply:copay
npm run prepare:copay
npm run start:ios

桌面((Linux, macOS, 和 Windows))

Copay的桌面版目前使用Electron。 要开始使用,请先从Electron网站上安装Electron。

安装Electron后,运行start:desktop软件包脚本。

npm run apply:copay
npm run start:desktop

建立Copay App Bundles

在构建平台的发行版本之前,运行 clean-all 命令删除当前工作目录中的任何未跟踪的文件。 (请确保存储您所做的任何未经改动的更改。)这保证了此存储库当前状态的构建的一致性。

final 命令构建应用程序的生产版本,并将其与正在构建的平台的发行版捆绑在一起。

Android

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

iOS

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

推送通知

由于Xcode和插件cordova-plugin-fcm的更新,推送通知在iOS 12上不起作用。

当前的解决方法是注释掉该行以防止在调试构建期间删除文件(platforms / ios / cordova / lib / copy-www-build-step.js中的第56行)。

来源

桌面(Linux,macOS和Windows)

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

桌面 Data Path

用于Copay或BitPay分发的每用户应用程序数据目录。

"~/Library/Containers/com.bitpay.copay.desktop2/Data/.copay"
# or
"~/Library/Containers/com.bitpay.wallet.desktop/Data/.bitpay"

主要指标

概览
名称与所有者bitpay/copay
主编程语言
编程语言Shell (语言数: 0)
平台Android, iOS, Linux, Mac, Windows, WP, Chrome App
许可证
所有者活动
创建于2020-12-29 13:52:39
推送于2024-07-13 05:06:49
最后一次提交
发布数0
用户参与
星数195
关注者数30
派生数56
提交数7
已启用问题?
问题数0
打开的问题数0
拉请求数0
打开的拉请求数0
关闭的拉请求数1
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?

CircleCI
Codecov
Crowdin

Copay is a secure bitcoin wallet platform for both desktop and mobile devices. Copay uses Bitcore Wallet Service (BWS) for peer synchronization and network interfacing.

Binary versions of Copay are available for download at Copay.io. Copay Binaries are signed with the key copay@bitpay.com – See the section How to Verify Copay Signatures for details.

This project was created by BitPay Inc, and it is maintained by BitPay and hundreds of contributors. There is a BitPay branded version of Copay at mobile phone stores, BitPay Wallet, which features integration with the BitPay Visa Debit Card, as its main difference.

For a list of frequently asked questions please visit the Copay FAQ.

Main Features

  • Bitcoin and Bitcoin Cash coin support
  • Multiple wallet creation 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 for Bitcoin testnet wallets
  • 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 or bits
  • Mnemonic (BIP39) support for wallet backups
  • Paper wallet sweep support (BIP38)
  • Email notifications for payments and transfers
  • Push notifications (only available for ios and android versions)
  • Customizable wallet naming and background colors
  • Multiple languages supported
  • Available for iOS, Android, Windows Phone, Chrome App, Linux, Windows and OS X devices

Testing in a Browser

Note: This method should only be used for development purposes. When running Copay 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/copay.git
cd copay

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

npm install
npm run apply:copay
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:copay
npm run prepare:copay
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:copay
npm run prepare:copay
npm run start:ios

Desktop (Linux, macOS, and Windows)

The desktop version of Copay 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:copay
npm run start:desktop

Build Copay 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:copay
npm run prepare:copay
npm run final:android

iOS

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

Push Notifications

Push notification doesn't work on iOS 12 due to an update of Xcode and plugin cordova-plugin-fcm.

A current workaround is to comment out the line to prevent the removal of the file during the debug build (line 56 in platforms/ios/cordova/lib/copy-www-build-step.js).

Source

Desktop (Linux, macOS, and Windows)

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

Desktop Data Path

Per-user application data directory for Copay or BitPay distribution.

"~/Library/Containers/com.bitpay.copay.desktop2/Data/.copay"
# or
"~/Library/Containers/com.bitpay.wallet.desktop/Data/.bitpay"

Configuration

Enable External Services

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

COPAY_EXTERNAL_SERVICES_CONFIG_LOCATION="~/.copay/externalServices.json" npm run apply:copay
# or
BITPAY_EXTERNAL_SERVICES_CONFIG_LOCATION="~/.bitpay/externalServices.json" npm run apply:bitpay

About Copay

General

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, Copay 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.

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

Copay Backups and Recovery

Since v1.2 Copay 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/copay/blob/master/backupRecovery.md

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

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

Wallet Export Format

Copay 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

Copay 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 Copay. BWS also allows Copay to interoperate with other wallets like Bitcore Wallet CLI.

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

Translations

Copay 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 Copay 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

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

How to Verify Copay Signatures

  1. Download the copay@bitpay.com public key (gpg --recv-keys 1112CFA1)
  2. Download Copay binary ($FILENAME) and signature file ($FILENAME.sig)
  3. Verify the signature by running:
$ gpg --verify \
 $FILENAME.sig \
 $FILENAME

# It should return:
Good signature from "Copay (visit copay.io) <copay@bitpay.com>"

Public Key for Copay Binaries

Instead of importing the public key from a public server (like gnu's) you can grab it from here:

-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: SKS 1.1.5
Comment: Hostname: pgp.mit.edu

mQMuBFO8l6sRCAD+VYKPjZY7hMCKVC3KWCkcqvSXEfiqx8KIVSp4yKx1blpVHoBYfAj13Lls
XkVMujjRVZZB8tVxl3282T/1T4VNLdHy+HvulWbAmZRAJzTw8xZYkb7L9iFFVvIHk2o31Gbq
7PAvML2MKA556jd0/OjixDR8mLpdAee8la+09RHuWhOYtFJ4nyrVW0nVFApqj1R90eXMcvOj
vSEdVHEmO341RiwayadfGRRwTqlYtsIx0k64+dpGyjA0CnJJLKVKPTzyn3bQEFhrCq41XfJf
AFI928/YVb4Wmbd51wgDv01c2b/gyGXwNFW+Qxj9xIcVgK/EPMn2I5j4eBsnOZy9Gn9vAQDj
SfX26Q6nU1x7ULPjGJ/SefPkYm2swp1Gxfmn78bXFwgA/Q7/QqqARHuUtO3ZP4FgmcxxYYK8
M+/+ROKoUUPA7Hx3cG3eq86Q5Ok7ADGFTurjaOdZmuV42E54t1pKIYvAe3IJLXr06cx3Vb8L
zLtalsQsYh2IebwRTu2wvQpsSJxBoVUzwmosNWiOuIemlTpujUFmP89Wad8MsnQSRBNoK0D7
03ckYjVRJPD+qd788c9JGyTredk0gJzV2dqesMFT+EaLuNUuOktWC+jTGZ5xK9F7EXN0ZfIM
fKDLFxvCL2a9cTCJIVirn1Ur6QHDsw5PBD/U7DDZDkk9Hzl1ep3qk7PVMn/xDzz3MxKRKKd+
d7d7wZA9OE+iKoivcAPeC1yTxQgA8KEaCz2TuS1+M9A+8PzGebKJ1OazwCb+tIGWCXUeJlIh
dRV7W/kre6e4fv0UOxDJHBrIoD1vIGtHguOGSMEnFuVJFDIH2HXXr5oxJkO86RMAig+EbglT
BJbFEfdx8Ruwhw74JzetijGHYRG62u7n8o8iX6RbpTdzt/nq26fs3Ts0SLMHfP26ZVHJOjY6
2dTCrw0q20RC4i9HWHJ0g694YBPYvhp2gYks93tigHbIqB1GhpBmBauuNvXRvNs493Rn40FI
wNMtWZBcQSMch1aEm4j5njDTt4+a6c/v8W2px3u8nFacKBR5FV86WjHEg+HmNx72nvfE/PQW
HEQixfyiObQpQ29wYXkgKHZpc2l0IGNvcGF5LmlvKSA8Y29wYXlAYml0cGF5LmNvbT6IegQT
EQgAIgUCU7yXqwIbAwYLCQgHAwIGFQgCCQoLBBYCAwECHgECF4AACgkQXNYAphESz6FzCQEA
wcLYPogeVLbG3ZL5Bi/Be7U4ctNgewfKEZSSmec3vBYBAIB2xXhiq5ZER1P033KFT8g5pgY2
fMbk4YsO11Yj2B2m
=tKra
-----END PGP PUBLIC KEY BLOCK-----

Save that text to /tmp/key, and then import it as follows:

gpg --import /tmp/key

(Thanks @pzkpfwVI and @mika-mitzahlen for this section, taken from Gist.

Contributing to this project

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

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