[][src]Function sr25519::pair_from_seed

pub fn pair_from_seed(seed: Seed) -> PyResult<Keypair>

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 public key and 64-byte secret key, in that order.