Crate ave_common

Crate ave_common 

Source
Expand description

§Ave Common

Common types and utilities for Ave without heavy dependencies.

This crate re-exports essential types needed for working with Ave, such as identity and cryptography, without pulling in heavy dependencies like wasmtime that don’t compile on all architectures.

§Usage

use ave_common::{
    identity::{KeyPair, Signature, KeyPairAlgorithm},
    ValueWrapper,
};

// Create a new keypair
let keypair = KeyPair::generate(KeyPairAlgorithm::Ed25519).unwrap();

// Sign some data
let data = b"Hello, Ave!";
let signature = Signature::new(data, &keypair).unwrap();

// Verify signature
assert!(signature.verify(data).is_ok());

// Use ValueWrapper
let value = ValueWrapper::default();

Re-exports§

pub use error::Error;
pub use schematype::SchemaType;
pub use namespace::Namespace;
pub use wrapper::ValueWrapper;
pub use ave_identity as identity;
pub use borsh;
pub use bridge::*;

Modules§

bridge
error
Error types for Ave Common
namespace
Namespace model.
request
schematype
wrapper