We need a way to automatically assign badges and group membership in Discourse based on a signed message from the syrius wallet. That way Pillars, Sentinels and Delegators can securely communicate in the forum.
We need a discourse plugin that takes 5 (maybe 6) fields. 4 the field below will be pasted into a text field by the user (under preferences). The 5th field will be a drop down with “Pillar, Sentinel, or Delegator” below in the User’s Profile
{
"message": "deeZNNutz.com",
"address": "z1qrztagl9rukq3ltdflnvg4zrvpfp84mydfejk9",
"publickey": "88c0ebc7de1aa0b6e1958b4ead1f43df15f2e92f3f876c564005ee38da9a77f0",
"signature": "24b719f5209bbf653d27445e8c298a4cd4f4f5a1c384e079de9945516d4b999a5acc57dca49a6778110176f409144db645243fc7f88550e0f42b93bb17ed190e"
}
The plugin will then interact with this API
The output will be either True or False.
If the user selects “Pillar” and returns True, a Pillar badge will be assigned along with the Pillar group. If the API returns False, Produce Error
If the user selects “Sentinel” and returns True, a Sentinel badge will be assigned along with the Sentinel group. If the API returns False, Produce Error
If the user selects “Delegator” and returns True, a Delegator badge will be assigned along with the Delegator group. If the API returns False, Produce Error. Ideally we can add a 6th field where a delegator indicates the pillar address they are delegating to. And the API can check that too. Not sure if this is possible.
Results will be stored in the DB. In addition, setup a job to run daily to retest the proof to ensure the user has not moved delegation or removed a pillar / sentinel. All fields should be encrypted in the DB.
I will fund and seek reimbursement through A Z.