//! Vault helpers.
use Address;
use ;
/// Derive a vault's on-chain address from its name.
///
/// `sha256(name)`, as the runtime seeds it on `CreateVault`. Neither the trading API nor
/// `CreateVault` events expose the address, so compute it client-side. `name` must match exactly
/// (no trimming or normalization).
///
/// Duplicates the exchange crate's `generate_address_with_seed` (not in
/// `bullet-exchange-interface`); a golden-vector test keeps them in sync.