crypto

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

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

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

Variables

This section is empty.

Functions

This section is empty.

Types

type DomainSeparationTag

type DomainSeparationTag int

Specifies a domain for randomness generation.

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

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