signatory

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2021 License: Apache-2.0 Imports: 16 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateFakeAdsCertRecordForTesting

func GenerateFakeAdsCertRecordForTesting(adscertCallsign string) string

func GenerateFakeKeyPairFromDomainNameForTesting

func GenerateFakeKeyPairFromDomainNameForTesting(adscertCallsign string) ([32]byte, [32]byte)

func GenerateFakePrivateKeysForTesting

func GenerateFakePrivateKeysForTesting(adscertCallsign string) []string

func GetSignatures

func GetSignatures(response *api.AuthenticatedConnectionSignatureResponse) []string

func NewFakeKeyGeneratingDnsResolver

func NewFakeKeyGeneratingDnsResolver() adscertcounterparty.DNSResolver

func SetRequestInfo

func SetRequestInfo(requestInfo *api.RequestInfo, url string, body []byte) error

Types

type AuthenticatedConnectionsSignatory

type AuthenticatedConnectionsSignatory interface {
	SignAuthenticatedConnection(request *api.AuthenticatedConnectionSignatureRequest) (*api.AuthenticatedConnectionSignatureResponse, error)
	VerifyAuthenticatedConnection(request *api.AuthenticatedConnectionVerificationRequest) (*api.AuthenticatedConnectionVerificationResponse, error)
}

func NewLocalAuthenticatedConnectionsSignatory

func NewLocalAuthenticatedConnectionsSignatory(originCallsign string, reader io.Reader, clock clock.Clock, privateKeyBase64Strings []string, useFakeKeyGeneratingDNS bool) AuthenticatedConnectionsSignatory

Jump to

Keyboard shortcuts

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