Skip to content

Validation of pubsub messages? #16

Open
@sim31

Description

@sim31

As I understand agregore browser enables pubsub subscriptions through fetch API.

I'm planning to use agregore for my project, but in addition to using pubsub it will eventually need to validate messages received through pubsub. I read that it is possible to tell libp2p which messages are valid so that invalid ones are not propagated. This would be useful for my use case. Searching around, I found that the way to do it in js is probably through datastore-pubsub.

I could probably add a dependency to js-datastore-pubsub for my webapp, but I see agregore already depends on ipfs-core, which depends on datastore-pubsub. And I was planning to use fetch API provided by agregore anyway.

Would it make sense for agregore to provide datastore-pubsub like API? Any advice for a solution in the short-term?

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions