Modules§
- ack_
verify - Common acknowledgement verification helper shared by acknowledgement processors.
- errors
- generator 🔒
- params 🔒
- reconstructor 🔒
- traits 🔒
- types 🔒
Structs§
- Encrypted
Partial SsaShare - Contains an encrypted partial Session Stealth Address (SSA) share.
- Generated
Share - Contains a generated share from a specific previously committed SSA.
- Partial
SsaShare - Share of a polynomial used to reconstruct a portion of the Session Stealth Address (SSA).
- PixParams
- Everything about PIX two nodes must agree on for a Session, and the only encoding of it: three dimensions and the curve suite they are dimensions of.
- Recovered
Ssa - Contains the already recovered secret scalar corresponding to a specific SSA.
- SsaCommitment
- Contains commitment to a specific SSA and corresponding verifier.
- SsaCommitment
Guard - Ownership of an Exit SSA commitment, released when dropped.
- SsaCommitment
Proof - Proof that whoever published an
SsaCommitmentknows its discrete logarithm. - SsaCommitment
State - Represents the current state of a specific SSA commitment on an Exit node.
- SsaGenerator
Config - Configuration for the
SsaShareGenerator. - SsaId
- Uniquely identifies a Session Stealth Address (SSA).
- SsaPart
Commitment - Commitment to the constant term of the polynomial with the given
SsaPolynomialId. - SsaPolynomial
Id - Uniquely identifies a polynomial that allows forming a Session Stealth Address (SSA) corresponding to a specific Session.
- SsaReconstructor
- Allows server-side reconstruction of SSAs.
- SsaReconstructor
Config - Configuration for the SSA reconstructor.
- SsaRecovery
Progress - Absolute recovery progress for a single SSA cycle.
- SsaShare
Generator - Generator for Session Stealth Address (SSA) shares distributed over Single Use Reply Blocks (SURBs).
- Tagged
Encrypted Partial SsaShare - This is a wrapped
EncryptedPartialSsaShareextracted from a specific SURB (presumably along with the associatedAcknowledgementChallenge).
Enums§
- Invalid
PixParams - Why a
PixParamsquadruple was rejected. - PixSuite
- The elliptic curve a PIX deployment instantiates
PixSpecover. - Share
Resolution - Possible resolutions of a received acknowledgement that might be bound to decrypt an encrypted PIX share.
Constants§
- AWAITING_
ACK_ ENTRY_ BYTES - Live heap one entry in the awaiting-acknowledgement buffer costs, in bytes.
- CONSTANT_
TERM_ COEFFICIENT - Coefficient index of the polynomial constant term.
- DEFAULT_
POLYS_ PER_ SSA - Number of polynomials per SSA.
- DEFAULT_
POLY_ THRESHOLD - Minimum number of shares needed to recover one polynomial of an SSA.
- DEFAULT_
SURPLUS_ SHARES - Shares emitted per polynomial beyond
DEFAULT_POLY_THRESHOLD, to absorb losses. - MAX_
DEFERRED_ ACKS_ PER_ CYCLE - Cap on deferred acknowledgements held across all polynomials of one cycle.
- MAX_
DEFERRED_ ACKS_ PER_ POLYNOMIAL - Cap on deferred acknowledgements held for a single polynomial.
- MAX_
POLYS_ PER_ SSA - Maximum number of polynomials per SSA supported by the
SsaReconstructor. - MAX_
POLY_ THRESHOLD - Maximum SSA polynomial threshold supported by the
SsaReconstructor. - MIN_
POLY_ THRESHOLD - Minimum SSA polynomial threshold.
- SHARE_
EMISSION_ WINDOW - Number of polynomials the generator emits shares for concurrently.
- SURPLUS_
LOSS_ 🔒TOLERANCE_ DIVISOR - Share loss a polynomial’s surplus is sized to absorb, as a reciprocal:
1/5is 20 %.
Traits§
- Cofactor
Group - This trait represents an element of a cryptographic group with a large prime-order subgroup and a comparatively-small cofactor.
- Entry
Share Generator - Exit
Acknowledgement Share Processor - Allows reconstruction of SSAs at the Exit node.
- Field
- This trait represents an element of a field.
- Group
- This trait represents an element of a cryptographic group.
- Group
Encoding - PixSpec
- Specification of the Protocol for Incentivization of eXits (PIX) instantiation.
Functions§
- default_
surplus_ for - Shares to emit per polynomial beyond
threshold, to absorb losses. - into_
completed_ 🔒share
Type Aliases§
- Coefficient
Index - Type used to index coefficients in a polynomial.
- Completed
Share 🔒 - PixDigest
- Digest used for hashing operations.
- PixGroup
- Elliptic curve point used to represent the polynomial coefficient commitments.
- PixGroup
Repr - Serializable representation of the polynomial coefficient commitments.
- PixScalar
- Finite field used to represent the polynomial coefficients.
- Polynomial
Index - Type used to index polynomials that reconstruct parts of a Session Stealth Addresses (SSA).
- RawSsa
Index - Raw zeroable SSA Index.
- SsaIndex
- Type used to index Session Stealth Addresses (SSA).
- SsaPoly
Index Prefix Size - Size of the
SsaIndexandPolynomialIndexprefix prepended to the encrypted share.