Admin add solver
Solvers are users appointed by the Mostro administrator and are responsible for helping resolve disputes.
The administrator can add or remove them at any time.
The administrator can also solve disputes.
To add a solver the admin sends an order message to Mostro with action admin-add-solver.
Payload format
The payload uses text_message.
Supported formats:
npub1...-> register solver withread-writepermission (default)npub1...:read-> register solver withreadpermission onlynpub1...:read-write-> register solver withread-writepermissionnpub1...:write-> alias forread-write
Permission meanings:
read: solver can take disputes, receive dispute context, and communicate with users, but cannot executeadmin-settleoradmin-cancelread-write: solver can do everything above and can also executeadmin-settleandadmin-cancel
The default remains read-write for backward compatibility.
A node that runs Serbero, the dispute assistant, does not need this message for it: the operator configures its key, the node registers it as a read solver at startup, and announces it in the serbero tag of the info event.
Example: default read-write solver
[
{
"order": {
"version": 2,
"action": "admin-add-solver",
"payload": {
"text_message": "npub1qqq884wtp2jn96lqhqlnarl4kk3rmvrc9z2nmrvqujx3m4l2ea5qd5d0fq"
}
}
},
null,
null
]
Example: read-only solver
[
{
"order": {
"version": 2,
"action": "admin-add-solver",
"payload": {
"text_message": "npub1qqq884wtp2jn96lqhqlnarl4kk3rmvrc9z2nmrvqujx3m4l2ea5qd5d0fq:read"
}
}
},
null,
null
]
Mostro response
Mostro sends this message to the admin:
[
{
"order": {
"version": 2,
"action": "admin-add-solver",
"payload": null
}
},
null,
null
]