Skip to content

Commit

Permalink
update readme.md
Browse files Browse the repository at this point in the history
  • Loading branch information
veigajoao committed Nov 19, 2023
1 parent fc88afe commit ff3fcd3
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,15 @@ The Anti Money Laundry Agent is an off chain bot that uses a risk scoring API to

Users that wish to prove to that Anti Money Landry Agent that they are not malicious must always exclude all the UTXOs in the agent's list from their inclusion proofs. If they do not exclude all the UTXOs in the list, the agent will flag their transaction as malicious and the user will not be able to interact with off chain agents that use the Anti Money Laundry Agent as their compliance threshold.

The agent listens to all transactions into the protocol and performs the following evaluation:
1. If the transaction is a deposit, it fetches the risk score of the deposit's UTXO from the risk scoring API
2. If the transaction is a withdrawal or an internal transfer, it evaluates the subset membership proof provided with the transaction. If it successfully excludes all UTXOs considered malicious or not
3. If either evaluation (1) or (2) does not pass, all UTXOs created by the transaction are deemed to be invalid and are added to the list of malicious UTXOs

**more considerations regarding the AML agent are given in the agent package's readme.md file**

### Metamask Snap frontend
### Frontend

The frontend is a metamask snap that allows users to deposit and withdraw funds from the protocol. It can be used as a model that integrates with any Anti Money Laundry Agent. The snap fetches the denylist from the AML agent and uses that as a base for their subset proofs.
The frontend is a simple interface through which the user can interact with the protocol. It creates a key pair to be used inside of the protocol and keeps track of the user's UTXOs. It also creates the inclusion proofs for each transaction and fetches the list of malicious UTXOs from the AML agent.

**more considerations regarding the snap frontend are given in the site and snap packages' readme.md files**
**more considerations regarding the frontend are given in the front package's readme.md files**

0 comments on commit ff3fcd3

Please sign in to comment.