tiny.machine.ContractFingerprint
Defined in profile.wire.
The identity of the shared execution rules.
API (2)
Actions
Public operations.
Fields and members
Public fields and members.
Source
Source: lib/machine/src/profile/wire.zig:21
zig
/// The identity of the shared execution rules. A caller compares this fingerprint/// to know whether two profiles obey the same execution rules. The fingerprint is/// computed over the profile's encoded form with the backend field and the four/// claim fields zeroed, so the backend and the claims contribute nothing. A KVM/// profile and its portable counterpart therefore hold the same value, so a test/// can run both and compare what comes out. Restoring an instance from a checkpoint/// requires this fingerprint to equal the one recorded in the checkpoint's receipt/// basis. `hex` renders the digest as lowercase hexadecimal.pub const ContractFingerprint = struct { digest: [Sha256.digest_length]u8, pub fn hex(self: ContractFingerprint) [Sha256.digest_length * 2]u8 { return std.fmt.bytesToHex(self.digest, .lower); }};Source: lib/machine/src/root.zig:83
zig
pub const ContractFingerprint = profile.ContractFingerprint;Also reachable as
Audit
| Definitions | 2 |
|---|---|
| Public names | 6 |
| Members | 1 |
| Version | 26.7.0 |
| Revision | daab053ee433 |