Module sui_types::crypto

source ·

Modules§

Structs§

Enums§

Constants§

Traits§

  • Trait impl’d by aggregated signatures in asymmetric cryptography.
  • Trait impl’d by signatures in asymmetric cryptography.
  • AuthoritySignInfoTrait is a trait used specifically for a few structs in messages.rs to template on whether the struct is signed by an authority. We want to limit how those structs can be instantiated on, hence the sealed trait. TODO: We could also add the aggregated signature as another impl of the trait. This will make CertifiedTransaction also an instance of the same struct.
  • Cryptographic material with an immediate conversion to/from Base64 strings.
  • Trait impl’d by a public / private key pair in asymmetric cryptography.
  • Something that we know how to hash and sign.
  • Trait impl’d by a key/keypair that can create signatures.
  • Trait impl’d by private (secret) keys in asymmetric cryptography.
  • Trait impl’d by concrete types that represent digital cryptographic material (keys).
  • Trait impl’d by public keys in asymmetric cryptography.

Functions§

Type Aliases§

Attribute Macros§

  • Annotating a trait or enum definition with an #[enum_dispatch] attribute will register it with the enum_dispatch library, allowing it to be used to generate impl blocks elsewhere.