pub fn sign_with_api_key(
token: &str,
wallet_name_or_id: &str,
chain: &Chain,
tx_bytes: &[u8],
index: Option<u32>,
vault_path: Option<&Path>,
) -> Result<SignResult, OwsLibError>Expand description
Sign a transaction using an API token (agent mode).
- Look up key file by SHA256(token)
- Check expiry and wallet scope
- Load and evaluate policies
- HKDF(token) → decrypt mnemonic
- HD derive → sign