crypto

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ECDSASigner

type ECDSASigner ecdsa.PrivateKey

func (ECDSASigner) Sign

func (s ECDSASigner) Sign(message []byte) ([]byte, error)

type ECDSAVerifier

type ECDSAVerifier map[ShardPartyKey]ecdsa.PublicKey

func (ECDSAVerifier) VerifySignature

func (v ECDSAVerifier) VerifySignature(partyID types.PartyID, shardID types.ShardID, msg, sig []byte) error

type ShardPartyKey

type ShardPartyKey struct {
	Shard types.ShardID
	Party types.PartyID
}

func (*ShardPartyKey) ToString

func (k *ShardPartyKey) ToString() string

Jump to

Keyboard shortcuts

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