fluidex / circuits

GNU Affero General Public License v3.0
10 stars 5 forks source link

Order should only hash partly of its orderID #191

Closed noel2004 closed 3 years ago

noel2004 commented 3 years ago

Leaf of order tree has been calculated from the hash of a series of order fields include order id. Because of the on chain data encoded just n-bit of order id (n is the level of order tree), only the encoded part should be involved in order hashing.

The spot_trade gaget should still accept a full order id but only hash n-level bits of it.