runx-runtime 0.6.19

Native Rust runtime for local runx execution, adapters, harness replay, receipts, and sandboxing.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use runx_contracts::{ReceiptIssuer, ReceiptIssuerType};

pub(crate) fn local_runtime_issuer() -> ReceiptIssuer {
    local_issuer("runtime-skeleton", "sha256:runtime-skeleton-public")
}

fn local_issuer(kid: &str, public_key_sha256: &str) -> ReceiptIssuer {
    ReceiptIssuer {
        issuer_type: ReceiptIssuerType::Local,
        kid: kid.to_owned().into(),
        public_key_sha256: public_key_sha256.to_owned().into(),
    }
}