Documentation ¶
Overview ¶
Package dialing provides functionality for Alpenhorn's dialing protocol.
Index ¶
- Constants
- type MixMessage
- type Mixer
- func (srv *Mixer) Bidirectional() bool
- func (srv *Mixer) GenerateNoise(settings mixnet.RoundSettings, myPos int) [][]byte
- func (srv *Mixer) HandleMessages(settings mixnet.RoundSettings, messages [][]byte) (interface{}, error)
- func (srv *Mixer) ParseServiceData(data []byte) (interface{}, error)
- func (srv *Mixer) SizeIncomingMessage() int
- func (srv *Mixer) SizeReplyMessage() int
- type ServiceData
Constants ¶
View Source
const DialingServiceDataVersion = 0
View Source
const (
// SizeToken is the number of bytes in a dialing token.
SizeToken = 32
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MixMessage ¶
func (*MixMessage) MarshalBinary ¶
func (e *MixMessage) MarshalBinary() ([]byte, error)
func (*MixMessage) UnmarshalBinary ¶
func (e *MixMessage) UnmarshalBinary(data []byte) error
type Mixer ¶
type Mixer struct { SigningKey ed25519.PrivateKey Laplace rand.Laplace // contains filtered or unexported fields }
func (*Mixer) Bidirectional ¶
func (*Mixer) GenerateNoise ¶
func (srv *Mixer) GenerateNoise(settings mixnet.RoundSettings, myPos int) [][]byte
func (*Mixer) HandleMessages ¶
func (srv *Mixer) HandleMessages(settings mixnet.RoundSettings, messages [][]byte) (interface{}, error)
func (*Mixer) ParseServiceData ¶
func (*Mixer) SizeIncomingMessage ¶
func (*Mixer) SizeReplyMessage ¶
type ServiceData ¶
func (ServiceData) Marshal ¶
func (d ServiceData) Marshal() []byte
func (*ServiceData) Unmarshal ¶
func (d *ServiceData) Unmarshal(data []byte) error
Click to show internal directories.
Click to hide internal directories.