Skip to main content

Module browser

Module browser 

Source
Expand description

Cross-platform Autonomi client logic and browser WASM bindings. Cross-platform Autonomi client logic and browser bindings.

The manifest, protocol, payment, and immutable-data modules are portable Rust shared by native clients and the browser WASM package. The browser-wasm feature additionally provides the web-sys WebRTC Direct host adapter. Higher-level browser integration is owned by the companion ant-client-browser-sdk project.

Re-exports§

pub use manifest::parse_browser_manifest;
pub use manifest::validate_browser_payment_network;
pub use manifest::BrowserManifest;
pub use manifest::BrowserManifestEndpoint;
pub use manifest::PublicFileDescriptor;
pub use manifest::BROWSER_MANIFEST_VERSION;
pub use payment::storage_payment_total;
pub use payment::verify_storage_quote;
pub use payment::VerifiedStorageQuote;

Modules§

manifest
Cross-platform validation for browser bootstrap and public-file metadata.
payment
Verification and payment planning shared by native and browser clients.
protocol
Browser-facing WebRTC Direct wire profile.

Structs§

BrowserChunkInfo
One native self-encryption chunk descriptor exposed to the browser.
BrowserEncryptedFile
Result of native public-file self-encryption for a browser upload.
BrowserPaymentNetwork
Public EVM identity transmitted by manifests and HELLO responses. RPC endpoints belong to the node operator or client application and never form part of this wire record.
BrowserQuoteArtifact
JSON-safe form of the native EVM payment quote returned over WebRTC.
BrowserRecord
One content-addressed record ready for network upload.
BrowserRecordInfo
Metadata for a content-addressed record staged outside WASM memory.
BrowserStagedFile
Result of streaming self-encryption whose record bytes live in browser storage.
WebRtcDirectEndpoint
Parsed, certificate-pinned direct endpoint.

Enums§

BrowserError
Browser immutable-data processing error.

Constants§

BROWSER_PROTOCOL_NAME
Protocol name authenticated by the node HELLO response.
BROWSER_PROTOCOL_VERSION
Current browser request/response protocol version.
MAX_BROWSER_FILE_BYTES
Maximum file size accepted by the browser API (1 GB decimal).
WEBRTC_DIRECT_DATA_CHANNEL
Ordered WebRTC DataChannel label used by Autonomi nodes.

Functions§

content_address
BLAKE3-address bytes using the same lowercase hexadecimal representation as the native chunk protocol.
decode_public_data_map
Decode and normalize a native public DataMap.
decrypt_public_file
Reconstruct a public file with native self-encryption after verifying every encrypted record against its DataMap destination address.
encrypt_public_file
Encrypt a complete public file with the native self_encryption 0.36 implementation and append its MessagePack DataMap as a public record.
parse_webrtc_direct_multiaddr
Parse and validate a signaling-free WebRTC Direct multiaddress.
verify_record
Verify raw record bytes against a lowercase or uppercase hexadecimal BLAKE3 address.