pub struct PersistedSessionMeta {
pub session_id: String,
pub address: String,
pub display_name: String,
pub p256_pubkey_hex: String,
pub phone_wallet_pubkey_hex: Option<String>,
pub capabilities: Vec<String>,
}Expand description
Minimal session metadata that survives across process restarts.
The AES session key is NOT persisted here — it must be re-derived during the next pairing or kept in a platform-native secure enclave by the host.
Fields§
§session_id: StringOpaque session identifier shared with the mobile wallet.
address: StringSS58 address of the paired mobile account.
display_name: StringHuman-readable name shown during pairing (e.g. device name).
p256_pubkey_hex: StringHex-encoded uncompressed P-256 public key (65 bytes, 0x04-prefixed).
phone_wallet_pubkey_hex: Option<String>Hex-encoded 32-byte sr25519 public key of the phone’s wallet account.
None for sessions established with older phones that do not send their
wallet pubkey during the pairing handshake.
capabilities: Vec<String>Capability tokens advertised by the phone during pairing.
Currently defined token: "product_key" — phone supports
ProductKeyRequest/ProductKeyResponse over the encrypted channel.
Trait Implementations§
Source§impl Clone for PersistedSessionMeta
impl Clone for PersistedSessionMeta
Source§fn clone(&self) -> PersistedSessionMeta
fn clone(&self) -> PersistedSessionMeta
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more