Documentation ¶
Overview ¶
Package dnsclient is a client library for performing CT operations over DNS. The DNS mechanism is experimental and subject to change.
Index ¶
- type DNSClient
- func (c *DNSClient) BaseURI() string
- func (c *DNSClient) GetProofByHash(ctx context.Context, hash []byte, treeSize uint64) (*ct.GetProofByHashResponse, error)
- func (c *DNSClient) GetSTH(ctx context.Context) (*ct.SignedTreeHead, error)
- func (c *DNSClient) GetSTHConsistency(ctx context.Context, first, second uint64) ([][]byte, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DNSClient ¶
type DNSClient struct { Verifier *ct.SignatureVerifier // nil for no verification (e.g. no public key available) // contains filtered or unexported fields }
DNSClient represents a DNS client for a given CT Log instance
func New ¶
func New(base string, opts jsonclient.Options) (*DNSClient, error)
New constructs a new DNSClient instance. The base parameter gives the top-level domain name; opts can be used to provide a custom logger interface and a public key for signature verification.
func (*DNSClient) BaseURI ¶ added in v1.0.17
BaseURI returns a base dns: URI (cf. RFC 4501) that DNS queries will be built on.
func (*DNSClient) GetProofByHash ¶
func (c *DNSClient) GetProofByHash(ctx context.Context, hash []byte, treeSize uint64) (*ct.GetProofByHashResponse, error)
GetProofByHash returns an audit path for the hash of an SCT.
Click to show internal directories.
Click to hide internal directories.