unified

package
v1.17.6 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SimpleSigner

type SimpleSigner struct {
	// contains filtered or unexported fields
}

SimpleSigner provides unified signing

func NewSimpleSigner

func NewSimpleSigner() (*SimpleSigner, error)

NewSimpleSigner creates a signer with BLS and ML-DSA

func (*SimpleSigner) GetBLSPublicKey

func (s *SimpleSigner) GetBLSPublicKey() []byte

GetBLSPublicKey returns the BLS public key

func (*SimpleSigner) GetMLDSAPublicKey

func (s *SimpleSigner) GetMLDSAPublicKey() []byte

GetMLDSAPublicKey returns the ML-DSA public key

func (*SimpleSigner) SignBLS

func (s *SimpleSigner) SignBLS(message []byte) ([]byte, error)

SignBLS creates a BLS signature

func (*SimpleSigner) SignHybrid

func (s *SimpleSigner) SignHybrid(message []byte) ([]byte, error)

SignHybrid creates both BLS and ML-DSA signatures

func (*SimpleSigner) SignMLDSA

func (s *SimpleSigner) SignMLDSA(message []byte) ([]byte, error)

SignMLDSA creates an ML-DSA signature

func (*SimpleSigner) VerifyBLS

func (s *SimpleSigner) VerifyBLS(message, signature []byte) bool

VerifyBLS verifies a BLS signature

func (*SimpleSigner) VerifyHybrid

func (s *SimpleSigner) VerifyHybrid(message, signature []byte) bool

VerifyHybrid verifies both BLS and ML-DSA signatures

func (*SimpleSigner) VerifyMLDSA

func (s *SimpleSigner) VerifyMLDSA(message, signature []byte) bool

VerifyMLDSA verifies an ML-DSA signature

Jump to

Keyboard shortcuts

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