conformance: a conformance suite for the AIP-23 proof kinds (one verdict form over the published verifiers, 35 rules derived from code, 122 vectors, a runner for any implementation, a second verifier in Python); four defects it found in the published verifiers are fixed here: the market judge accepted a timeline with its submission event withheld, and three verifiers threw on malformed input instead of refusing by name
This commit is contained in:
1 parent
2c000478dc
commit
c9f2932e04
145 files changed
+17395
-104
No files matched your search
+8
-2
@@ -22,8 +22,9 @@ the USD amount is exactly amount x rate, that the policy shown hashes to the one
|
||||
the inputs and was ALLOW, and, with the chain facts, that the transaction is this payment (from, to, value, block, status).
|
||||
|
||||
```
|
||||
node proba-risc.mjs # 22 rows, no chain: the verdicts under a policy, a receipt verified, nine forged ones refused by name
|
||||
node proba-risc.mjs --control-negativ # 8 plantings on copies of risc.mjs and chitanta.mjs; each forged fixture must then be accepted
|
||||
node proba-risc.mjs # 23 rows, no chain: the verdicts under a policy, a receipt verified, nine forged ones refused by name,
|
||||
# a malformed payment refused by name (a verdict, not an exception)
|
||||
node proba-risc.mjs --control-negativ # 10 plantings on copies of risc.mjs and chitanta.mjs; each forged fixture must then be accepted
|
||||
AERE_TESTNET_KEY_FILE=<key> AERE_ETHERS_DIR=<dir with node_modules/ethers> node proba-plata-28001.mjs # the flow on testnet 28001
|
||||
node verifica-chitanta.mjs dovezi/chitanta-28001-<date>.json --rpc https://testnet-rpc.aere.network --verify-proof <verify-proof.mjs>
|
||||
```
|
||||
@@ -34,6 +35,11 @@ post-quantum certified anchor; a payment of 1.50 USD refused above the per-payme
|
||||
in the window refused above the count; the receipt forged (amount changed) INVALID; a looser policy shown under the receipt's policy
|
||||
hash INVALID. The public reader (`verifica-chitanta.mjs`) needs only Node.js: the chain is read by plain JSON-RPC.
|
||||
|
||||
Every refusal names its rule: `rules` on a risk verdict (form, asset, counterparty, rate, limit, window; outside the hashed body, so
|
||||
the hash of a verdict already issued is unchanged), `reguli` on a receipt verdict (binding, amount, policy, risk, chain). The rate is a
|
||||
decimal string (a JSON number is refused, not rounded), and a history entry the engine cannot count is refused, not left out of the
|
||||
window. The conformance suite (`conformance/`) holds a vector for each of these rules and runs any implementation against them.
|
||||
|
||||
## What it is not, and what is not measured
|
||||
|
||||
- **Not KYC, not AML, not sanctions screening.** The policy's refused counterparties are addresses this house measured as sinks on
|
||||
|
||||
Reference in new issue
Block a user