Skip to content

Commit

Permalink
fix: ledger 1-sided spend (#6481)
Browse files Browse the repository at this point in the history
Description
---
Fix spending of normal 1-sided ledger transactions

Motivation and Context
---
Fixes key usage of ledger

How Has This Been Tested?
---
manual
  • Loading branch information
SWvheerden authored Aug 19, 2024
1 parent 8b8ab93 commit 1914a51
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions base_layer/core/src/transactions/key_manager/inner.rs
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,11 @@ where TBackend: KeyManagerBackend<PublicKey> + 'static
Ok(public_key)
}
},
TransactionKeyManagerBranch::Spend => {
Ok(ledger.public_alpha.clone().ok_or(KeyManagerServiceError::LedgerError(
"Key manager set to use ledger, ledger alpha public key missing".to_string(),
))?)
},
TransactionKeyManagerBranch::DataEncryption => {
let view_key = ledger
.view_key
Expand Down

0 comments on commit 1914a51

Please sign in to comment.