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
4 changes: 2 additions & 2 deletions pkg/crypto/crypto.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,12 @@ func GenerateSecp256r1Key() (*ecdsa.PrivateKey, error) {
return ecdsa.GenerateKey(elliptic.P256(), rand.Reader)
}

// EncodeSecp256k1PrivateKey encodes raw ECDSA private key.
// EncodeSecp256r1PrivateKey encodes raw ECDSA private key.
func EncodeSecp256r1PrivateKey(k *ecdsa.PrivateKey) ([]byte, error) {
return x509.MarshalECPrivateKey(k)
}

// DecodeSecp256k1PrivateKey decodes raw ECDSA private key.
// DecodeSecp256r1PrivateKey decodes raw ECDSA private key.
func DecodeSecp256r1PrivateKey(data []byte) (*ecdsa.PrivateKey, error) {
return x509.ParseECPrivateKey(data)
}
Expand Down
2 changes: 1 addition & 1 deletion pkg/file/pipeline/hashtrie/hashtrie.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ func (h *hashTrieWriter) writeToDataLevel(span, ref, key, data []byte) error {
return h.rParams.ChunkWrite(0, data, h.parityChunkFn)
}

// wrapLevel wraps an existing level and writes the resulting hash to the following level
// wrapFullLevel wraps an existing level and writes the resulting hash to the following level
// then truncates the current level data by shifting the cursors.
// Steps are performed in the following order:
// - take all of the data in the current level
Expand Down
2 changes: 1 addition & 1 deletion pkg/p2p/libp2p/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ func (r *peerRegistry) Exists(overlay swarm.Address) (found bool) {
return found
}

// Disconnect removes the peer from registry in disconnect.
// Disconnected removes the peer from registry in disconnect.
// peerRegistry has to be set by network.Network.Notify().
func (r *peerRegistry) Disconnected(_ network.Network, c network.Conn) {
peerID := c.RemotePeer()
Expand Down
Loading