Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bchec/ciphering.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ func GenerateSharedSecret(privkey *PrivateKey, pubkey *PublicKey) []byte {

// Encrypt encrypts data for the target public key using AES-256-CBC. It also
// generates a private key (the pubkey of which is also in the output). The only
// supported curve is secp256k1. The `structure' that it encodes everything into
// supported curve is secp256k1. The `structure` that it encodes everything into
// is:
//
// struct {
Expand Down
2 changes: 1 addition & 1 deletion bchec/privkey.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import (
// package.
type PrivateKey ecdsa.PrivateKey

// PrivKeyFromBytes returns a private and public key for `curve' based on the
// PrivKeyFromBytes returns a private and public key for `curve` based on the
// private key passed as an argument as a byte slice.
func PrivKeyFromBytes(curve elliptic.Curve, pk []byte) (*PrivateKey,
*PublicKey) {
Expand Down
2 changes: 1 addition & 1 deletion bchec/signature.go
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ func parseSchnorrSig(sigStr []byte) (*Signature, error) {
}, nil
}

// ParseBERSignature parses an ECDSA signature in BER format for the curve type `curve'
// ParseBERSignature parses an ECDSA signature in BER format for the curve type `curve`
// into a Signature type, perfoming some basic sanity checks. If parsing
// according to the more strict DER format is needed, use ParseDERSignature.
func ParseBERSignature(sigStr []byte, curve elliptic.Curve) (*Signature, error) {
Expand Down
2 changes: 1 addition & 1 deletion server.go
Original file line number Diff line number Diff line change
Expand Up @@ -2460,7 +2460,7 @@ func (s *server) handleQuery(state *peerState, querymsg interface{}) {
// passed peer list. Targets are identified via usage of the passed
// `compareFunc`, which should return `true` if the passed peer is the target
// peer. This function returns true on success and false if the peer is unable
// to be located. If the peer is found, and the passed callback: `whenFound'
// to be located. If the peer is found, and the passed callback: `whenFound`
// isn't nil, we call it with the peer as the argument before it is removed
// from the peerList, and is disconnected from the server.
func disconnectPeer(peerList map[int32]*serverPeer, compareFunc func(*serverPeer) bool, whenFound func(*serverPeer)) bool {
Expand Down
Loading