Documentation
¶
Overview ¶
SPDX-License-Identifier: BUSL-1.1
Index ¶
- Constants
- func BindShare(share Share, data []byte) ([]byte, error)
- func ConvertToRTShare(share Share) ringtail.Share
- func GenerateKey(security int, reader interface{}) (SecretKey, PublicKey, error)
- func Hash(c Cert) [32]byte
- func KeyGen() (SecretKey, PublicKey, error)
- func QuickSign(share Share, blockID [32]byte) ([]byte, error)
- func QuickVerify(pk PublicKey, blockID [32]byte, sig []byte) bool
- type Aggregator
- type Cert
- type Certificate
- type Pool
- type PublicKey
- type SecretKey
- type Share
Constants ¶
View Source
const RT_L128 = 128
View Source
const (
Security = RT_L128 // 128-bit PQ security
)
Variables ¶
This section is empty.
Functions ¶
func ConvertToRTShare ¶
ConvertToRTShare converts a quasar.Share to ringtail.Share
func GenerateKey ¶
GenerateKey generates a new key pair
Types ¶
type Aggregator ¶
type Aggregator struct {
// contains filtered or unexported fields
}
Aggregator collects Ringtail shares → certificate once quorum reached.
func NewAggregator ¶
func NewAggregator(quorum int, d time.Duration) *Aggregator
func (*Aggregator) Certs ¶
func (a *Aggregator) Certs() <-chan Cert
Certs returns read-only channel of sealed certificates.
type Cert ¶
type Cert = Certificate
type Certificate ¶
type Certificate []byte
Click to show internal directories.
Click to hide internal directories.