Skip to content

Commit

Permalink
Fix typos from another reading.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnuxie committed Oct 2, 2024
1 parent a05c173 commit f82f4ec
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions proposals/4205-sha256-policy-entity.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,13 @@
Currently, moderation policies describe the entity they are targeting
by including a literal identifier in the `entity` field.

This is problematic for multiple reasons.
This is problematic for multiple reasons[^msc4204].

[^msc4204]: While this MSC is not dependant upon
[MSC4204](https://github.com/matrix-org/matrix-spec-proposals/pull/4204),
[MSC4204](https://github.com/matrix-org/matrix-spec-proposals/pull/4204)
provides a similar context for why hashing entities is desired.


#### Propagating abuse

Expand All @@ -18,17 +24,17 @@ into their mxids.
#### Identifying users before encountering them

Policies can be used as an address book to identify problematic users
who have not been encountered by
who have not been encountered yet.

For example, if `@yarrgh:example.com` is banned for `piracy`,
then it is obvious that `@yarrgh:example.com` could be a pirate.
Even if the reason was not provided with the policy.

## Proposal

We therefore propose a new field `hashes` to the top level of all
moderation policy events.
Embedded within this, we propose a simple `sha256` entity hash field.
We therefore propose a new optional field `hashes` to the top level of
all moderation policy events. Embedded within this, we propose a
simple `sha256` entity hash field.

```json
{
Expand All @@ -47,7 +53,6 @@ new policy, the tool will calculate the base64 encoded sha256
of their full mxid `@yarrgh:example.com` to
match against policies that provide an associated hash.


## Potential issues

None noted.
Expand Down

0 comments on commit f82f4ec

Please sign in to comment.