Versions in this module Expand all Collapse all v2 v2.3.0 Nov 8, 2024 v2.2.0 May 6, 2024 v2.1.0 Jun 9, 2023 v2.0.0 Jan 20, 2022 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 + Signature []byte + func ConfirmMix(sk ed25519.PrivateKey, mix BinaryRepresentable) *CM + func (cm *CM) ServerError() error + func (cm *CM) VerifySignature(pub ed25519.PublicKey) bool + type CT struct + Ciphertexts []*Sntrup4591761Ciphertext + Signature []byte + func Ciphertexts(ciphertexts []*Sntrup4591761Ciphertext, ses *Session) *CT + func (ct *CT) VerifySignature(pub ed25519.PublicKey) bool + type CTs struct + Ciphertexts []*Sntrup4591761Ciphertext + Err ServerError + func (cts *CTs) ServerError() error + type DC struct + DCNet []*dcnet.Vec + RevealSecrets bool + Run int + Signature []byte + func DCNet(dcs []*dcnet.Vec, s *Session) *DC + func (dc *DC) VerifySignature(pub ed25519.PublicKey) bool + type KE struct + Commitment []byte + ECDH *x25519.Public + PQPK *Sntrup4591761PublicKey + Run int + Signature []byte + func KeyExchange(kx *dcnet.KX, commitment []byte, ses *Session) *KE + func (ke *KE) VerifySignature(pub ed25519.PublicKey) bool + 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 + 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 + M [][]byte + SR []*big.Int + Seed []byte + func RevealSecrets(prngSeed []byte, sr []*big.Int, m [][]byte, s *Session) *RS + func (rs *RS) Commit(ses *Session) []byte + type SR struct + DCMix [][]*big.Int + Run int + Signature []byte + func SlotReserve(dcmix [][]*big.Int, s *Session) *SR + func (sr *SR) VerifySignature(pub ed25519.PublicKey) bool + type ServerError int + const ErrAbortedSession + const ErrInvalidUnmixed + const ErrTooFewPeers + func (e ServerError) Error() string + type Session struct + func NewSession(sid []byte, run int, sk ed25519.PrivateKey, vk []ed25519.PublicKey) *Session + type Signed interface + VerifySignature func(pub ed25519.PublicKey) bool + type Sntrup4591761Ciphertext = [sntrup4591761.CiphertextSize]byte + type Sntrup4591761PublicKey = [sntrup4591761.PublicKeySize]byte Other modules containing this package decred.org/cspp