In the ERC-3643 (T-REX) standard for permissioned tokens, a compliance module is a separate smart contract that encodes one offering-level rule and is consulted on every transfer. Identity checks confirm who may hold the token; modules then enforce rules about the transfer itself, such as a maximum number of holders, limits on investors from certain countries, a lock-in period before resale, or caps on how much one investor may hold.
A token links to a compliance contract that holds a list of modules. Before a transfer is executed, each module is asked whether it can proceed; if any one says no, the whole transfer fails, and modules can update their records after transfers, mints and burns. This design lets issuers combine standard rules, such as a country allow-list or restrict-list, with custom ones without rewriting the token. It is a common way of implementing a transfer restriction for tokenized securities.
Ref 1070001320