1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
#![feature(never_type)]

pub mod engine_state;
pub mod execution;
pub mod resolvers;
pub mod runtime;
pub mod runtime_context;
pub(crate) mod tracking_copy;

use std::collections::BTreeMap;

use types::Key;

pub const ADDRESS_LENGTH: usize = 32;
pub const DEPLOY_HASH_LENGTH: usize = 32;

pub type Address = [u8; ADDRESS_LENGTH];

pub type DeployHash = [u8; DEPLOY_HASH_LENGTH];

type KnownKeys = BTreeMap<String, Key>;