crypto

package
v0.13.3 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0, MIT Imports: 5 Imported by: 423

Documentation

Index

Constants

View Source
const (
	SigTypeUnknown = SigType(math.MaxUint8)

	SigTypeSecp256k1 = SigType(iota)
	SigTypeBLS
	SigTypeDelegated
)
View Source
const SignatureMaxLength = 200

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainSeparationTag

type DomainSeparationTag int64

Specifies a domain for randomness generation.

const (
	DomainSeparationTag_TicketProduction DomainSeparationTag = 1 + iota
	DomainSeparationTag_ElectionProofProduction
	DomainSeparationTag_WinningPoStChallengeSeed
	DomainSeparationTag_WindowedPoStChallengeSeed
	DomainSeparationTag_SealRandomness
	DomainSeparationTag_InteractiveSealChallengeSeed
	DomainSeparationTag_WindowedPoStDeadlineAssignment
	DomainSeparationTag_MarketDealCronSeed
	DomainSeparationTag_PoStChainCommit
)

type SigType

type SigType byte

func (SigType) Name

func (t SigType) Name() (string, error)

type Signature

type Signature struct {
	Type SigType
	Data []byte
}

func (*Signature) Equals

func (s *Signature) Equals(o *Signature) bool

func (*Signature) MarshalBinary

func (s *Signature) MarshalBinary() ([]byte, error)

func (*Signature) MarshalCBOR

func (s *Signature) MarshalCBOR(w io.Writer) error

func (*Signature) UnmarshalBinary

func (s *Signature) UnmarshalBinary(bs []byte) error

func (*Signature) UnmarshalCBOR

func (s *Signature) UnmarshalCBOR(br io.Reader) error

Jump to

Keyboard shortcuts

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