authority: github.com/katzenpost/authority/voting/client Index | Files

package client

import "github.com/katzenpost/authority/voting/client"

Package client implements the Katzenpost voting authority client.

Index

Package Files

client.go

func New Uses

func New(cfg *Config) (pki.Client, error)

New constructs a new pki.Client instance.

type Client Uses

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

Client is a PKI client.

func (*Client) Deserialize Uses

func (c *Client) Deserialize(raw []byte) (*pki.Document, error)

Deserialize returns PKI document given the raw bytes.

func (*Client) Get Uses

func (c *Client) Get(ctx context.Context, epoch uint64) (*pki.Document, []byte, error)

Get returns the PKI document along with the raw serialized form for the provided epoch.

func (*Client) Post Uses

func (c *Client) Post(ctx context.Context, epoch uint64, signingKey *eddsa.PrivateKey, d *pki.MixDescriptor) error

Post posts the node's descriptor to the PKI for the provided epoch.

type Config Uses

type Config struct {
    // LogBackend is the `core/log` Backend instance to use for logging.
    LogBackend *log.Backend

    // Authorities is the set of Directory Authority servers.
    Authorities []*config.AuthorityPeer

    // DialContextFn is the optional alternative Dialer.DialContext function
    // to be used when creating outgoing network connections.
    DialContextFn func(ctx context.Context, network, address string) (net.Conn, error)
}

Config is a voting authority pki.Client instance.

Package client imports 17 packages (graph) and is imported by 5 packages. Updated 2019-04-14. Refresh now. Tools for package owners.