What Is a Crypto Transaction Policy Engine?
What is a crypto transaction policy engine? It is the module in a wallet or custody platform that checks every transfer against preset rules before the transaction is signed, and it decides whether a transaction goes to approval or is blocked. In Safeheron's policy engine, for example, rules match on initiator, source wallet, destination address, coin and amount, and a matched rule triggers one of two actions, "approve" or "block." Only transactions that fully comply with the policies are executed.
What is a crypto transaction policy engine? It is the module in a wallet or custody platform that checks every transfer against preset rules before the transaction is signed, and it decides whether a transaction goes to approval or is blocked. In Safeheron’s policy engine, for example, rules match on initiator, source wallet, destination address, coin and amount, and a matched rule triggers one of two actions, “approve” or “block.” Only transactions that fully comply with the policies are executed.
What Rules Can a Policy Engine Set?
Rules commonly fall into five categories. In Safeheron’s policy engine, the initiator can be any user or API key, or specific users or API keys; the source and destination can be any wallet, specific wallets, or “unfamiliar addresses”; the coin can be one or more assets on one or more networks; and the amount can be counted per transaction or cumulatively, with up to 10 non-overlapping ranges. By adding frequent recipients to an address whitelist, a business can set stricter rules for addresses outside the whitelist.
Multiple policies run in order of priority: once a higher-priority policy is triggered, lower-priority policies are not. With these rules, a business can turn the approval requirements in its crypto treasury policy into controls enforced by the system.
How Should the Approval Flow Be Designed?
An approval flow is made up of approval nodes, and each node sets its approvers and an approval threshold, such as at least 2 of 3 people. Safeheron’s policy engine lets approval nodes be combined flexibly with policies, so that only transactions that fully comply with the defined policies are executed.
When designing an approval chain, it should also fit with wallet permissions and roles: initiators, approvers and policy administrators should be separate, so that no single person can both initiate transfers and change the rules.
Why Must Policies Run Before Signing?
Because once an on-chain transaction is signed and broadcast, it cannot be reversed, so risk controls can only sit before signing. When a business system initiates transfers through an API, anyone who obtains the API key could also get the system to sign for them, so API-initiated transactions must go through the same policy matching and approval.
The policies themselves also need protection; otherwise an attacker could change the rules first and then move the assets. Safeheron’s policy engine is backed by trusted execution environment (TEE) technology, and the policies are protected together with the MPC key shards.
Conclusion
A transaction policy engine checks every transfer by initiator, source, destination, coin and amount before signing, then routes it to the matching approval chain or blocks it outright, and API-initiated transactions are no exception. Safeheron’s MPC Wallet-as-a-Service provides businesses with MPC key management and a policy engine.
What limits and approvals does your business currently apply to on-chain transfers?
Looking for a secure way to manage digital assets?
Talk to our experts and find the right solution for your business.
Request a DemoLooking for a secure way to manage digital assets?
Talk to our experts and find the right solution for your business.