agent-pay 0.1.0

L402 + DID-signed invoices: agent-to-agent Lightning payments (Rust port of @p-vbordei/agent-pay)
Documentation
//! agent-pay - L402 + DID-signed invoices for agent-to-agent Lightning payments.
//!
//! Rust port of [`@p-vbordei/agent-pay`](https://github.com/p-vbordei/agent-pay).
//! Passes the same conformance vectors (C1-missing, C1-bad-sig, C2, C3, C4).

pub mod bolt11;
pub mod client;
pub mod envelope;
pub mod error;
pub mod jcs;
pub mod jws;
pub mod keys;
pub mod lightning;
pub mod lnd_rest;
pub mod memory_node;
pub mod replay;
pub mod server;
pub mod token;

pub const VERSION: &str = "agent-pay/0.1";

pub use bolt11::{parse_invoice, ParsedInvoice};
pub use client::{fetch_with_l402, FetchFn, FetchOptions, FetchResponse};
pub use envelope::{
    sign_invoice_envelope, sign_receipt, verify_invoice_envelope, verify_receipt, InvoiceEnvelope,
    ReceiptEnvelope, SignInvoiceOpts, SignReceiptOpts,
};
pub use error::Error;
pub use jcs::{canonical_json, jcs_hash};
pub use jws::{sign_compact, verify_compact, ResolveKey};
pub use keys::{
    did_key_from_public_key, ed25519_sign, ed25519_verify, generate_key_pair,
    public_key_from_did_key, verification_method_id, KeyPair,
};
pub use lightning::{Invoice, InvoiceCreateRequest, InvoiceLookup, LightningNode, PaymentResult};
pub use memory_node::{MemoryLedger, MemoryNode};
pub use replay::ReplayCache;
pub use server::{InnerHandler, Paywall, PaywallOptions, PaywallResponse};
pub use token::{issue_token, verify_token, TokenPayload};