Returns the purpose enum of a DerivationPath.
DerivationPathPurpose.
DerivationPath to get the purpose of.