src/securityPolicy.c
security_policy_t policyForGetExtendedPublicKeyBulkExport(const bip44_path_t* pathSpec)
{
	switch (bip44_classifyPath(pathSpec)) {

	case PATH_ORDINARY_ACCOUNT:
	case PATH_ORDINARY_SPENDING_KEY:
	case PATH_ORDINARY_STAKING_KEY:
	case PATH_MULTISIG_ACCOUNT:
	case PATH_MULTISIG_SPENDING_KEY:
	case PATH_MULTISIG_STAKING_KEY:
	case PATH_MINT_KEY:
		WARN_UNLESS(bip44_isPathReasonable(pathSpec));
		// we do not show these paths since there may be many of them
		ALLOW();
		break;

	case PATH_POOL_COLD_KEY:
		WARN_UNLESS(bip44_isPathReasonable(pathSpec));
		// but ask for permission when pool cold key is requested
		PROMPT();
		break;

	default:
		DENY();
		break;
	}

	DENY(); // should not be reached
}
// Get extended public key and return it to the host within bulk key export
Get extended public key and return it to the host within bulk key export
Get extended public key and return it to the host within bulk key export
security_policy_t policyForGetExtendedPublicKeyBulkExport(const bip44_path_t* pathSpec)
{
	switch (bip44_classifyPath(pathSpec)) {
	case PATH_ORDINARY_ACCOUNT:
	case PATH_ORDINARY_SPENDING_KEY:
	case PATH_ORDINARY_STAKING_KEY:
	case PATH_MULTISIG_ACCOUNT:
	case PATH_MULTISIG_SPENDING_KEY:
	case PATH_MULTISIG_STAKING_KEY:
	case PATH_MINT_KEY:
		WARN_UNLESS(bip44_isPathReasonable(pathSpec));
		ALLOW();
		break;
	case PATH_POOL_COLD_KEY:
		WARN_UNLESS(bip44_isPathReasonable(pathSpec));
		PROMPT();
		break;
	default:
		DENY();
		break;
	}
	DENY(); 
}
security_policy_t policyForGetExtendedPublicKeyBulkExport ( const bip44_path_t * pathSpec ) { switch ( bip44_classifyPath ( pathSpec ) ) { case PATH_ORDINARY_ACCOUNT : case PATH_ORDINARY_SPENDING_KEY : case PATH_ORDINARY_STAKING_KEY : case PATH_MULTISIG_ACCOUNT : case PATH_MULTISIG_SPENDING_KEY : case PATH_MULTISIG_STAKING_KEY : case PATH_MINT_KEY : WARN_UNLESS ( bip44_isPathReasonable ( pathSpec ) ) ; ALLOW ( ) ; break ; case PATH_POOL_COLD_KEY : WARN_UNLESS ( bip44_isPathReasonable ( pathSpec ) ) ; PROMPT ( ) ; break ; default : DENY ( ) ; break ; } DENY ( ) ; }
Get extended public key and return it to the host within bulk key export
Get extended public key and return it to the host within bulk key export
// we do not show these paths since there may be many of them // but ask for permission when pool cold key is requested // should not be reached