toBytes method

List<int> toBytes()

A flat encoding: ephemeralPublicKey(32) ‖ nonce(12) ‖ ciphertext.

Implementation

List<int> toBytes() => [...ephemeralPublicKey, ...nonce, ...ciphertext];