Skip to content

V1 change: IEvidence.submitEvidence() when sender is not a party or a contract #2160

@jaybuidl

Description

@jaybuidl

Context

V1 Behaviour

IEvidence.submitEvidence() is implemented directly by the arbitrable contract. It also emits the Evidence event with:

  • _party = 0x00 when the sender is not a party according to ERC-1497 Evidence standard.
  • _party = msg.sender for some arbitrable protocol event (e.g. item submission/challenge).

Sources:

  • Curate v1 sets _party to the caller of the submit/challenge item function.
  • Same for PoH V1
  • IEvidence v1
  • ⚠️ There seems to be no actual example of Arbitrable contract emitting Evidence with _party = 0x00.

V2 Behaviour

IEvidence.submitEvidence() is implemented by a separate EvidenceModule which does not allow specifying _party to avoid impersonation and instead sets it to msg.sender.

Sources:

Questions

  • What is the impact?
  • Is this change acceptable?
  • If not, are we happy to allow submittingEvidence() on behalf of someone else? Or alternatively submitEvidenceNotFromParty()?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions