diff --git a/README.md b/README.md index d2de2ef..10550bc 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,6 @@ First get all the dependencies. Below list contains both dependencies from the c ``` go get -u github.com/PeernetOfficial/core -go get -u github.com/gofrs/uuid go get -u github.com/btcsuite/btcd/btcec go get -u github.com/libp2p/go-reuseport go get -u lukechampine.com/blake3 diff --git a/Test_test.go b/Test_test.go index f507448..9d1a654 100644 --- a/Test_test.go +++ b/Test_test.go @@ -47,14 +47,14 @@ func TestEncryption1(t *testing.T) { return } - packet1 := packetRaw{Protocol: 0, Command: 1, Payload: []byte{1, 2, 3}} + packet1 := core.PacketRaw{Protocol: 0, Command: 1, Payload: []byte{1, 2, 3}} - raw1, err := packetEncrypt(privateKey, publicKey, &packet1) + raw1, err := core.PacketEncrypt(privateKey, publicKey, &packet1) if err != nil { return } - packet1d, _, err := packetDecrypt(raw1, publicKey) + packet1d, _, err := core.PacketDecrypt(raw1, publicKey) if err != nil { fmt.Printf("Error %s\n", err.Error()) return @@ -93,14 +93,14 @@ func TestEncryption2(t *testing.T) { return } - packet1 := packetRaw{Protocol: 0, Command: 0} + packet1 := core.PacketRaw{Protocol: 0, Command: 0} for n := 0; n < 1000; n++ { - raw1, err := packetEncrypt(privateKey, publicKey, &packet1) + raw1, err := core.PacketEncrypt(privateKey, publicKey, &packet1) if err != nil { return } - packet1d, _, err := packetDecrypt(raw1, publicKey) + packet1d, _, err := core.PacketDecrypt(raw1, publicKey) if err != nil { fmt.Printf("Error %s\n", err.Error()) return