keygen

package module
v0.1.1-0...-7b7dba5 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2021 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Combine

func Combine(s0, s1, s2 *string) (string, error)

func Tier

func Tier(p ob.AzimuthPoint) string

Types

type Bitcoin

type Bitcoin struct {
	Type           string
	Seed           string
	Keys           BitcoinKeys
	DerivationPath string
}

type BitcoinKeys

type BitcoinKeys struct {
	Xpub, Xprv string
}

type Generator

type Generator struct {
	Name, Version string
}

type KeyPair

type KeyPair struct {
	Private, Public string
}

type Keys

type Keys struct {
	Public, Private, Chain, Address string
}

type Meta

type Meta struct {
	Generator  Generator
	Spec       string
	Ship       uint32
	Patp       string
	Tier       string
	Passphrase string
}

type Network

type Network struct {
	Type string
	Seed string
	Keys NetworkKeys
}

type NetworkKeys

type NetworkKeys struct {
	Crypt, Auth KeyPair
}

type Node

type Node struct {
	Type           string
	Seed           string
	Keys           Keys
	DerivationPath string
}

type Wallet

type Wallet struct {
	Meta           Meta
	Ticket         string
	Shards         []string
	Ownership      Node
	Transfer       Node
	Spawn          *Node
	Voting         *Node
	Management     Node
	Network        *Network
	BitcoinTestnet Bitcoin
	BitcoinMainnet Bitcoin
}

func GenerateWallet

func GenerateWallet(
	ticket string,
	ship uint32,
	passphrase string,
	revision uint,
	boot bool,
) Wallet

func (*Wallet) UnmarshalJSON

func (w *Wallet) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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