ccp_shared/
types.rs

1/*
2 * Copyright 2024 Fluence DAO
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 *     http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17mod core;
18mod cuid;
19mod difficulty;
20mod epoch_parameters;
21mod global_nonce;
22mod local_nonce;
23mod result_hash;
24
25use std::collections::HashMap;
26
27pub use core::CPUIdType;
28pub use core::LogicalCoreId;
29pub use core::PhysicalCoreId;
30pub use cuid::CUIDInner;
31pub use cuid::CUID;
32pub use difficulty::Difficulty;
33pub use difficulty::DifficultyInner;
34pub use epoch_parameters::EpochParameters;
35pub use global_nonce::GlobalNonce;
36pub use global_nonce::GlobalNonceInner;
37pub use local_nonce::LocalNonce;
38pub use local_nonce::LocalNonceInner;
39pub use result_hash::ResultHash;
40pub use result_hash::ResultHashInner;
41pub use result_hash::RANDOMX_RESULT_SIZE;
42
43pub type CUAllocation = HashMap<PhysicalCoreId, CUID>;