Skip to content

Commit

Permalink
further edits
Browse files Browse the repository at this point in the history
  • Loading branch information
joseph-fajen committed Jan 19, 2024
1 parent ec42bd5 commit 90573ac
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/platform-and-architecture/roles-in-marlowe.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,16 @@ These roles are uniquely identified using role tokens.

## Role tokens

Role tokens are used to identify roles to authorize transactions providing additional security and flexibility for your smart contracts. They are handled implicitly by Marlowe Runtime.
Participants hold role tokens in their wallets. Role tokens are used to identify roles to authorize transactions providing additional security and flexibility for your smart contracts. They are handled implicitly by Marlowe Runtime.

Each participant in a Marlowe contract has a role and each role has its own token. These tokens can be transferred between users in a peer-to-peer manner, allowing a participant to give their role to someone else.

There could be one or many tokens for a specific role.

Role tokens are distributed at contract initialization.

Participants who want to make a transaction include their role token as input. The token doesn’t stay with the script or go anywhere else; it simply passes through the script and returns to the participant, allowing them to authorize another transaction.

You can view these role tokens in your wallet under NFTs/Assets with a name reflective of the name specified for the role in the smart contract. (In Nami, Lace does not carry the name over from the DApp to the asset.)

When designating an address after launching the contract, the open roles feature is used.
Expand Down

0 comments on commit 90573ac

Please sign in to comment.