types

package
v0.6.0-alpha-20...-5109cf1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RID

type RID []byte

RID represents a byte slice of whose size equals the security parameter. It can be easily XOR'ed with other RID. An empty slice is considered invalid.

func EmptyRID

func EmptyRID() RID

EmptyRID returns a zeroed-out RID with

func NewRID

func NewRID(r io.Reader) (RID, error)

func (RID) Copy

func (rid RID) Copy() RID

func (RID) Domain

func (RID) Domain() string

Domain implements hash.WriterToWithDomain.

func (RID) Validate

func (rid RID) Validate() error

Validate ensure that the RID is the correct length and is not identically 0.

func (RID) WriteTo

func (rid RID) WriteTo(w io.Writer) (int64, error)

WriteTo implements io.WriterTo interface.

func (RID) XOR

func (rid RID) XOR(otherRID RID)

XOR modifies the receiver by taking the XOR with the argument.

type SigningMessage

type SigningMessage []byte

SigningMessage wraps a byte slice representing a message to be signed.

func (SigningMessage) Domain

func (t SigningMessage) Domain() string

Domain implements hash.WriterToWithDomain.

func (SigningMessage) WriteTo

func (t SigningMessage) WriteTo(w io.Writer) (int64, error)

WriteTo implements io.WriterTo interface.

type ThresholdWrapper

type ThresholdWrapper uint32

ThresholdWrapper wraps a uint32 and enables writing with domain.

func (ThresholdWrapper) Domain

func (ThresholdWrapper) Domain() string

Domain implements hash.WriterToWithDomain.

func (ThresholdWrapper) WriteTo

func (t ThresholdWrapper) WriteTo(w io.Writer) (int64, error)

WriteTo implements io.WriterTo interface.

Jump to

Keyboard shortcuts

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