noise: github.com/perlin-network/noise/handshake/ecdh Index | Files

package ecdh

import "github.com/perlin-network/noise/handshake/ecdh"

Index

Package Files

crypto.go mod.go msg.go

Constants

const DefaultHandshakeMessage = ".noise_handshake"

func New Uses

func New() *block

New returns an ECDH policy with sensible defaults.

By default, should a peer not complete the handshake protocol in 10 seconds, they will be disconnected. All handshake-related messages are appended with ECDSA signatures that are automatically verified.

type Handshake Uses

type Handshake struct {
    // contains filtered or unexported fields
}

func (Handshake) Read Uses

func (Handshake) Read(reader payload.Reader) (noise.Message, error)

func (Handshake) Write Uses

func (m Handshake) Write() []byte

Package ecdh imports 9 packages (graph) and is imported by 2 packages. Updated 2019-03-28. Refresh now. Tools for package owners.