Security key

Inside most Messages, there is an β€œaddress” field. This is the address for which the message applies (for which address to apply this aggregate, who posted that item…).

With a security key, you can delegate some rights to your messages to another account. You can interact with a message in two cases:

  • The sender == the person that posts the original message.

  • The owner of the message has a security key for your address.

Setup a security key

The only way to set up a security key is to send a special AGGREGATE message on the "security" channel.

Only the account itself can have the right to send an AGGREGATE message on the "security" channel, this feature can't be delegated at this moment.

The way to structure a security key:

  • Must be an object

  • The subkey has to be called `authorizations`

  • the authorizations subkey value is an array of objects as follows:

{'authorizations': [
    {
        'address': '<ADDRESS_TO_AUTHORIZE>',
        'types': ['AGGREGATE'],
        'post_types': ['chat'],
        'aggregate_keys': ['testkey', 'preferences'],
        'chains': ['ETH'],
        'channels': ['MYCHANNEL']
    }
]}

If some filter is set only messages that match the filter set (all options selected) will be accepted except for:

  • post_types only apply to POST Messages

  • aggregate_keys only apply to AGGREGATE Messages

Parameters

Last updated