dojo icon indicating copy to clipboard operation
dojo copied to clipboard

Use nonce for off chain messages in Torii relay

Open Larkooo opened this issue 1 year ago • 2 comments

validate models for offchain messages for them to include a nonce which will prevent potential replay attacks that would use past signatures to rollback the state of message entity

Larkooo avatar Mar 12 '24 17:03 Larkooo

can i work in this?

andresmayorca avatar Mar 13 '24 21:03 andresmayorca

can i work in this?

you can refer to #1656 if you wanna contribute. we should ensure that models that are going to be used by offchain messages include a nonce field that is going to be signed with the new state of the off-chain message (included in the signed model typed data) and incremented whenever the state is updated

Larkooo avatar Mar 15 '24 04:03 Larkooo