Skip to main content

Module shared_keys

Module shared_keys 

Source
Expand description

Derivation of shared keys for SPHINX header

Structsยง

SharedKeys
Structure containing shared keys for peers using the Sphinx algorithm.

Constantsยง

HASH_KEY_PRP ๐Ÿ”’
HASH_KEY_REPLY_PRP ๐Ÿ”’
HASH_KEY_SPHINX_BLINDING ๐Ÿ”’
HASH_KEY_SPHINX_SECRET ๐Ÿ”’

Traitsยง

GroupElement
Generic additive abelian group element with an associated scalar type. It also comes with the associated Alpha value size. A group element is considered valid if it is not neutral or a torsion element of small order.
Scalar
Types representing a valid non-zero scalar of an additive abelian group.
SphinxSuite
Represents an instantiation of the Spinx protocol using the given EC group and corresponding public key object.

Type Aliasesยง

Alpha
Represents the Alpha value of a certain length in the Sphinx protocol The length of the alpha value is directly dependent on the group element.
SharedSecret
Represents a shared secret with a remote peer.