# Introducing Phage <!-- .slide: data-background="https://hackmd.io/_uploads/S1PanyS62.png" --> ## Programmable Transaction Middleware for Ethereum Nodes --- ## Phage is a rust based library that provides programmable transaction middleware for Ethereum nodes --- ### Current transaction broadcasting infrastructure is passive ![](https://hackmd.io/_uploads/SJYY8yBa3.jpg) --- ### Existing protection tools are concentrated on the wallet layer ![](https://hackmd.io/_uploads/H1Eq81Sph.jpg) --- ## Phage modules enable nodes to make automated decisions ![](https://hackmd.io/_uploads/HkNSfbBah.jpg) --- ## With Phage you can build... ✅ Custom RPC methods ✅ Intelligent transaction routing ✅ Real time threat interception ✅ Invisible policy enforcement & alerting --- ## Build modules in 3 steps ### Define the services ### Define the rules ### Install on your node --- ### Modules contain hooks for external services ![](https://hackmd.io/_uploads/rJaGflrTh.jpg =900x) --- <!-- .slide: data-background="https://hackmd.io/_uploads/ryULj1Ha3.png" data-background-color="#005" --> ## Rules are defined using Banyan ### The declarative policy language for modules based on Cedar by AWS ![](https://hackmd.io/_uploads/BkGhcJHph.jpg =450x) --- <!-- .slide: data-background="https://hackmd.io/_uploads/ryULj1Ha3.png" data-background-color="#005" --> ## Define transaction rules based on decoded & enriched transaction data ``` javascript [1|3|4-8|9] @name("WARN-NATIVE-ASSET-THRESHOLD") @advice("Warn when sending funds over X threshold") @notification("WEBHOOK-e03a0aa1") forbid ( principal, action == Action::"EOATransaction", resource ) when { context.value.u256GreaterThan(principal.valueLimit) }; ``` --- ### Use modules to dynamically route & bundle transactions ![](https://hackmd.io/_uploads/rJJ3pxS63.jpg) --- ### Enrich MPC transaction services with policies & detailed context ![](https://hackmd.io/_uploads/ryXBZ-Hpn.jpg) --- ### Intercept threats with external datasets & AI models ![](https://hackmd.io/_uploads/BkfmWWra3.jpg) --- ## Read More * https://hackmd.io/@shield3/intro-phage * https://github.com/ipatka/banyan * Twitter: @isaacpatka
{"title":"SLIDES Introducing Phage, Programmable Transaction Middleware by Shield3","description":"Programmable Transaction Middleware for Ethereum Nodes","slideOptions":"{\"transition\":\"fade\"}","image":"https://hackmd.io/_uploads/S1JHAgS6h.png","contributors":"[{\"id\":\"e8ca9a78-d9ca-46a7-ba49-7089e65d8c39\",\"add\":7818,\"del\":5596}]"}
    244 views
   owned this note