[][src]Function ed25519::ed_from_seed

pub fn ed_from_seed(seed: &[u8]) -> PyResult<PyKeypair>

Returns a public and private key pair from the given 32-byte seed.

Arguments

  • seed - A 32 byte seed.

Returns

A tuple containing the 32-byte secret key and 32-byte public key, in that order.