# stdnum.md.idno

IDNO (Moldavian company identification number).

The IDNO is used in Moldavia as unique identifier for legal entities. The number consists of 13 digits. The first digit identifies the registry, followed by three digits for the year the code was assigned. The number ends with five identifier digits and a check digit.

More information:

- https://www.idno.md

    >>> validate('1008600038413')
    '1008600038413'
    >>> validate('1008600038412')
    Traceback (most recent call last):
        ...
    InvalidChecksum: ...

`stdnum.md.idno.``calc_check_digit`(number)

  Calculate the check digit.

`stdnum.md.idno.``compact`(number)

  Convert the number to the minimal representation. This strips the number of any valid separators and removes surrounding whitespace.

`stdnum.md.idno.``is_valid`(number)

  Check if the number provided is valid. This checks the length, formatting and check digit.

`stdnum.md.idno.``validate`(number)

  Check if the number provided is valid. This checks the length, formatting and check digit.