seal method

void seal()

One-way latch: after seal, setApi, setRustApi and setDartApi throw. Call once during app startup, after the backend is selected, to prevent any later code (injected scripts, plugins) from silently swapping the crypto backend — e.g. for an exfiltrating fake whose sign() receives raw secret keys. Tests never seal, so backend switching keeps working there.

Also seals QuickCrypto so the random source can no longer be swapped.

Implementation

void seal() {
  _sealed = true;
  QuickCrypto.seal();
}