publicKeyBytes property

Uint8List get publicKeyBytes

Raw 32-byte X25519 public key. Raw 32-byte X25519 public key.

Implementation

Uint8List get publicKeyBytes {
  // Public key = X25519(privateKey, basePoint)
  final pub = ecdhe.X25519(_privateKey, ecdhe.basePoint);
  return Uint8List.fromList(pub);
}