Skip to content

Open Roles should use thread token to detect Marlowe input #13

@paluh

Description

@paluh

Currently we hard code Marlowe hash into the script which tightly couples the script to the main validator version. This approach has significant downsides:

  • The script cannot be reused between different versions of Marlowe validator.

  • We cannot use the hash of Open Role validator in an internal double spending white list of the Marlowe validator.

I propose:

  • Change to the logic of the script so it authorizes release of the locked role token solely based on the presence of the thread token in some of the tx inputs.

  • We can add slight optimization to the script. Let's accept optional redeemer which provides an index of the Marlowe input to speed up the check.

Metadata

Metadata

Assignees

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