initiatorEphemeralPublicKey property

Uint8List get initiatorEphemeralPublicKey

The initiator's ephemeral public key from message 1; the host compares its ephemeralKeyHash with the claim cek. Throws NoiseError.invalidState before message 1.

Implementation

Uint8List get initiatorEphemeralPublicKey {
  final e = _initiatorEphemeral;
  if (e == null) {
    throw const NoiseException(
      NoiseError.invalidState,
      'initiator ephemeral key',
    );
  }
  return Uint8List.fromList(e);
}