mirror of
https://github.com/ecency/ecency-mobile.git
synced 2025-01-03 03:25:24 +03:00
logs removed
This commit is contained in:
parent
b9c67dac34
commit
98807d9436
@ -1341,13 +1341,11 @@ export const profileUpdate = async (params, pin, currentAccount) => {
|
||||
export const getBtcAddress = (pin, currentAccount) => {
|
||||
const digitPinCode = getDigitPinCode(pin);
|
||||
const key = getActiveKey(get(currentAccount, 'local'), digitPinCode);
|
||||
console.log(pin, currentAccount, digitPinCode, key);
|
||||
/*if (get(currentAccount, 'local.authType') === AUTH_TYPE.STEEM_CONNECT) {
|
||||
return { address: '' };
|
||||
}*/
|
||||
|
||||
if (key) {
|
||||
console.log(key);
|
||||
const keyPair = bitcoin.ECPair.fromWIF(key);
|
||||
const { address } = bitcoin.payments.p2pkh({ pubkey: keyPair.publicKey });
|
||||
|
||||
|
@ -3,7 +3,5 @@ import CryptoJS from 'crypto-js';
|
||||
export const encryptKey = (key, data) => CryptoJS.AES.encrypt(key, data).toString();
|
||||
|
||||
export const decryptKey = (key, data) => {
|
||||
console.log('key', key, 'data', data);
|
||||
|
||||
return CryptoJS.AES.decrypt(key, data).toString(CryptoJS.enc.Utf8);
|
||||
};
|
||||
|
@ -165,7 +165,6 @@ export const groomingWalletData = async (user, globalProps, userCurrency) => {
|
||||
if (!user) {
|
||||
return walletData;
|
||||
}
|
||||
console.log('groomingWalletData', user);
|
||||
const state = await getState(`/@${get(user, 'name')}/transfers`);
|
||||
const { accounts } = state;
|
||||
if (!accounts) {
|
||||
|
Loading…
Reference in New Issue
Block a user