Skip to content

Commit

Permalink
Update coldcard/README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
alfred-hodler committed Feb 23, 2024
1 parent 355f563 commit cbf1fdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions coldcard/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ let serials = api.detect()?;
let (mut cc, master_xpub) = api.open(&serials[0], None)?;

// set a passphrase
coldcard.set_passphrase(protocol::Passphrase::new("secret")?)?;
cc.set_passphrase(protocol::Passphrase::new("secret")?)?;

// after the user confirms
let xpub = coldcard.get_passphrase_done()?;
let xpub = cc.get_passphrase_done()?;

if let Some(xpub) = xpub {
println!("The new XPUB is: {}", xpub);
}

// secure logout
coldcard.logout()?;
cc.logout()?;
```

## Linux Specific Instructions
Expand Down

0 comments on commit cbf1fdf

Please sign in to comment.