An easy-to-host PDS on the ATProtocol, iPhone and MacOS. Maintain control of your keys and data, always.
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix(identity-wallet): move urlencoding to workspace deps, add FCIS comment, fix fmt

- Move urlencoding = "2" from local to workspace [dependencies] per convention
- Add "// pattern: Imperative Shell" FCIS classification to identity_store.rs
- Fix cargo fmt violations in identity_store.rs (lines 456, 613)

authored by

Malpercio and committed by
Tangled
70395968 2dd61a79

+13 -3
+1
Cargo.toml
··· 67 67 data-encoding = "2" 68 68 sha2 = "0.10" 69 69 zeroize = "1" 70 + urlencoding = "2" 70 71 subtle = "2" 71 72 uuid = { version = "1", features = ["v4"] } 72 73
+1 -1
apps/identity-wallet/src-tauri/Cargo.toml
··· 37 37 tokio = { workspace = true } 38 38 hickory-resolver = { workspace = true } 39 39 zeroize = { workspace = true } 40 - urlencoding = "2" 40 + urlencoding = { workspace = true } 41 41 42 42 [dev-dependencies] 43 43 tokio = { version = "1", features = ["macros", "rt"] }
+11 -2
apps/identity-wallet/src-tauri/src/identity_store.rs
··· 1 + // pattern: Imperative Shell 2 + 1 3 //! Per-DID identity storage layer with Keychain-based persistence. 2 4 //! 3 5 //! `IdentityStore` manages multi-identity lifecycle in the iOS Keychain: ··· 456 458 457 459 // Get and store application_label. Roll back pub_account if this fails. 458 460 let app_label = priv_key.application_label().ok_or_else(|| { 459 - tracing::error!(did = did, "SE key created but application_label returned None"); 461 + tracing::error!( 462 + did = did, 463 + "SE key created but application_label returned None" 464 + ); 460 465 let _ = crate::keychain::delete_item(&pub_account); 461 466 IdentityStoreError::KeychainError { 462 467 message: "SE key created but application_label returned None; do not retry".into(), ··· 613 618 614 619 // Validate multibase decoding to 33 bytes 615 620 let (_, decoded) = multibase::decode(&key.multibase).expect("multibase decode failed"); 616 - assert_eq!(decoded.len(), 33, "compressed P-256 point should be 33 bytes"); 621 + assert_eq!( 622 + decoded.len(), 623 + 33, 624 + "compressed P-256 point should be 33 bytes" 625 + ); 617 626 } 618 627 619 628 #[test]