Documentation ¶
Overview ¶
Package dnsclient is a client library for performing CT operations over DNS. The DNS mechanism is experimental and subject to change.
Index ¶
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) 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.