Skip to content

Commit 7833f8c

Browse files
committed
pss: Moved crypto to own package.
Distilled whisper message structure and encryption to default crypto implementation. Added Topic to PssMsg Simplified PssMsg Payload to []byte
1 parent 7826765 commit 7833f8c

File tree

10 files changed

+765
-733
lines changed

10 files changed

+765
-733
lines changed

pss/client/client_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ import (
2121
"context"
2222
"flag"
2323
"fmt"
24+
"github.com/ethersphere/swarm/pss/crypto"
2425
"math/rand"
2526
"os"
2627
"testing"
@@ -48,7 +49,7 @@ type protoCtrl struct {
4849
var (
4950
debugdebugflag = flag.Bool("vv", false, "veryverbose")
5051
debugflag = flag.Bool("v", false, "verbose")
51-
cryptoUtils pss.CryptoUtils
52+
cryptoUtils crypto.CryptoUtils
5253
// custom logging
5354
psslogmain log.Logger
5455
pssprotocols map[string]*protoCtrl
@@ -76,7 +77,7 @@ func init() {
7677
h := log.CallerFileHandler(hf)
7778
log.Root().SetHandler(h)
7879

79-
cryptoUtils = pss.NewCryptoUtils()
80+
cryptoUtils = crypto.NewCryptoUtils()
8081

8182
pssprotocols = make(map[string]*protoCtrl)
8283
}

pss/crypto.go

Lines changed: 0 additions & 293 deletions
This file was deleted.

0 commit comments

Comments
 (0)