- createTX
- output: 1bitcoin
- amount: 1BTC
- useCoinJoin: true
- coinJoinToSignTimeout: 1hr
- coinJoinToBroadcastTimeout: 24hr
- coinJoinTimeoutPolicy: broadcastWithoutCoinJoin | rejectByServer
There are 3 tiers of access control
- Access is controlled at the server
All requests to an existing wallet must be signed by a private key and are verified by the server. All copayers have
a always valid private key, m/1/1
, and can generate more with restricted access thru the grantAccess
removeAccess
API.
Extra access keys pairs are always derived from the extended master private key using m/1/x
.
Hoy
var storage = new Client.FileStorage({
filename: args.file || process.env['BIT_FILE'],
});
var c = new Client({
storage: storage,
baseUrl: args.host || process.env['BIT_HOST'],
verbose: args.verbose,
});
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var b = require('bitcore'); | |
var priv = new b.PrivateKey(); | |
var pub = new b.PublicKey(priv); | |
var inputs = | |
[ { txid: 'e872a0fda0afd0bce31ddfd9229c9eca2a68e4746615b8a0902b7a657b83676d', | |
vout: 8, | |
amount: 100, | |
scriptPubKey: b.Script.buildPublicKeyHashOut(pub).toBuffer().toString('hex') } ] ; |
The following is a procedure to grab the extended priv key, for copayers that are
- Open the wallet in Chrome
- Open the javascript console
- Inspect an element on the html (could be any element), inspect by using the magnifing glass.
After selecting an item, go back to the javascript console and type:
var w= angular.element($0).scope().wallet; w?'OK':'';
-
Insight commit 70fc47f343417a5bd71241d42bd579c2949b54ef Author: Rainer Koirikivi rainer@koirikivi.fi Date: Mon Nov 3 22:59:38 2014 +0200
Friendlier error reporting for sendRawTransaction
-
borro emailstorage db
- fetch insight #f2e33fcad34f76bed1e8a60a30751793f9a721cb https://github.com/bitpay/insight-api/commit/f2e33fcad34f76bed1e8a60a30751793f9a721cb
- fetch Copay master #9e695863edd31cce9979250f2b625258b787c073
- modify
config.js
to point to localhost - run insight:
ENABLE_MAILBOX="true" ENABLE_EMAILSTORE="true" ./insight.js
- check that creating a user with password with "!" does not work.
- create a profile (3@3.com password 123)
- close it and open it to test. Create some address and receive some btcs.
$ git clone -b bug/swipe --single-branch https://github.com/matiu/copay.git
$ cd copay
$ bower i
$ npm i
$ grunt
$ util/swipeWallet.js XXX