chainbound / bolt

Bolt: permissionless proposer commitments on Ethereum
https://chainbound.github.io/bolt-docs/
MIT License
49 stars 14 forks source link

Finalize `constraint` schema #86

Closed mempirate closed 3 months ago

mempirate commented 3 months ago

Context

The current constraint schema and API spec deviates a bit from what we originally had in mind in the following ways

Typing

We should also make the schema more future proof by supporting typed constraints and proofs. For inclusion proofs, this could look like:

{
    "type": 0, // type for inclusion proofs
    "data": {
        "generalized_indexes": [
            4,
            5
        ],
        "merkle_hashes": [
            "0x5097...",
            "0x932587..."
        ]
    }   
}