account

package
v0.0.0-...-e4b14ae Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2018 License: LGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IDPrefix = []byte("ACID")
)

Functions

This section is empty.

Types

type Account

type Account struct {
	Sign    string
	Address string
}

type AccountManager

type AccountManager struct {
	// contains filtered or unexported fields
}

func NewAccountManager

func NewAccountManager(db database.Database) *AccountManager

func (AccountManager) CreateAccount

func (am AccountManager) CreateAccount() (Account, error)

func (AccountManager) GetCurrentNodeAccounts

func (am AccountManager) GetCurrentNodeAccounts(id []byte) ([]Account, error)

type CtrlProgram

type CtrlProgram struct {
	AccountID      string
	Address        string
	KeyIndex       uint64
	ControlProgram []byte
	Change         bool // Mark whether this control program is for UTXO change
}

func CreateP2PKH

func CreateP2PKH(xpub chainkd.XPub) (*CtrlProgram, []byte, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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