privatetransactionmanager

package
v2.6.0+incompatible Latest Latest
Warning

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

Go to latest
Published: May 4, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunNode

func RunNode(socketPath string) error

Types

type Client

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

func NewClient

func NewClient(socketPath string) (*Client, error)

func (*Client) ReceivePayload

func (c *Client) ReceivePayload(key []byte) ([]byte, error)

func (*Client) SendPayload

func (c *Client) SendPayload(pl []byte, b64From string, b64To []string) ([]byte, error)

func (*Client) SendSignedPayload

func (c *Client) SendSignedPayload(signedPayload []byte, b64To []string) ([]byte, error)

func (*Client) StorePayload

func (c *Client) StorePayload(pl []byte, b64From string) ([]byte, error)

type Config

type Config struct {
	Socket  string `toml:"socket"`
	WorkDir string `toml:"workdir"`

	// Deprecated
	SocketPath string `toml:"socketPath"`
}

func LoadConfig

func LoadConfig(configPath string) (*Config, error)

type PrivateTransactionManager

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

func MustNew

func MustNew(path string) *PrivateTransactionManager

func New

func (*PrivateTransactionManager) Receive

func (g *PrivateTransactionManager) Receive(data []byte) ([]byte, error)

func (*PrivateTransactionManager) Send

func (g *PrivateTransactionManager) Send(data []byte, from string, to []string) (out []byte, err error)

func (*PrivateTransactionManager) SendSignedTx

func (g *PrivateTransactionManager) SendSignedTx(data []byte, to []string) (out []byte, err error)

func (*PrivateTransactionManager) StoreRaw

func (g *PrivateTransactionManager) StoreRaw(data []byte, from string) (out []byte, err error)

Jump to

Keyboard shortcuts

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