key

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package used to provide functions and struct to create a Key

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNewKey

func GenerateNewKey() (string, error)

newKeyCmd function creates a new Key

Types

type Address

type Address [20]byte

Addres type

type Key

type Key struct {
	Address Address        `json:"address"`
	PubKey  crypto.PubKey  `json:"pub_key"`
	PrivKey crypto.PrivKey `json:"priv_key"`
}

Key struct

Jump to

Keyboard shortcuts

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