fix: update displayCardanoWallet to include only 32 bytes of root key

This commit is contained in:
void-57 2025-12-02 20:17:45 +05:30
parent bc52a5a0f3
commit 9fe384ba1a

View File

@ -275,7 +275,7 @@ async function handleGenerate() {
</div> </div>
</div> </div>
${displayCardanoWallet(wallet.Cardano)} ${displayCardanoWallet(wallet.Cardano, wallet.originalKey || wallet.extractedKey)}
${wallet.BTC ? displayBlockchain('Bitcoin', 'fab fa-bitcoin', wallet.BTC) : ''} ${wallet.BTC ? displayBlockchain('Bitcoin', 'fab fa-bitcoin', wallet.BTC) : ''}
${wallet.FLO ? displayBlockchain('FLO', 'fas fa-leaf', wallet.FLO) : ''} ${wallet.FLO ? displayBlockchain('FLO', 'fas fa-leaf', wallet.FLO) : ''}
`; `;
@ -342,7 +342,7 @@ async function handleRecoverPrivateKey() {
</div> </div>
</div> </div>
${displayCardanoWallet(wallet.Cardano)} ${displayCardanoWallet(wallet.Cardano, wallet.originalKey || wallet.extractedKey)}
${wallet.BTC ? displayBlockchain('Bitcoin', 'fab fa-bitcoin', wallet.BTC) : ''} ${wallet.BTC ? displayBlockchain('Bitcoin', 'fab fa-bitcoin', wallet.BTC) : ''}
${wallet.FLO ? displayBlockchain('FLO', 'fas fa-leaf', wallet.FLO) : ''} ${wallet.FLO ? displayBlockchain('FLO', 'fas fa-leaf', wallet.FLO) : ''}
`; `;
@ -993,7 +993,7 @@ document.addEventListener('DOMContentLoaded', () => {
// Display Functions // Display Functions
function displayCardanoWallet(cardano) { function displayCardanoWallet(cardano, masterKey) {
return ` return `
<div class="blockchain-section"> <div class="blockchain-section">
<div class="blockchain-header"> <div class="blockchain-header">
@ -1019,12 +1019,12 @@ function displayCardanoWallet(cardano) {
</button> </button>
</div> </div>
</div>` : ''} </div>` : ''}
${cardano.rootKey ? ` ${masterKey ? `
<div class="detail-row"> <div class="detail-row">
<label>Private Key:</label> <label>Private Key:</label>
<div class="value-container"> <div class="value-container">
<code style="font-size: 0.75rem;">${cardano.rootKey}</code> <code style="font-size: 0.85rem;">${masterKey}</code>
<button class="btn-icon" onclick="copyToClipboard('${cardano.rootKey}')"> <button class="btn-icon" onclick="copyToClipboard('${masterKey}')">
<i class="fas fa-copy"></i> <i class="fas fa-copy"></i>
</button> </button>
</div> </div>