[][src]Function sr25519::derive_keypair

pub fn derive_keypair(
    extended_keypair: ExtendedKeypair,
    id: Message
) -> PyResult<ExtendedKeypair>

Returns the soft deriviation of the private and public key of the specified child.

Arguments

  • extended_keypair - The extended keypair, comprised of the chain code, public key, and private key.
  • id - The identifier for the child key to derive.

Returns

A new extended keypair for the child.

NOTE: The chain code, public key, and secret key scalar are generated deterministically, but the secret key nonce is RANDOM, even with identical input.