derivePrivateKeyFromSpriv

Derives a private key from an extended private key (Spriv).

Parses an Spriv string according to Sodot's non-hardened derivation, and returns the derived private key for a given non-hardened derivation path.

Return

The derived private key as a hex string

Parameters

spriv

A valid Ed25519 extended private key (Spriv) string retrieved from exportFullPrivateKey

derivationPath

The derivation path to use for computing the private key