[][src]Function sr25519::hard_derive_keypair

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

Returns the hard derivation of the private and public key of the specified child.

This derivation is performed using the secret material for the key, so even knowing the extended public key of this or a child key is not enough to go any further up the hierarchy.

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.