publish

package
v3.0.1-beta Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Publish

func Publish(client *lbrycrd.Client, path, name, address string, details Details) (stream.Stream, *wire.MsgTx, *chainhash.Hash, error)

Types

type Account

type Account struct {
	AddressGenerator AddressGenerator  `json:"address_generator"`
	Certificates     map[string]string `json:"certificates"`
	Encrypted        bool              `json:"encrypted"`
	Ledger           string            `json:"ledger"`
	ModifiedOn       float64           `json:"modified_on"`
	Name             string            `json:"name"`
	PrivateKey       string            `json:"private_key"`
	PublicKey        string            `json:"public_key"`
	Seed             string            `json:"seed"`
}

type AddressGenParams

type AddressGenParams struct {
	Gap                   int `json:"gap"`
	MaximumUsesPerAddress int `json:"maximum_uses_per_address"`
}

type AddressGenerator

type AddressGenerator struct {
	Name      string           `json:"name"`
	Change    AddressGenParams `json:"change"` // should "change" and "receiving" be replaced with a map[string]AddressGenParams?
	Receiving AddressGenParams `json:"receiving"`
}

type Details

type Details struct {
	Title       string
	Description string
	Author      string
	Tags        []string
	ReleaseTime int64
}

type WalletFile

type WalletFile struct {
	Name        string      `json:"name"`
	Version     int         `json:"version"`
	Preferences WalletPrefs `json:"preferences"`
	Accounts    []Account   `json:"accounts"`
}

func LoadWallet

func LoadWallet(r io.Reader) (WalletFile, error)

type WalletPrefs

type WalletPrefs struct {
	Shared struct {
		Ts    float64 `json:"ts"`
		Value struct {
			Type  string `json:"type"`
			Value struct {
				AppWelcomeVersion int           `json:"app_welcome_version"`
				Blocked           []interface{} `json:"blocked"`
				Sharing3P         bool          `json:"sharing_3P"`
				Subscriptions     []string      `json:"subscriptions"`
				Tags              []string      `json:"tags"`
			} `json:"value"`
			Version string `json:"version"`
		} `json:"value"`
	} `json:"shared"`
}

Jump to

Keyboard shortcuts

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