ringtail

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

View Source
const (
	SKSize      = 96    // Secret key size (estimated)
	PKSize      = 192   // Public key size (estimated)
	ShareSize   = 430   // Share size (≈ 430 B as per docs)
	CertSize    = 3072  // Certificate size (≈ 3 kB as per docs)
	PrecompSize = 40960 // Precomputation size (32-40 kB as per docs)
)

Constants - estimated sizes based on Ringtail implementation

Variables

This section is empty.

Functions

func Aggregate

func Aggregate(shares []Share) ([]byte, error)

Aggregate combines shares into a certificate

func HashMessage

func HashMessage(msg []byte) [32]byte

HashMessage hashes a message to 32 bytes for signing

func KeyGen

func KeyGen(seed []byte) ([]byte, []byte, error)

KeyGen generates a new key pair

func Verify

func Verify(pk []byte, msg []byte, cert []byte) bool

Verify verifies a certificate

func VerifyHash

func VerifyHash(pk []byte, hash [32]byte, cert []byte) bool

VerifyHash verifies a certificate with a pre-hashed message

func VerifyShare

func VerifyShare(pk []byte, msg []byte, share Share) bool

VerifyShare verifies a signature share

func VerifyShareHash

func VerifyShareHash(pk []byte, hash [32]byte, share Share) bool

VerifyShareHash verifies a share with a pre-hashed message

Types

type Precomp

type Precomp = ringtail.Precomp

Types

func Precompute

func Precompute(sk []byte) (Precomp, error)

Precompute generates precomputation data

type Share

type Share = ringtail.Share

Types

func QuickSign

func QuickSign(pre Precomp, msg []byte) (Share, error)

QuickSign creates a signature share using precomputation

func QuickSignHash

func QuickSignHash(pre Precomp, hash [32]byte) (Share, error)

QuickSignHash signs a pre-hashed message

func Sign

func Sign(sk []byte, msg []byte) (Share, error)

Sign creates a signature share without precomputation

func SignHash

func SignHash(sk []byte, hash [32]byte) (Share, error)

SignHash signs a pre-hashed message

Jump to

Keyboard shortcuts

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