config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeConfig

type NodeConfig struct {
	KEM             crypto.KemScheme
	HMACHash        hash.Hash
	KeySigCheckHash hash.Hash
}

NodeConfig used to represent the local and remote config

type SigConfig

type SigConfig struct {
	Data []byte
	Key  []byte
	// contains filtered or unexported fields
}

SigConfig used to represent a signature to present to the other node

func (*SigConfig) KeyHash

func (sc *SigConfig) KeyHash(hash hash.Hash) []byte

KeyHash generates from key data

type SigVerifierConfig

type SigVerifierConfig struct {
	SigDataHash   hash.Hash
	Scheme        crypto.SigScheme
	PublicKeyData []byte
	// contains filtered or unexported fields
}

SigVerifierConfig used to represent a verification key to check received singatures

func (*SigVerifierConfig) PublicKey

func (svc *SigVerifierConfig) PublicKey() crypto.SigPublicKey

PublicKey constructed from public key data, nil on failure LastError contains the error that caused a failure

func (*SigVerifierConfig) PublicKeyHash

func (svc *SigVerifierConfig) PublicKeyHash(hash hash.Hash) []byte

PublicKeyHash generates from public key data

Jump to

Keyboard shortcuts

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