Commit c9d624a1 authored by Eriksson Monteiro's avatar Eriksson Monteiro

update millix node, wallet-ui and tangled bar

parent 0e9c07fe
......@@ -175,7 +175,7 @@
<!--! Font Awesome Pro 6.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2022 Fonticons, Inc. -->
<path d="M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32V274.7l-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7V32zM64 352c-35.3 0-64 28.7-64 64v32c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V416c0-35.3-28.7-64-64-64H346.5l-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352H64zM432 456c-13.3 0-24-10.7-24-24s10.7-24 24-24s24 10.7 24 24s-10.7 24-24 24z"/>
</svg>
<span class="latest_available_version">download</span>
<span class="latest_available_version">upgrade</span>
</a>
</div>
</div>
......
......@@ -57,17 +57,21 @@ class _GktuwZlVP39gty6v extends Endpoint {
const walletID = wallet.getDefaultActiveWallet();
database.getRepository('keychain').getWalletDefaultKeyIdentifier(walletID)
.then(keyIdentifier => {
const addressVersion = database.getRepository('address').getDefaultAddressVersion().version;
const privateKey = wallet.getActiveWalletKey(walletID);
res.send({
api_status: 'success',
wallet : {
id : walletID,
private_key : privateKey.privateKey.toString(),
address : `${keyIdentifier}${addressVersion}${keyIdentifier}`,
address_key_identifier: keyIdentifier
}
});
database.getRepository('address').getAddressBaseAttribute(keyIdentifier, 'key_public')
.then(publicKey => {
const addressVersion = database.getRepository('address').getDefaultAddressVersion().version;
const privateKey = wallet.getActiveWalletKey(walletID);
res.send({
api_status: 'success',
wallet : {
id : walletID,
private_key : privateKey.privateKey.toString(),
address : `${keyIdentifier}${addressVersion}${keyIdentifier}`,
address_key_identifier: keyIdentifier,
address_public_key : publicKey
}
});
});
});
eventBus.removeListener('wallet_authentication_error', authenticationErrorHandler);
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment