Module tari_crypto::keys [−][src]
Expand description
General definition of public-private key pairs for use in Tari. The traits and structs defined here are used in the Tari domain logic layer exclusively (as opposed to any specific implementation of ECC curve). The idea being that we can swap out the underlying implementation without worrying too much about the impact on upstream code.
Traits
This trait provides a common mechanism to calculate a shared secret using the private and public key of two parties
A trait specifying common behaviour for representing PublicKey
s. Specific elliptic curve
implementations need to implement this trait for them to be used in Tari.
A trait specifying common behaviour for representing SecretKey
s. Specific elliptic curve
implementations need to implement this trait for them to be used in Tari.