Companion
object Companion
Functions
Link copied to clipboard
Create an exchange from an explicit secret (big-endian bytes, any length up to 96). Primarily for deterministic tests; the secret is reduced mod P implicitly by the exponentiation.
Link copied to clipboard
Create an exchange with a fresh random 96-byte secret (libtorrent's default constructor: aux::random_bytes then import_bits).