XWingKeyPair class

X-Wing hybrid post-quantum/traditional KEM key pair (draft-connolly-cfrg-xwing-kem).

Public keys are 1216 raw bytes (pk_ML-KEM-768 || pk_X25519); the private key is the 32-byte seed from which everything else is re-derived. Both are encoded as base64 strings to fit the existing AsymmetricKeyPair String contract.

Inheritance
Mixed-in types
Implementers

Constructors

XWingKeyPair.create(String publicKey, String privateKey)

Properties

atPrivateKey AtPrivateKey
no setterinherited
atPublicKey AtPublicKey
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
privateKeyBytes Uint8List
The raw private key bytes (atPrivateKey base64-decoded).
no setterinherited
publicKeyBytes Uint8List
The raw public key bytes (atPublicKey base64-decoded).
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

generate() Future<XWingKeyPair>
Generates an X-Wing hybrid post-quantum/traditional KEM key pair (draft-connolly-cfrg-xwing-kem; X25519 + ML-KEM-768).