Skip to content
This repository was archived by the owner on Dec 28, 2022. It is now read-only.
This repository was archived by the owner on Dec 28, 2022. It is now read-only.

FEAT > Middleware DI for custom hooks/handlers #73

Description

@4x4notfound

Wondering if hypercore can or thinking about supporting middleware for use cases like auth. For example, a hook that checks a signature before accepting a mutation or returning a value.

This is great if you had a node that tries to mutate logs, kv, etc without the permission to do so. Other nodes on the network should be able to check signatures in those messages before accepting.

Blacklisting peers would also be a nice feature for repeat offenders.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions