You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

62 lines
3.0 KiB

10 years ago
# bitcore-wallet-service
10 years ago
10 years ago
[![Build Status](https://img.shields.io/travis/bitpay/bitcore-wallet-service.svg?branch=master&style=flat-square)](https://travis-ci.org/bitpay/bitcore-wallet-service)
10 years ago
[![Coverage Status](https://coveralls.io/repos/bitpay/bitcore-wallet-service/badge.svg?branch=master)](https://coveralls.io/r/bitpay/bitcore-wallet-service?branch=master)
10 years ago
10 years ago
A Multisig HD Wallet Service, with minimum trust.
10 years ago
10 years ago
# Description
10 years ago
10 years ago
Bitcore Wallet Service facilitates multisig HD wallets creation and operation thru a (hopefully) simple and intuitive REST API.
10 years ago
BWS can usually be installed within minutes and acommodates all the needed infrastruture for peers in a multisig wallet to communicate, and operate with minimun server trust.
10 years ago
10 years ago
See [Bitcore-wallet-client] (https://github.com/bitpay/bitcore-wallet-client) for the *official* client library that communicates to BWS, and verifies its responsed. Also check [Bitcore-wallet] (https://github.com/bitpay/bitcore-wallet) for a simple CLI wallet implementation that relays on BWS.
10 years ago
10 years ago
# Peer's Local data
Peer need to store their *extended private key* and other participant peers' extended public key locally. We call this the ``Credentials``. *Extended private keys* are **never** sent to BWS.
10 years ago
## Mobility
10 years ago
Peers can safely access a wallet from different devices at the same time by copying their credentials.
10 years ago
10 years ago
## Agent support
10 years ago
10 years ago
## Airgapped Operation
10 years ago
10 years ago
## Security Considerations
10 years ago
* Private keys are never sent to BWS. Copayers store them locally.
* Extended public keys are stored on BWS. This allows BWS to easily check wallet balance, send offline notifications to copayers, etc.
* During wallet creation, the initial copayer creates a wallet secret that contains a private key. All copayers need to prove they have the secret by signing their information with this private key when joining the wallet. The secret should be shared using secured channels.
10 years ago
10 years ago
## All BWS responses are verified:
* Addresses and change addresses are derived independently and locally by the copayers from their local data.
10 years ago
* TX Proposals templates are signed by copayers and verified by others, so the BWS cannot create or tamper with them.
10 years ago
10 years ago
## Notes
* A copayer could join the wallet more than once, and there is no mechanism to prevent this. Copayers should use the command 'confirm' to check other copayer's identity.
10 years ago
## In case the BWS is compromised
10 years ago
* It could be possible to see past (and future) wallet's transactions.
10 years ago
* It is not possible to spend wallet funds, since private keys are never sent nor stored at BWS
* It is not possible to tamper with tx proposals or wallet addresses since they are computed and verified by copayers
10 years ago
* Copayers could switch to another BWS instance using their local data (see `recreate` command). In this case only the wallet extended data will be lost (pending and past transaction proposals, some copayer metadata).
10 years ago
10 years ago
10 years ago
10 years ago
# REST API
10 years ago
## create a wallet
POST `/v1/wallets`
## join a wallet
POST `/v1/wallets/:id/copayers`
...
[To be completed, see expressapp.js]
10 years ago
10 years ago