[verified] feat(tui): drop unicode QR, share onionwire:v1 invite
Some checks failed
ci / test (push) Has been cancelled
Some checks failed
ci / test (push) Has been cancelled
F2 shows the invite string with fp/onion hints instead of a terminal QR. Keep encode/decode and F3 paste; drop the qrcode crate.
This commit is contained in:
parent
e902a9041d
commit
4fb47444d5
9 changed files with 64 additions and 55 deletions
13
tests/qr.rs
13
tests/qr.rs
|
|
@ -90,19 +90,6 @@ fn bad_sig_is_err() {
|
|||
assert!(qr::decode(&format!("{head}:sig={flipped}")).is_err());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn unicode_qr_renders() {
|
||||
let _home = TempHome::new();
|
||||
let store = Store::open().expect("open");
|
||||
let me = store.self_identity().expect("self");
|
||||
let raw = qr::encode(&me.identity_sk, &v3onion("x"), &[1u8; 32]).expect("encode");
|
||||
let art = qr::render_unicode(&raw).expect("render");
|
||||
assert!(
|
||||
art.contains('█') || art.contains('▀') || art.contains('▄') || art.contains('▌'),
|
||||
"expected unicode blocks, got {art:?}"
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn same_k_rescan_updates_onion_not_duplicate() {
|
||||
let _home = TempHome::new();
|
||||
|
|
|
|||
Loading…
Reference in a new issue