crypto

package
v0.0.0-...-baa52f3 Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2017 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateKeys

func GenerateKeys() (privateKey *ecdsa.PrivateKey, privateKeyBytes []byte, publicKey *ecdsa.PublicKey, publicKeyBytes []byte, peerID string, err error)

GenerateKeys will generate the peer initial keys and ID.

func ParseKeys

func ParseKeys(privateKeyBytes []byte, publicKeyBytes []byte) (privateKey *ecdsa.PrivateKey, publicKey *ecdsa.PublicKey, err error)

ParseKeys will parse existing key buffers and return the appropiate data structures.

Types

This section is empty.

Directories

Path Synopsis
base58
Package base58 implements a human-friendly base58 encoding.
Package base58 implements a human-friendly base58 encoding.

Jump to

Keyboard shortcuts

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