* kv-proto: ticket and join wire types, LoginFinish.ticket, b64_opt. * kv-crypto: pairing.rs (HPKE AuthPSK seal/open with the QR secret as PSK, SAS code). * kv-sync: onboarding.rs (kestrove://setup/v1 and kestrove://join/v1 codec with strict validation), ApiClient ticket/join calls and login_with_ticket, test server support for tickets and rendezvous. * kv-ffi: parse/encode_setup_payload, setup_payload_for_kit, add_device_payload, revoke_enrollment_ticket, login_with_setup, join_start/poll/cancel, join_approve/send. The Secret Key is kept locally, HPKE-sealed to enc_pk. * Tests: codec round trips and rejections, AuthPSK tamper cases, end-to-end Add-device QR and scan-to-join between two clients, forged bundles, bound tickets; live test extended with scan-to-join. Co-Authored-By: Claude Opus 5.5 <[email protected]>
41 lines
1.0 KiB
TOML
41 lines
1.0 KiB
TOML
[package]
|
|
name = "kv-ffi"
|
|
description = "UniFFI bindings: the single API surface used by Swift, Kotlin and the Tauri app."
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
publish.workspace = true
|
|
|
|
[lib]
|
|
crate-type = ["lib", "staticlib", "cdylib"]
|
|
name = "kv_ffi"
|
|
|
|
[[bin]]
|
|
name = "uniffi-bindgen"
|
|
path = "src/bin/uniffi-bindgen.rs"
|
|
|
|
[dependencies]
|
|
kv-proto.workspace = true
|
|
kv-crypto.workspace = true
|
|
kv-model.workspace = true
|
|
kv-store.workspace = true
|
|
kv-sync.workspace = true
|
|
kv-import.workspace = true
|
|
serde.workspace = true
|
|
base64.workspace = true
|
|
hkdf.workspace = true
|
|
sha2.workspace = true
|
|
tokio = { workspace = true }
|
|
uuid.workspace = true
|
|
thiserror.workspace = true
|
|
serde_json.workspace = true
|
|
zeroize.workspace = true
|
|
uniffi = { workspace = true, features = ["cli", "tokio"] }
|
|
|
|
[dev-dependencies]
|
|
kv-sync = { workspace = true, features = ["test-server"] }
|
|
tempfile.workspace = true
|
|
p256.workspace = true
|
|
ciborium.workspace = true
|
|
zip = { version = "9", default-features = false, features = ["deflate-flate2"] }
|