Skip to content

Commit ef0ff8f

Browse files
Merge pull request #46 from Foundation-Devices/SFT-6125-ql-message-for-passphrase-state
SFT-6125: added QL message for passphrases
2 parents 14251f7 + eec0764 commit ef0ff8f

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

api/src/api/bitcoin.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,10 @@ pub struct BroadcastTransaction {
2323
#[n(1)]
2424
pub psbt: Vec<u8>,
2525
}
26+
27+
// If None, there's no passphrase, hide passphrased accounts
28+
#[quantum_link]
29+
pub struct ApplyPassphrase {
30+
#[n(0)]
31+
pub fingerprint: Option<String>,
32+
}

api/src/api/message.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ pub enum QuantumLinkMessage {
103103
BroadcastTransaction(#[n(0)] BroadcastTransaction),
104104
#[n(13)]
105105
AccountUpdate(#[n(0)] AccountUpdate),
106+
#[n(27)]
107+
ApplyPassphrase(#[n(0)] ApplyPassphrase),
106108
#[n(14)]
107109
SecurityCheck(#[n(0)] SecurityCheck),
108110
#[n(15)]

0 commit comments

Comments
 (0)