dnscrypto

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 27, 2021 License: MIT Imports: 12 Imported by: 6

Documentation

Index

Constants

View Source
const (
	NamedRootMD5Sum      = "9cdf6a12db2dc558e299601015c37948"
	RootAnchorsSHA256Sum = "45336725f9126db810a59896ae93819de743c416262f79c4444042c92e520770"
)

Variables

View Source
var (
	ErrBadStatusCode    = errors.New("bad HTTP status code")
	ErrChecksumMismatch = errors.New("checksum does not match")
)

Functions

This section is empty.

Types

type DNSCrypto

type DNSCrypto interface {
	DownloadNamedRoot(ctx context.Context) (namedRoot []byte, err error)
	DownloadRootAnchorsXML(ctx context.Context) (rootAnchorsXML []byte, err error)
	ConvertRootAnchorsToRootKeys(rootAnchorsXML []byte) (rootKeys []string, err error)
	SetNamedRootHexMD5(namedRootHexMD5 string)
	SetRootAnchorsHexSHA256(rootAnchorsHexSHA256 string)
}

func New

func New(client *http.Client, namedRootHexMD5, rootAnchorsHexSHA256 string) DNSCrypto

Jump to

Keyboard shortcuts

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