Expand description

§MobileCoin SGX: Common Types

Project ChatLicenseTargetCrates.ioDocs StatusDependency Status

Idiomatic rust wrappers for common SGX types.

Macros§

  • Derive [UpperHex] and [LowerHex] from AsRef to render as a hexadecimal string.
  • Implement Debug and [Display] for enclave measurement types. Measurement types are usually stored/shared a lowercase hex strings with no byte delimiters and no leading ‘0x’ This implementation differs from other bytestruct types.
  • Implement [Display] for bytestruct types. bytestruct types should display as an uppercase, two-byte underscore-delimited hex string prefixed with a ‘0x’ Non-measurement bytestruct types derive Debug, so it is not implemented here.
  • Newtype wrapper for a primitive or struct type
  • This macro provides common byte-handling operations when the type being wrapped is a struct containing a single fixed-size array of bytes.
  • Newtype wrapper without a display implementation. TODO: Remove once every type has a Display impl.
  • Boilerplate macro to fill in any trait implementations required by an SgxWrapperType that don’t depend on the contents of the inner type.

Structs§

Enums§

  • A enumeration of SGX errors.
  • Errors seen when converting to, or from, rust for the SGX types
  • Key Name