Fork btcec to remove external dependency. This significantly reduces the count of indirect modules (cuts it by half). Close #7

Update the other Go modules.
This commit is contained in:
Kleissner
2021-11-14 22:37:07 +01:00
parent a727f4d8b1
commit 9626fa8088
34 changed files with 3743 additions and 87 deletions

View File

@@ -7,7 +7,7 @@ Author: Peter Kleissner
package protocol
import (
"github.com/btcsuite/btcd/btcec"
"github.com/PeernetOfficial/core/btcec"
"lukechampine.com/blake3"
)

View File

@@ -14,7 +14,7 @@ import (
"time"
"unicode/utf8"
"github.com/btcsuite/btcd/btcec"
"github.com/PeernetOfficial/core/btcec"
)
// MessageResponse is the decoded response message.

View File

@@ -18,7 +18,7 @@ import (
"encoding/binary"
"errors"
"github.com/btcsuite/btcd/btcec"
"github.com/PeernetOfficial/core/btcec"
)
// MessageTransfer is the decoded transfer message.

View File

@@ -12,7 +12,7 @@ import (
"net"
"time"
"github.com/btcsuite/btcd/btcec"
"github.com/PeernetOfficial/core/btcec"
)
// MessageTraverse is the decoded traverse message.

View File

@@ -9,7 +9,7 @@ Intermediary between low-level packets and high-level interpretation.
package protocol
import (
"github.com/btcsuite/btcd/btcec"
"github.com/PeernetOfficial/core/btcec"
)
// ProtocolVersion is the current protocol version

View File

@@ -26,7 +26,7 @@ import (
"errors"
"math/rand"
"github.com/btcsuite/btcd/btcec"
"github.com/PeernetOfficial/core/btcec"
"golang.org/x/crypto/salsa20"
)

View File

@@ -27,7 +27,7 @@ import (
"sync/atomic"
"time"
"github.com/btcsuite/btcd/btcec"
"github.com/PeernetOfficial/core/btcec"
)
// SequenceManager stores all message sequence numbers that are valid at the moment

View File

@@ -5,7 +5,7 @@ import (
"fmt"
"testing"
"github.com/btcsuite/btcd/btcec"
"github.com/PeernetOfficial/core/btcec"
)
func TestMessageEncodingAnnouncement(t *testing.T) {