#![allow(clippy::disallowed_methods)]
#![deny(
clippy::print_stdout,
clippy::print_stderr,
clippy::exit,
clippy::dbg_macro
)]
#![deny(rustdoc::broken_intra_doc_links)]
#![warn(clippy::too_many_lines, clippy::cognitive_complexity)]
#![warn(missing_docs)]
pub mod acdc;
pub mod capability;
mod crypto;
pub mod did_webs;
mod error;
mod events;
pub mod ipex;
pub mod kel_io;
mod keys;
pub mod ksn;
pub mod messages;
pub mod oobi;
#[cfg(feature = "quic")]
pub mod quic_transport;
mod said;
mod state;
pub mod tel;
pub mod tls_cert;
mod types;
mod validate;
pub mod witness;
mod cesr_encode;
#[cfg(feature = "cesr")]
mod codec;
#[cfg(feature = "cesr")]
mod event;
#[cfg(feature = "cesr")]
mod roundtrip;
#[cfg(feature = "cesr")]
mod stream;
#[cfg(feature = "cesr")]
mod version;
pub use acdc::{
ACDC_KERIPY_REVISION, ACDC_VERSION_PREFIX, Acdc, AcdcError, Attributes, CAPABILITY_SCHEMA,
compute_capability_schema_said, compute_schema_said,
};
pub use capability::{
Capability, CapabilityError, MANAGE_MEMBERS, ROTATE_KEYS, SIGN_COMMIT, SIGN_RELEASE, UsageCap,
};
pub use crypto::{compute_next_commitment, verify_commitment};
pub use did_webs::{DidWebsDocument, PublicKeyJwk, VerificationMethod};
pub use error::{KeriTranslationError, TelError};
pub use events::{
AgentScope, DipEvent, DipEventInit, DrtEvent, DrtEventInit, Event, IcpEvent, IcpEventInit,
IndexedSignature, IxnEvent, KERI_VERSION_PREFIX, KeriSequence, RotEvent, RotEventInit, Seal,
SignedEvent, SourceSeal, WireSignedDip, WireSignedRot, decode_agent_scope, decode_signed_dip,
decode_signed_rot, encode_agent_scope, encode_signed_dip, encode_signed_rot,
pair_kel_attachments, parse_attachment, parse_delegated_attachment, parse_source_seal_couples,
serialize_attachment, serialize_source_seal_couples,
};
pub use ipex::{IpexAdmit, IpexError, IpexGrant};
pub use keys::{KeriDecodeError, KeriPublicKey};
pub use ksn::{
KERI_KEY_STATE_VERSION, KSN_TYPE, KSN_VERSION, KeyStateNotice, KeyStateRecord, KsnError,
LatestEstablishmentEvent, SignedKsn,
};
pub use oobi::{
EndRoleReply, LocSchemeReply, Oobi, OobiEndpoint, OobiError, OobiResolution, Role,
ingest_oobi_stream,
};
#[cfg(feature = "quic")]
pub use quic_transport::{
QUIC_EXPORTER_CONTEXT, QUIC_EXPORTER_LABEL, QUIC_EXPORTER_LEN, QuicLoopbackOutcome,
QuicTransportError, quic_channel_binding, quic_client_config, quic_loopback_compose,
quic_server_config,
};
pub use said::{
Protocol, SAID_PLACEHOLDER, compute_said, compute_said_with_protocol, compute_section_said,
verify_said,
};
pub use state::{AnchorStatus, KeyState};
pub use tel::{
Iss, Rev, TEL_KERIPY_REVISION, TRAIT_NO_BACKERS, TelAnchorSeal, TelEvent, TelState, Vcp,
encode_nonce as encode_tel_nonce, to_wire_bytes as tel_to_wire_bytes, validate_tel,
};
pub use tls_cert::{
AUTHS_KERI_BINDING_OID, AuthsKeriBinding, DID_KERI_SCHEME, TlsCertError, TlsKeyAuthorization,
TlsKeyAuthorizer,
};
#[cfg(feature = "tls-cert")]
pub use tls_cert::{
IssuedCert, extract_aid_from_san, extract_binding, extract_did_keri_san, extract_spki_der,
issue_authorized_kel_rooted_cert, issue_authorized_kel_rooted_cert_with_key,
issue_kel_rooted_cert, issue_kel_rooted_cert_with_key, verify_authorized_against_key_state,
verify_binds_to_key_state,
};
pub use types::{
CesrKey, ConfigTrait, Fraction, FractionError, KeriTypeError, Prefix, Said, Threshold,
VersionString,
};
pub use validate::{
DelegatorKelLookup, KelPolicy, KelSealIndex, TrustedKel, ValidationError, WitnessedReplay,
compute_event_said, finalize_dip_event, finalize_drt_event, finalize_icp_event,
finalize_ixn_event, finalize_rot_event, find_seal_in_kel, parse_kel_json,
serialize_for_signing, validate_delegation, validate_for_append, validate_signed_event,
validate_signed_kel, verify_event_crypto, verify_event_said,
};
#[cfg(feature = "cesr")]
pub use codec::{CesrCodec, CesrV1Codec, DecodedPrimitive, DigestType, KeyType, SigType};
#[cfg(feature = "cesr")]
pub use event::{SerializedEvent, decode_cesr_key, serialize_for_cesr};
#[cfg(feature = "cesr")]
pub use roundtrip::{export_kel_as_cesr, import_cesr_to_events};
#[cfg(feature = "cesr")]
pub use stream::{AttachmentGroup, CesrStream, assemble_cesr_stream};
#[cfg(feature = "cesr")]
pub use version::compute_version_string;