The compliance contract uses compliance rules to regulate the transfer of tokens. The contract maintains and manages the collection of rules which enforce compliant transfers between account types (custodian, broker, custodial-account, or investor).
Rules are stored within buckets matching the sender's account type, providing flexibility, while preventing unnecessary compliance checks for accounts that do not require it.
See T0kenCompliance.sol for a reference implementation