keypair

package
v0.10.7 Latest Latest
Warning

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

Go to latest
Published: May 24, 2019 License: ISC Imports: 6 Imported by: 0

Documentation

Overview

Bitmark keypair

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrKeyLength        = fault.InvalidError("key length is invalid")
	ErrNotFoundIdentity = fault.NotFoundError("identity name not found")
)

Functions

func AccountFromHexPublicKey

func AccountFromHexPublicKey(publicKey string, test bool) (*account.Account, error)

func MakeRawKeyPair

func MakeRawKeyPair(test bool) (*RawKeyPair, *KeyPair, error)

func MakeRawKeyPairFromSeed

func MakeRawKeyPairFromSeed(seed string, test bool) (*RawKeyPair, *KeyPair, error)

func NewSeed added in v0.4.9

func NewSeed(test bool) (string, error)

Types

type KeyPair

type KeyPair struct {
	Seed       string
	PublicKey  []byte
	PrivateKey []byte
}

type RawKeyPair

type RawKeyPair struct {
	Seed       string `json:"seed"`
	PublicKey  string `json:"public_key"`
	PrivateKey string `json:"private_key"`
}

Jump to

Keyboard shortcuts

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