appplayer_secure 0.1.3
appplayer_secure: ^0.1.3 copied to clipboard
AppPlayer security library (merged) — domain-neutral primitives (SIGN/STORE/CRYPTO/TRUST/AUDIT/MAUTH/BIO) + AppPlayer domain layer (roles/events/facade).
example/appplayer_secure_example.dart
import 'package:appplayer_secure/appplayer_secure.dart';
/// Minimal usage sketch — see README.md for the full sign/verify-chain flow.
/// The host normally exposes this via the `secure.*` capability rather than
/// depending on it directly.
Future<Bytes> sealRoundTrip(AppPlayerSecure secure, Bytes plain) async {
final sealed = await secure.sealBytes(plain, context: 'vault');
return secure.openBytes(sealed, context: 'vault');
}
/// Domain signer roles drive multi-signer chains.
SignerRole defaultSigner() => SignerRole.makemind;