pub mod b64;
pub mod canonical;
pub mod hex;
pub mod event;
pub mod keys;
pub mod pow;
pub mod sign;
pub use canonical::{encode_body, push_u64_dec, CanonicalError};
#[cfg(feature = "json")]
pub use canonical::canonical_json;
pub use event::{Actor, AgentDecl, Attention, Event, EventBody, Kind, Navigation, Pow, Prop, Revenue};
pub use keys::{Neuron, Seed};
pub use pow::{solve, verify as pow_verify, target_from_difficulty};
pub use sign::{b64_encode, sign_body, verify as sig_verify, SignError};
pub type Particle = [u8; 32];
pub fn event_hash(body_bytes: &[u8]) -> Particle {
*hemera::hash(body_bytes).as_bytes()
}