Signet Forge 0.1.0
C++20 Parquet library with AI-native extensions
DEMO
Loading...
Searching...
No Matches
signet::forge::regulatory Namespace Reference

Functions

bool validate_lei (const std::string &lei)
 Validate an LEI (Legal Entity Identifier) per ISO 17442.
 
bool validate_isin (const std::string &isin)
 Validate an ISIN (International Securities Identification Number) per ISO 6166.
 
bool validate_mic (const std::string &mic)
 Validate a MIC (Market Identifier Code) per ISO 10383.
 

Function Documentation

◆ validate_isin()

bool signet::forge::regulatory::validate_isin ( const std::string &  isin)
inline

Validate an ISIN (International Securities Identification Number) per ISO 6166.

Format: 2-letter country code + 9 alphanumeric chars + 1 check digit.

Parameters
isinThe ISIN string to validate.
Returns
true if the ISIN has valid format and Luhn check digit.

Definition at line 243 of file compliance_types.hpp.

◆ validate_lei()

bool signet::forge::regulatory::validate_lei ( const std::string &  lei)
inline

Validate an LEI (Legal Entity Identifier) per ISO 17442.

Format: 20 alphanumeric characters. Positions 1-4: prefix (numeric), 5-6: reserved (00), 7-18: entity identifier, 19-20: check digits (mod 97).

Parameters
leiThe LEI string to validate.
Returns
true if the LEI has valid format and check digits.

Definition at line 210 of file compliance_types.hpp.

◆ validate_mic()

bool signet::forge::regulatory::validate_mic ( const std::string &  mic)
inline

Validate a MIC (Market Identifier Code) per ISO 10383.

Format: exactly 4 uppercase alphabetic characters.

Note
Validates ISO 10383 format only (4 uppercase alpha); does not verify against MIC registry.
Parameters
micThe MIC string to validate.
Returns
true if the MIC has valid format.

Definition at line 289 of file compliance_types.hpp.