src/bip44.c
bool bip44_isOrdinaryStakingKeyPath(const bip44_path_t* pathSpec)
{
	if (!bip44_containsAddress(pathSpec)) return false;
	if (bip44_containsMoreThanAddress(pathSpec)) return false;
	if (!bip44_hasShelleyPrefix(pathSpec)) return false;

	const uint32_t chainType = bip44_getChainTypeValue(pathSpec);
	if (chainType != CARDANO_CHAIN_STAKING_KEY) return false;

	return (bip44_getAddressValue(pathSpec) == 0);
}
// staking keys (one per account, should end with /2/0 after account)
staking keys (one per account, should end with /2/0 after account)
staking keys ( one per account should end with / 2 / 0 after account )
bool bip44_isOrdinaryStakingKeyPath(const bip44_path_t* pathSpec)
{
	if (!bip44_containsAddress(pathSpec)) return false;
	if (bip44_containsMoreThanAddress(pathSpec)) return false;
	if (!bip44_hasShelleyPrefix(pathSpec)) return false;
	const uint32_t chainType = bip44_getChainTypeValue(pathSpec);
	if (chainType != CARDANO_CHAIN_STAKING_KEY) return false;
	return (bip44_getAddressValue(pathSpec) == 0);
}
bool bip44_isOrdinaryStakingKeyPath ( const bip44_path_t * pathSpec ) { if ( ! bip44_containsAddress ( pathSpec ) ) return false ; if ( bip44_containsMoreThanAddress ( pathSpec ) ) return false ; if ( ! bip44_hasShelleyPrefix ( pathSpec ) ) return false ; const uint32_t chainType = bip44_getChainTypeValue ( pathSpec ) ; if ( chainType != CARDANO_CHAIN_STAKING_KEY ) return false ; return ( bip44_getAddressValue ( pathSpec ) == 0 ) ; }
staking keys (one per account, should end with /2/0 after account)
staking keys ( one per account should end with / 2 / 0 after account )