transport

package
v0.0.0-...-8220f0d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 3, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package transport provides support for transport-layer certificates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cert

type Cert struct {
	Private string
	Public  string
	Type    CertType
}

Cert represents the public and private components of a PEM-encoded X.509 certificate.

func GenCert

func GenCert(t CertType, networkID string, nodeID uint64) (cert *Cert, err error)

GenCert creates a new cert for the given cert type. It uses crypto/rand's Reader behind the scenes as the source of randomness.

type CertType

type CertType uint8

CertType represents a type of transport layer certificate.

const (
	ECDSA CertType = iota + 1
)

The various types of transport-layer certificates that are currently supported.

func (CertType) String

func (c CertType) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL