1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! actr-pack -- .actr package format
//!
//! Provides reading, writing, signing and verification of .actr ZIP STORE packages.
//!
//! ## Package structure
//!
//! ```text
//! {mfr}-{name}-{version}-{target}.actr
//! +-- manifest.toml # manifest (TOML, signed payload)
//! +-- manifest.sig # Ed25519 signature (64 bytes raw)
//! +-- manifest.lock.toml # dependency lock (optional)
//! +-- bin/actor.wasm # binary (STORE mode, uncompressed)
//! +-- proto/*.proto # exported proto files (optional)
//! ```
//!
//! ## Signing chain
//!
//! ```text
//! binary bytes -> SHA-256 -> manifest.toml[binary.hash]
//! |
//! manifest.toml bytes -> Ed25519 sign -> manifest.sig
//! ```
pub use PackError;
pub use ;
pub use ;
pub use ;
pub use ;
/// Compute deterministic key_id from Ed25519 public key bytes.
///
/// Algorithm: `"mfr-" + hex(sha256(public_key_bytes))[..16]`
///
/// This MUST match the server-side implementation in `actrix-mfr::crypto::compute_key_id`.