Module tari_crypto::keys[][src]

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

DiffieHellmanSharedSecret

This trait provides a common mechanism to calculate a shared secret using the private and public key of two parties

PublicKey

A trait specifying common behaviour for representing PublicKeys. Specific elliptic curve implementations need to implement this trait for them to be used in Tari.

SecretKey

A trait specifying common behaviour for representing SecretKeys. Specific elliptic curve implementations need to implement this trait for them to be used in Tari.