[][src]Crate tari_crypto

Modules

commitment
common
keys

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.

macros
musig
range_proof
ristretto
signatures

Digital Signature module This module defines generic traits for handling the digital signature operations, agnostic of the underlying elliptic curve implementation

Enums

ByteArrayError
HexError

Traits

ByteArray

Many of the types in this crate are just large numbers (256 bit usually). This trait provides the common functionality for types like secret keys, signatures, commitments etc. to be converted to and from byte arrays and hexadecimal formats.

Hashable

This trait is used to describe how an object should be hashed

Hex

Any object implementing this trait has the ability to represent itself as a hexadecimal string and convert from it.

Functions

from_hex

Decode a hex string into bytes.

serialize_to_hex
to_hex

Encode the provided bytes into a hex string

to_hex_multiple

Encode the provided vector of bytes into a hex string