Documentation
¶
Index ¶
- Constants
- func Aggregate(shares []Share) ([]byte, error)
- func CreateMockRingtailCertificate(msg []byte, shares []Share) ([]byte, error)
- func KeyGen(seed []byte) (sk, pk []byte, err error)
- func Sign(sk, msg []byte) ([]byte, error)
- func Verify(pk, msg, cert []byte) bool
- func VerifyShare(pk, msg, share []byte) bool
- type Precomp
- type Share
- type Signature
- type Verifier
- type Witness
Constants ¶
View Source
const ( SKSize = 96 // Secret key size (estimated) PKSize = 192 // Public key size (estimated) 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 CreateMockRingtailCertificate ¶ added in v1.14.2
CreateMockRingtailCertificate creates a mock certificate for testing
func VerifyShare ¶
VerifyShare verifies a signature share
Types ¶
type Precomp ¶
type Precomp []byte
Precomp is precomputed randomness
func Precompute ¶
Precompute generates precomputation data
type Share ¶
type Share []byte
Share is a signer-specific quick signature
func CreateMockRingtailShare ¶ added in v1.14.2
CreateMockRingtailShare creates a mock share for testing
type Signature ¶ added in v1.14.2
type Signature struct {
// contains filtered or unexported fields
}
Signature represents a Ringtail signature
type Verifier ¶ added in v1.14.2
type Verifier struct{}
Verifier verifies Ringtail signatures
func NewVerifier ¶ added in v1.14.2
func NewVerifier() *Verifier
NewVerifier creates a new Ringtail verifier
Click to show internal directories.
Click to hide internal directories.