engine

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AttachQuasar

func AttachQuasar(e Engine, sk quasar.SecretKey, pk quasar.PublicKey, quorum int)

AttachQuasar attaches the Quasar quantum-safety overlay to a consensus engine

Types

type Engine

type Engine interface {
	MinRoundInterval() time.Duration
	OnProposal(func([32]byte) []byte)
	OnShare(func([32]byte, quasar.Share))
	InjectPQCert(quasar.Cert, [32]byte)
	SetValidator(func(*Header) bool)
	Height() uint64
}

Engine interface for Quasar integration

type Header struct {
	BlockID   [32]byte
	QuasarSig []byte
}

Header represents a block header

Directories

Path Synopsis
dag
vertex/vertexmock
Package vertexmock is a generated GoMock package.
Package vertexmock is a generated GoMock package.

Jump to

Keyboard shortcuts

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