requests

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnexpectedNil = errors.New("unexpected nil")

Functions

func IsValidSessionDescriptor

func IsValidSessionDescriptor(session SessionDescriptor) bool

func ValidateDKG

func ValidateDKG(req DKGRequest, invalidSessionErr, localPartyErr, transportErr error) error

func ValidateSign

func ValidateSign(req SignRequest, invalidSessionErr, localPartyErr, keyIDErr, digestErr, transportErr error) error

Types

type DKGRequest

type DKGRequest struct {
	Session      SessionDescriptor
	LocalPartyID string
	HasTransport bool
}

type SessionDescriptor

type SessionDescriptor struct {
	SessionID string
	OrgID     string
	KeyID     string
	Parties   []string
	Threshold uint32
}

type SignRequest

type SignRequest struct {
	Session      SessionDescriptor
	LocalPartyID string
	Digest       []byte
	HasTransport bool
}

Jump to

Keyboard shortcuts

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