zelcrypto

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Standalone library to generate Zelcash addresses

Index

Constants

This section is empty.

Variables

View Source
var SecretKeyPrefix = Prefix{0xEF}

Functions

This section is empty.

Types

type NetworkId

type NetworkId [2]byte
var MainnnetId NetworkId = NetworkId{0x1C, 0xB8}
var TestnetId NetworkId = NetworkId{0x1D, 0x25}

type Prefix

type Prefix [1]byte

type ZelAddress

type ZelAddress struct {
	Value      string `json:"value"`
	PublicKey  string `json:"publicKey"`
	PrivateKey string `json:"privateKey"`
}

type ZelWallet

type ZelWallet struct {
	Passphrase string       `json:"passphrase"`
	HexSeed    string       `json:"hexSeed"`
	Addresses  []ZelAddress `json:"addresses"`
	RequestId  string       `json:"requestId"`
}

func CreateWallet

func CreateWallet(mainnet bool, numberOfAddressesToGenerate int) (ZelWallet, error)

func GetWalletFromPassphrase

func GetWalletFromPassphrase(mainnet bool, passphrase string, position uint32) (ZelWallet, error)

Jump to

Keyboard shortcuts

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