Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Distilling whisper message and envelope code into message.go #7

Open
wants to merge 13 commits into
base: master
Choose a base branch
from

Conversation

kortatu
Copy link

@kortatu kortatu commented Sep 5, 2019

Removed message.go file contained references to whisper message and envelope code. All that whisper code has been copied and distilled into swarm/pss/crypto as the default crypto implementation.
Crypto interface now is composed of 3 interfaces.

  • MessageCrypto (contains message wrapping unwrapping and validation)
  • BackendCrypto (contains Key manipulation, storage and conversion)
  • CryptoUtils (utilities for tests)

Sealing the message (poW and Nonce) has been completely removed.

We keep the whisper structure of encrypted message with the format:
flags+payloadSize+payload+padding+signature
but only inside the default crypto implementation. Now the payload of the whisper message is a simple []byte.

Topic has been moved from PssMsg.Payload to PssMsg.

@kortatu kortatu added the bug Something isn't working label Sep 5, 2019
@kortatu kortatu added help wanted Extra attention is needed pss refactor and removed bug Something isn't working labels Sep 5, 2019
pss/crypto.go Outdated Show resolved Hide resolved
pss/crypto.go Outdated Show resolved Hide resolved
pss/crypto.go Outdated Show resolved Hide resolved
Distilled whisper message structure and encryption to default crypto implementation.
Added Topic to PssMsg
Simplified PssMsg Payload to []byte
pss/notify/notify_test.go Outdated Show resolved Hide resolved
pss/types.go Outdated Show resolved Hide resolved
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed pss refactor
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants