Current Orders
Last updated
Last updated
CoW Protocol orders are, in essence, just a "blob" of structured data. As you see here, they are a set of order fields that include all the required information for that order. For example, the sell token, buy token, amounts, pro-rated fee, etc.
This structured data is used to produce an order hash. CoW Protocol uses EIP-712 typed structured data hashing for this. The exact mechanism for how this isn't super important for understanding how CoW Protocol order work. What is important is just understanding that an order can be hashed into a 32-byte digest that is used for signing.
For EOAs (Externally Owned Account), which have a private key, we use ECDSA signing. This uses an elliptic curve, with some fancy math, to produce a signature: