added code, icons and css for sign and verify message

This commit is contained in:
Kadir Sekha 2018-03-22 15:44:21 +09:00
commit ef6a572b87
11 changed files with 271 additions and 1 deletions

View file

@ -0,0 +1,27 @@
'use strict';
angular.module('copayApp.controllers').controller('signMessageController', function($scope, $interval, profileService, walletService, popupService, lodash, $ionicNavBarDelegate, signVerifyMessageService) {
$scope.message = {};
$scope.message.value = "";
$scope.$on("$ionicView.beforeEnter", function(event, data) {
$scope.walletSelectorTitle = 'Wallets';
$scope.wallets = profileService.getWallets();
$scope.wallet = $scope.wallets[0];
$scope.showWallets = false;
$scope.singleWallet = $scope.wallets.length > 1;
});
$scope.showWalletSelector = function() {
$scope.showWallets = true;
}
$scope.onWalletSelect = function(wallet) {
$scope.wallet = wallet;
}
$scope.signMessage = function() {
$scope.signedMessage = signVerifyMessageService.signMessage($scope.wallet, $scope.message.value);
}
});