Versions in this module Expand all Collapse all v0 v0.2.1 Jan 29, 2020 Changes in this version + type BR struct + Err ServerError + MessageCounts []int + Sid []byte + Vk []ed25519.PublicKey + func BeginRun(vk []ed25519.PublicKey, mixes []int, sid []byte) *BR + func (br *BR) ServerError() error + type BinaryRepresentable interface + type CM struct + Err ServerError + Mix BinaryRepresentable + RevealSecrets bool + func ConfirmMix(mix BinaryRepresentable) *CM + func (cm *CM) ServerError() error + type DC struct + DCNet []*dcnet.Vec + RevealSecrets bool + Run int + func DCNet(dcs []*dcnet.Vec, s *Session) *DC + type KE struct + Commitment []byte + ECDH []*x25519.Public + Run int + func KeyExchange(ecdh []*x25519.Public, commitment []byte, ses *Session) *KE + type KEs struct + Err ServerError + KEs []*KE + func (kes *KEs) ServerError() error + type PR struct + Identity ed25519.PublicKey + MessageCount int + PairCommitment []byte + Signature []byte + Unmixed []byte + func PairRequest(pk ed25519.PublicKey, sk ed25519.PrivateKey, commitment, unmixed []byte, ...) *PR + func (pr *PR) VerifySignature(pub ed25519.PublicKey) bool + func (pr *PR) WriteSigned(w io.Writer) + type RM struct + Err ServerError + RevealSecrets bool + Roots []*big.Int + Run int + func RecoveredMessages(roots []*big.Int, s *Session) *RM + func (rm *RM) ServerError() error + type RS struct + ECDH []*x25519.Scalar + M [][]byte + SR []*big.Int + func RevealSecrets(ecdh []*x25519.KX, sr []*big.Int, m [][]byte) *RS + func (rs *RS) Commit(ses *Session) []byte + type SR struct + DCMix [][]*big.Int + Run int + func SlotReserve(dcmix [][]*big.Int, s *Session) *SR + type ServerError int + const ErrAbortedSession + const ErrInvalidUnmixed + func (e ServerError) Error() string + type Session struct + func NewSession(sid []byte, run int, vk []ed25519.PublicKey) *Session + type Signed interface + VerifySignature func(pub ed25519.PublicKey) bool