arcanum-core 0.1.2

Core traits, types, and primitives for the Arcanum cryptographic engine
docs.rs failed to build arcanum-core-0.1.2
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.

Arcanum Core

The foundational crate for the Arcanum cryptographic engine.

This crate provides:

  • Core traits for cryptographic operations
  • Error types and result handling
  • Secure memory types with automatic zeroization
  • Cryptographically secure random number generation
  • Key representations and type-safe wrappers
  • Constant-time comparison utilities

Design Principles

  1. Memory Safety: All sensitive data is zeroized on drop
  2. Type Safety: Distinct types prevent mixing incompatible keys
  3. Constant Time: Side-channel resistant operations by default
  4. Fail Secure: Errors don't leak sensitive information
  5. Composability: Traits enable algorithm-agnostic code

Example

use arcanum_core::prelude::*;

// Generate a secure random key
let key = SecretKey::<32>::generate();

// Constant-time comparison
assert!(key.ct_eq(&key));