Expose org_unwrap_key(keys_blob, device_private_openssh) to let the extension SW unwrap a member's ECIES-wrapped org master key into an ordinary Zeroizing session handle. The returned handle is key-agnostic and works with the existing item_decrypt/manifest_decrypt AEAD. Key-form finding: device private keys are OpenSSH PEM blobs produced by relicario_core::device::generate_keypair(), not base64 raw bytes. The plan's "device_private_key_base64" parameter name was misleading; all code and the .d.ts declaration use "device_private_openssh" to match the spec and reality. Adds ssh-key dep to relicario-wasm for PEM parsing in decode_device_seed. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014s527M917W47LDrfQ4t47g
29 lines
741 B
TOML
29 lines
741 B
TOML
[package]
|
|
name = "relicario-wasm"
|
|
version = "0.8.2"
|
|
edition = "2021"
|
|
description = "WASM bindings for relicario password manager"
|
|
license = "GPL-3.0-or-later"
|
|
|
|
[lib]
|
|
crate-type = ["cdylib", "rlib"]
|
|
|
|
[dependencies]
|
|
relicario-core = { path = "../relicario-core" }
|
|
wasm-bindgen = "0.2"
|
|
serde-wasm-bindgen = "0.6"
|
|
serde_json = "1"
|
|
serde = { version = "1", features = ["derive"] }
|
|
zeroize = "1"
|
|
getrandom = { version = "0.2", features = ["js"] }
|
|
ed25519-dalek = { version = "2", features = ["rand_core"] }
|
|
base64 = "0.22"
|
|
hex = "0.4"
|
|
rand = "0.8"
|
|
once_cell = "1"
|
|
ssh-key = { version = "0.6", features = ["ed25519", "std"] }
|
|
|
|
[dev-dependencies]
|
|
wasm-bindgen-test = "0.3"
|
|
image = { version = "0.25", default-features = false, features = ["jpeg"] }
|