diff --git a/.gitignore b/.gitignore
index c04002601..06fdf1546 100644
--- a/.gitignore
+++ b/.gitignore
@@ -59,6 +59,7 @@ build/Release
node_modules
bower_components
angular-bitcore-wallet-client/angular-bitcore-wallet-client.js
+angular-pbkdf2/angular-pbkdf2.js
# Users Environment Variables
.lock-wscript
diff --git a/Gruntfile.js b/Gruntfile.js
index c0dfa46ea..0b7fe8444 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -118,6 +118,7 @@ module.exports = function(grunt) {
'bower_components/angular-sanitize/angular-sanitize.js',
'bower_components/ng-csv/build/ng-csv.js',
'bower_components/angular-mocks/angular-mocks.js',
+ 'angular-pbkdf2/angular-pbkdf2.js',
'angular-bitcore-wallet-client/angular-bitcore-wallet-client.js'
],
dest: 'public/lib/angular.js'
@@ -273,7 +274,8 @@ module.exports = function(grunt) {
browserify: {
dist: {
files: {
- 'angular-bitcore-wallet-client/angular-bitcore-wallet-client.js': ['angular-bitcore-wallet-client/index.js']
+ 'angular-bitcore-wallet-client/angular-bitcore-wallet-client.js': ['angular-bitcore-wallet-client/index.js'],
+ 'angular-pbkdf2/angular-pbkdf2.js': ['angular-pbkdf2/index.js']
},
}
}
diff --git a/angular-pbkdf2/index.js b/angular-pbkdf2/index.js
new file mode 100644
index 000000000..4e1e0d9b9
--- /dev/null
+++ b/angular-pbkdf2/index.js
@@ -0,0 +1,18 @@
+var pbkdf2Module = angular.module('pbkdf2Module', []);
+var pbkdf2Sync = require('../node_modules/pbkdf2').pbkdf2Sync;
+
+pbkdf2Module.constant('MODULE_VERSION', '1.0.0');
+
+pbkdf2Module.provider("pbkdf2Service", function() {
+ var provider = {};
+
+ provider.$get = function() {
+ var service = {};
+
+ service.pbkdf2Sync = pbkdf2Sync;
+
+ return service;
+ };
+
+ return provider;
+});
diff --git a/app-template/package.json b/app-template/package.json
index 5a79c56c5..369729f80 100644
--- a/app-template/package.json
+++ b/app-template/package.json
@@ -74,6 +74,7 @@
"karma-chrome-launcher": "^1.0.1",
"karma-cli": "^1.0.0",
"karma-coverage": "^1.0.0",
+ "pbkdf2": "^3.0.4",
"karma-mocha": "^1.0.1",
"karma-mocha-reporter": "^2.0.3",
"karma-phantomjs-launcher": "^1.0.0",
diff --git a/package.json b/package.json
index 0a0c3df34..df700bb1d 100644
--- a/package.json
+++ b/package.json
@@ -77,6 +77,7 @@
"karma-chrome-launcher": "^1.0.1",
"karma-cli": "^1.0.0",
"karma-coverage": "^1.0.0",
+ "pbkdf2": "^3.0.4",
"karma-mocha": "^1.0.1",
"karma-mocha-reporter": "^2.0.3",
"karma-phantomjs-launcher": "^1.0.0",
diff --git a/public/img/bitpay-card-visa.svg b/public/img/bitpay-card-visa.svg
new file mode 100644
index 000000000..ce5375715
--- /dev/null
+++ b/public/img/bitpay-card-visa.svg
@@ -0,0 +1,57 @@
+
+
\ No newline at end of file
diff --git a/public/img/bitpay-logo.svg b/public/img/bitpay-logo.svg
new file mode 100644
index 000000000..158e539c8
--- /dev/null
+++ b/public/img/bitpay-logo.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/public/img/check.svg b/public/img/check.svg
new file mode 100644
index 000000000..23fdb8be7
--- /dev/null
+++ b/public/img/check.svg
@@ -0,0 +1,18 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/airplane.svg b/public/img/mcc-icons/airplane.svg
new file mode 100644
index 000000000..1d096a5f1
--- /dev/null
+++ b/public/img/mcc-icons/airplane.svg
@@ -0,0 +1,14 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/art.svg b/public/img/mcc-icons/art.svg
new file mode 100644
index 000000000..399d09c7d
--- /dev/null
+++ b/public/img/mcc-icons/art.svg
@@ -0,0 +1,20 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/bicycle.svg b/public/img/mcc-icons/bicycle.svg
new file mode 100644
index 000000000..2460bfc20
--- /dev/null
+++ b/public/img/mcc-icons/bicycle.svg
@@ -0,0 +1,21 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/bitcoin-topup.svg b/public/img/mcc-icons/bitcoin-topup.svg
new file mode 100644
index 000000000..17c97917c
--- /dev/null
+++ b/public/img/mcc-icons/bitcoin-topup.svg
@@ -0,0 +1,31 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/boat.svg b/public/img/mcc-icons/boat.svg
new file mode 100644
index 000000000..4c4df0585
--- /dev/null
+++ b/public/img/mcc-icons/boat.svg
@@ -0,0 +1,17 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/books.svg b/public/img/mcc-icons/books.svg
new file mode 100644
index 000000000..ef2d319eb
--- /dev/null
+++ b/public/img/mcc-icons/books.svg
@@ -0,0 +1,27 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/bowling.svg b/public/img/mcc-icons/bowling.svg
new file mode 100644
index 000000000..c3d438dc8
--- /dev/null
+++ b/public/img/mcc-icons/bowling.svg
@@ -0,0 +1,19 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/bug.svg b/public/img/mcc-icons/bug.svg
new file mode 100644
index 000000000..6cea4c70e
--- /dev/null
+++ b/public/img/mcc-icons/bug.svg
@@ -0,0 +1,21 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/bus.svg b/public/img/mcc-icons/bus.svg
new file mode 100644
index 000000000..bb32445e9
--- /dev/null
+++ b/public/img/mcc-icons/bus.svg
@@ -0,0 +1,21 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/camera.svg b/public/img/mcc-icons/camera.svg
new file mode 100644
index 000000000..9abb6dc75
--- /dev/null
+++ b/public/img/mcc-icons/camera.svg
@@ -0,0 +1,14 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/car.svg b/public/img/mcc-icons/car.svg
new file mode 100644
index 000000000..299164f0f
--- /dev/null
+++ b/public/img/mcc-icons/car.svg
@@ -0,0 +1,14 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/clean.svg b/public/img/mcc-icons/clean.svg
new file mode 100644
index 000000000..2ca8b4179
--- /dev/null
+++ b/public/img/mcc-icons/clean.svg
@@ -0,0 +1,21 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/clock.svg b/public/img/mcc-icons/clock.svg
new file mode 100644
index 000000000..2fd640f72
--- /dev/null
+++ b/public/img/mcc-icons/clock.svg
@@ -0,0 +1,16 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/cocktail.svg b/public/img/mcc-icons/cocktail.svg
new file mode 100644
index 000000000..c332c169c
--- /dev/null
+++ b/public/img/mcc-icons/cocktail.svg
@@ -0,0 +1,14 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/coins.svg b/public/img/mcc-icons/coins.svg
new file mode 100644
index 000000000..692866c8e
--- /dev/null
+++ b/public/img/mcc-icons/coins.svg
@@ -0,0 +1,27 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/computer.svg b/public/img/mcc-icons/computer.svg
new file mode 100644
index 000000000..a897e1644
--- /dev/null
+++ b/public/img/mcc-icons/computer.svg
@@ -0,0 +1,21 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/default.svg b/public/img/mcc-icons/default.svg
new file mode 100644
index 000000000..379fa3d0c
--- /dev/null
+++ b/public/img/mcc-icons/default.svg
@@ -0,0 +1,20 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/diamond-ring.svg b/public/img/mcc-icons/diamond-ring.svg
new file mode 100644
index 000000000..380d77351
--- /dev/null
+++ b/public/img/mcc-icons/diamond-ring.svg
@@ -0,0 +1,21 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/dollar-topup.svg b/public/img/mcc-icons/dollar-topup.svg
new file mode 100644
index 000000000..06d7eef77
--- /dev/null
+++ b/public/img/mcc-icons/dollar-topup.svg
@@ -0,0 +1,21 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/euro-topup.svg b/public/img/mcc-icons/euro-topup.svg
new file mode 100644
index 000000000..30f2782a1
--- /dev/null
+++ b/public/img/mcc-icons/euro-topup.svg
@@ -0,0 +1,24 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/film.svg b/public/img/mcc-icons/film.svg
new file mode 100644
index 000000000..c66e4cbed
--- /dev/null
+++ b/public/img/mcc-icons/film.svg
@@ -0,0 +1,27 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/food.svg b/public/img/mcc-icons/food.svg
new file mode 100644
index 000000000..d78db31fc
--- /dev/null
+++ b/public/img/mcc-icons/food.svg
@@ -0,0 +1,23 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/football.svg b/public/img/mcc-icons/football.svg
new file mode 100644
index 000000000..b790ee7eb
--- /dev/null
+++ b/public/img/mcc-icons/football.svg
@@ -0,0 +1,18 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/furniture.svg b/public/img/mcc-icons/furniture.svg
new file mode 100644
index 000000000..0ad767826
--- /dev/null
+++ b/public/img/mcc-icons/furniture.svg
@@ -0,0 +1,26 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/game.svg b/public/img/mcc-icons/game.svg
new file mode 100644
index 000000000..b8c90ab5a
--- /dev/null
+++ b/public/img/mcc-icons/game.svg
@@ -0,0 +1,21 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/gas.svg b/public/img/mcc-icons/gas.svg
new file mode 100644
index 000000000..8d4fb7cba
--- /dev/null
+++ b/public/img/mcc-icons/gas.svg
@@ -0,0 +1,14 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/golf.svg b/public/img/mcc-icons/golf.svg
new file mode 100644
index 000000000..eb8702e83
--- /dev/null
+++ b/public/img/mcc-icons/golf.svg
@@ -0,0 +1,22 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/hotel.svg b/public/img/mcc-icons/hotel.svg
new file mode 100644
index 000000000..1e38d1b1c
--- /dev/null
+++ b/public/img/mcc-icons/hotel.svg
@@ -0,0 +1,30 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/law.svg b/public/img/mcc-icons/law.svg
new file mode 100644
index 000000000..b43462266
--- /dev/null
+++ b/public/img/mcc-icons/law.svg
@@ -0,0 +1,21 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/mail.svg b/public/img/mcc-icons/mail.svg
new file mode 100644
index 000000000..058276221
--- /dev/null
+++ b/public/img/mcc-icons/mail.svg
@@ -0,0 +1,14 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/medical.svg b/public/img/mcc-icons/medical.svg
new file mode 100644
index 000000000..10b986d54
--- /dev/null
+++ b/public/img/mcc-icons/medical.svg
@@ -0,0 +1,20 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/money.svg b/public/img/mcc-icons/money.svg
new file mode 100644
index 000000000..74477aacb
--- /dev/null
+++ b/public/img/mcc-icons/money.svg
@@ -0,0 +1,19 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/motorcycle.svg b/public/img/mcc-icons/motorcycle.svg
new file mode 100644
index 000000000..ef452c618
--- /dev/null
+++ b/public/img/mcc-icons/motorcycle.svg
@@ -0,0 +1,17 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/music.svg b/public/img/mcc-icons/music.svg
new file mode 100644
index 000000000..ec9916802
--- /dev/null
+++ b/public/img/mcc-icons/music.svg
@@ -0,0 +1,20 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/newspaper.svg b/public/img/mcc-icons/newspaper.svg
new file mode 100644
index 000000000..041f29c87
--- /dev/null
+++ b/public/img/mcc-icons/newspaper.svg
@@ -0,0 +1,14 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/park.svg b/public/img/mcc-icons/park.svg
new file mode 100644
index 000000000..2cf0741bf
--- /dev/null
+++ b/public/img/mcc-icons/park.svg
@@ -0,0 +1,19 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/people.svg b/public/img/mcc-icons/people.svg
new file mode 100644
index 000000000..55949d8a0
--- /dev/null
+++ b/public/img/mcc-icons/people.svg
@@ -0,0 +1,17 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/pet.svg b/public/img/mcc-icons/pet.svg
new file mode 100644
index 000000000..49a4197fd
--- /dev/null
+++ b/public/img/mcc-icons/pet.svg
@@ -0,0 +1,20 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/plant.svg b/public/img/mcc-icons/plant.svg
new file mode 100644
index 000000000..1c4af2748
--- /dev/null
+++ b/public/img/mcc-icons/plant.svg
@@ -0,0 +1,20 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/purchase.svg b/public/img/mcc-icons/purchase.svg
new file mode 100644
index 000000000..5a24fc1b0
--- /dev/null
+++ b/public/img/mcc-icons/purchase.svg
@@ -0,0 +1,20 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/repair.svg b/public/img/mcc-icons/repair.svg
new file mode 100644
index 000000000..3904d394e
--- /dev/null
+++ b/public/img/mcc-icons/repair.svg
@@ -0,0 +1,16 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/sadface.svg b/public/img/mcc-icons/sadface.svg
new file mode 100644
index 000000000..a1ad7bea8
--- /dev/null
+++ b/public/img/mcc-icons/sadface.svg
@@ -0,0 +1,20 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/scissors.svg b/public/img/mcc-icons/scissors.svg
new file mode 100644
index 000000000..7a4ed1519
--- /dev/null
+++ b/public/img/mcc-icons/scissors.svg
@@ -0,0 +1,19 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/search.svg b/public/img/mcc-icons/search.svg
new file mode 100644
index 000000000..b77d2e5af
--- /dev/null
+++ b/public/img/mcc-icons/search.svg
@@ -0,0 +1,17 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/shirt.svg b/public/img/mcc-icons/shirt.svg
new file mode 100644
index 000000000..2acdc5b0b
--- /dev/null
+++ b/public/img/mcc-icons/shirt.svg
@@ -0,0 +1,21 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/shoes.svg b/public/img/mcc-icons/shoes.svg
new file mode 100644
index 000000000..f57f49f15
--- /dev/null
+++ b/public/img/mcc-icons/shoes.svg
@@ -0,0 +1,18 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/smiley-face.svg b/public/img/mcc-icons/smiley-face.svg
new file mode 100644
index 000000000..847e7ec7e
--- /dev/null
+++ b/public/img/mcc-icons/smiley-face.svg
@@ -0,0 +1,19 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/suitcase.svg b/public/img/mcc-icons/suitcase.svg
new file mode 100644
index 000000000..af48e1730
--- /dev/null
+++ b/public/img/mcc-icons/suitcase.svg
@@ -0,0 +1,25 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/telephone.svg b/public/img/mcc-icons/telephone.svg
new file mode 100644
index 000000000..2460721f9
--- /dev/null
+++ b/public/img/mcc-icons/telephone.svg
@@ -0,0 +1,14 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/television.svg b/public/img/mcc-icons/television.svg
new file mode 100644
index 000000000..1dd0dac55
--- /dev/null
+++ b/public/img/mcc-icons/television.svg
@@ -0,0 +1,21 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/tent.svg b/public/img/mcc-icons/tent.svg
new file mode 100644
index 000000000..ba19f2dd1
--- /dev/null
+++ b/public/img/mcc-icons/tent.svg
@@ -0,0 +1,20 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/ticket.svg b/public/img/mcc-icons/ticket.svg
new file mode 100644
index 000000000..cf81a1272
--- /dev/null
+++ b/public/img/mcc-icons/ticket.svg
@@ -0,0 +1,18 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/toy.svg b/public/img/mcc-icons/toy.svg
new file mode 100644
index 000000000..370b15622
--- /dev/null
+++ b/public/img/mcc-icons/toy.svg
@@ -0,0 +1,23 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/truck.svg b/public/img/mcc-icons/truck.svg
new file mode 100644
index 000000000..8bb2f9818
--- /dev/null
+++ b/public/img/mcc-icons/truck.svg
@@ -0,0 +1,24 @@
+
+
\ No newline at end of file
diff --git a/public/img/mcc-icons/watch.svg b/public/img/mcc-icons/watch.svg
new file mode 100644
index 000000000..1b4ad96c7
--- /dev/null
+++ b/public/img/mcc-icons/watch.svg
@@ -0,0 +1,20 @@
+
+
\ No newline at end of file
diff --git a/public/img/sync.svg b/public/img/sync.svg
new file mode 100644
index 000000000..ec32e621a
--- /dev/null
+++ b/public/img/sync.svg
@@ -0,0 +1,18 @@
+
+
\ No newline at end of file
diff --git a/public/views/bitpayCard.html b/public/views/bitpayCard.html
new file mode 100644
index 000000000..d760655e7
--- /dev/null
+++ b/public/views/bitpayCard.html
@@ -0,0 +1,274 @@
+
+
+
+
+
+
+
+
+
+ Sandbox version. Only for testing purpose
+
+
+
+ Loading...
+
+
+
+
+
+
+
+
+ Login to your account
+ 2-Step Verification
+
+
+ {{bitpayCard.error}}
+
+
+
+
+
+ Enter the verification code generated by the authenticator app on your phone.
+