Skip to content

Payload differs when ECIES is used with lightpush #2131

Open
@vpavlin

Description

@vpavlin

This is a bug report

Problem

When you use ECIES createEncoder from message-encryption package and publish via Lightpush, the message is encrypted for each peer, which results in different payload for each lighpush peer (because randomness is part of encryption https://github.com/waku-org/js-waku/blob/master/packages/message-encryption/src/crypto/ecies.ts#L128)

This is problematic because it wastes resources on encrypting multiple time and it also means differen message hash, so it is harder to deduplicate.

Proposed Solutions

Not sure:)

Notes

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    Status

    Icebox

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions