pub fn sign_transaction(
wallet: &str,
chain: &str,
tx_hex: &str,
passphrase: Option<&str>,
index: Option<u32>,
vault_path: Option<&Path>,
) -> Result<SignResult, OwsLibError>Expand description
Sign a transaction. Returns hex-encoded signature.
The passphrase parameter accepts either the owner’s passphrase or an
API token (ows_key_...). When a token is provided, policy enforcement
kicks in and the mnemonic is decrypted via HKDF instead of scrypt.