I have set up an Anchor account and created a custom asset to have customers trade with. I want to set up some compliance for transactions sent from one customer to the other. All customers will be managed by that one Anchor.
Based on the Stellar documentation it provides a guide for setting up a Bridge server which receives the asset transaction on behalf of the customer and communicates with an external compliance server to verify transaction between two financial institutes.
In this case, the Anchor should not be receiving the asset on behalf of a customer but rather when a customer sends a transaction to another customer, the transaction details are reviewed against the Anchor's compliance rules (without the Anchor account having to receive and hold the asset) and once the compliance passes, the transaction is released to the Stellar network and the customers account is credited.
Is it necessary to use the bridge server setup defined by Stellar since the Anchor will not be receiving payments on behalf of the customer?
- Customer A sends a transaction to Customer B of 100 custom_asset.
- The transaction is sent to the Anchor's API endpoint to process transactions.
- The transaction is reviewed by the Anchor against its own compliance rules.
- Once the compliance passes, the Anchor also signs the transaction (multisig) and sends it to the Stellar network.
- Customer B receives 100 custom_asset in their wallet