blsverifier

package module
v0.0.0-...-fcb6809 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MessageSize = 32
)

Variables

This section is empty.

Functions

func AggregatePublicKeys

func AggregatePublicKeys(publicKeys [][]byte) (bls.PublicKey, error)

func CustomQuerier

func CustomQuerier() func(sdk.Context, json.RawMessage) ([]byte, error)

func VerifySignature

func VerifySignature(signature []byte, message [32]byte, publicKeys [][]byte) (bool, error)

Types

type CustomQuery

type CustomQuery struct {
	AggregateVerify *QueryAggregateVerify `json:"aggregate_verify,omitempty"`
	Aggregate       *QueryAggregate       `json:"aggregate,omitempty"`
}

type QueryAggregate

type QueryAggregate struct {
	PublicKeys [][]byte `json:"public_keys"`
}

type QueryAggregateVerify

type QueryAggregateVerify struct {
	PublicKeys [][]byte `json:"public_keys"`
	Signature  []byte   `json:"signature"`
	Message    []byte   `json:"message"`
}

Jump to

Keyboard shortcuts

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