Skip to content

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
Distilled whisper message structure and encryption to default crypto implementation.
Added Topic to PssMsg
Simplified PssMsg Payload to []byte
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