Skip to content

Orderbook chain-commitment: simple OP_RETURN flow #49

@ariard

Description

@ariard

I looked more on the submitToMainstay flow.

For now, I think we can do something far simpler for the first releases.

Every 24 hours, take all the orderId from the latest 24 hours.

Concatenate them in a single data byte vector sorted by alphanumeric order.

Hash the vector with an hashing function (e.g SHA256 or SipHash).

Commit the 32-byte hash output in an OP_RETURN bitcoin tx output scriptpubkey.

Broadcast and confirm the bitcoin tx.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions