repo stringlengths 6 65 | file_url stringlengths 81 311 | file_path stringlengths 6 227 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:31:58 2026-01-04 20:25:31 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/tree/get_encrypt_key.rs | lib/src/tree/get_encrypt_key.rs | #[allow(unused_imports)]
use tracing::{debug, error, info, warn};
use crate::crypto::*;
use crate::error::*;
use crate::meta::*;
use crate::session::*;
use crate::transaction::*;
use super::*;
impl TreeAuthorityPlugin {
pub(super) fn get_encrypt_key(
&self,
meta: &Metadata,
confidentialit... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/tree/validator.rs | lib/src/tree/validator.rs | use error_chain::bail;
use std::sync::Arc;
#[allow(unused_imports)]
use tracing::{debug, error, info, warn};
use crate::error::*;
use crate::event::*;
use crate::meta::*;
use crate::spec::*;
use crate::transaction::*;
use crate::validator::*;
use super::*;
impl EventValidator for TreeAuthorityPlugin {
fn clone_v... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/tree/transformer.rs | lib/src/tree/transformer.rs | use bytes::Bytes;
use error_chain::bail;
#[allow(unused_imports)]
use tracing::{debug, error, info, warn};
use crate::error::*;
use crate::meta::*;
use crate::session::*;
use crate::transaction::*;
use crate::transform::*;
use super::*;
impl EventDataTransformer for TreeAuthorityPlugin {
fn clone_transformer(&se... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/tree/compute.rs | lib/src/tree/compute.rs | use error_chain::bail;
#[allow(unused_imports)]
use tracing::{debug, error, info, warn};
use crate::error::*;
use crate::meta::*;
use crate::transaction::*;
use super::*;
#[derive(Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord)]
pub(super) enum ComputePhase {
BeforeStore,
AfterStore,
}
impl TreeAuthorit... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/tree/plugin.rs | lib/src/tree/plugin.rs | use fxhash::FxHashMap;
use std::sync::Arc;
#[allow(unused_imports)]
use tracing::{debug, error, info, warn};
use crate::crypto::*;
use crate::error::*;
use crate::event::*;
use crate::header::*;
use crate::meta::*;
use crate::plugin::*;
use crate::signature::*;
use crate::sink::*;
use crate::spec::*;
use crate::transa... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/meta/read_option.rs | lib/src/meta/read_option.rs | use serde::{Deserialize, Serialize};
use crate::crypto::*;
/// Determines if the event record will be restricted so that
/// only a specific set of users can read the data. If it is
/// limited to a specific set of users they must all possess
/// the encryption key in their session when accessing these
/// data recor... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/meta/core.rs | lib/src/meta/core.rs | use crate::signature::MetaSignWith;
use serde::{Deserialize, Serialize};
use crate::crypto::*;
use crate::error::*;
use crate::header::*;
use crate::signature::MetaSignature;
use crate::time::*;
use super::*;
#[derive(Serialize, Deserialize, Debug, Clone)]
pub enum CoreMetadata {
None,
Data(PrimaryKey),
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/meta/write_option.rs | lib/src/meta/write_option.rs | use fxhash::FxHashSet;
use serde::{Deserialize, Serialize};
use crate::crypto::*;
/// Determines who is allowed to attach events records to this part of the
/// chain-of-trust key. Only users who have the `PrivateKey` in their session
/// will be able to write these records to the chain. The hash of the `PublicKey`
/... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/meta/meta_type.rs | lib/src/meta/meta_type.rs | use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct MetaType {
pub type_name: String,
}
impl std::fmt::Display for MetaType {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.type_name)
}
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/meta/delayed_upload.rs | lib/src/meta/delayed_upload.rs | use serde::{Deserialize, Serialize};
use crate::time::ChainTimestamp;
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct MetaDelayedUpload {
pub complete: bool,
pub from: ChainTimestamp,
pub to: ChainTimestamp,
}
impl std::fmt::Display for MetaDelayedUpload {
fn fmt(&self, f: &mut std::fmt::F... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/meta/mod.rs | lib/src/meta/mod.rs | mod authorization;
mod collection;
mod confidentiality;
mod core;
mod delayed_upload;
mod meta_type;
mod parent;
mod read_option;
mod write_option;
pub use self::core::*;
pub use authorization::*;
pub use collection::*;
pub use confidentiality::*;
pub use delayed_upload::*;
pub use meta_type::*;
pub use parent::*;
pub... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/meta/authorization.rs | lib/src/meta/authorization.rs | use serde::{Deserialize, Serialize};
use super::*;
#[derive(Serialize, Deserialize, Debug, Clone, Default, Hash, PartialEq, Eq)]
pub struct MetaAuthorization {
pub read: ReadOption,
pub write: WriteOption,
}
impl MetaAuthorization {
pub fn is_relevant(&self) -> bool {
self.read != ReadOption::Inh... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/meta/confidentiality.rs | lib/src/meta/confidentiality.rs | use serde::{Deserialize, Serialize};
use crate::crypto::*;
use super::*;
#[derive(Serialize, Deserialize, Debug, Clone)]
pub struct MetaConfidentiality {
pub hash: ShortHash,
#[serde(skip)]
pub _cache: Option<ReadOption>,
}
impl std::fmt::Display for MetaConfidentiality {
fn fmt(&self, f: &mut std::... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/meta/collection.rs | lib/src/meta/collection.rs | use crate::header::*;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Clone, Eq, PartialEq, Hash, PartialOrd, Ord)]
pub struct MetaCollection {
pub parent_id: PrimaryKey,
pub collection_id: u64,
}
impl std::fmt::Display for MetaCollection {
fn fmt(&self, f: &mut std::fmt::Form... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/src/meta/parent.rs | lib/src/meta/parent.rs | use serde::{Deserialize, Serialize};
use super::*;
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
pub struct MetaParent {
pub vec: MetaCollection,
}
impl std::fmt::Display for MetaParent {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.vec.pa... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/tests/trust-tree.rs | lib/tests/trust-tree.rs | #![cfg(any(feature = "enable_full"))]
#![allow(unused_imports)]
use ate::prelude::*;
use names::Generator;
use rust_decimal::prelude::*;
use serde::{Deserialize, Serialize};
use tokio::runtime::Runtime;
use tracing::{debug, error, info, warn};
#[derive(Debug, Serialize, Deserialize, Clone, Default)]
struct Car {
n... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/tests/rotate.rs | lib/tests/rotate.rs | #![cfg(any(feature = "enable_full"))]
#![allow(unused_imports)]
use ate::prelude::*;
#[cfg(feature = "enable_server")]
#[cfg(feature = "enable_rotate")]
#[test]
fn rotate_test() -> Result<(), AteError> {
ate::utils::bootstrap_test_env();
#[cfg(feature = "enable_mt")]
let rt = tokio::runtime::Builder::new_... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/tests/load.rs | lib/tests/load.rs | #![cfg(any(feature = "enable_server", feature = "enable_client"))]
use ate::prelude::*;
use serde::{Deserialize, Serialize};
use tracing::info;
#[derive(Debug, Serialize, Deserialize, Clone)]
struct MyTestObject {
firstname: String,
lastname: String,
data1: [u8; 32],
data2: [u8; 32],
data3: [u8; 32... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/examples/service-api.rs | lib/examples/service-api.rs | use serde::{Deserialize, Serialize};
use std::sync::Arc;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use ate::prelude::*;
#[derive(Clone, Serialize, Deserialize)]
struct Ping {
msg: String,
}
#[derive(Serialize, Deserialize)]
struct Pong {
msg: String,
}
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/examples/server-client.rs | lib/examples/server-client.rs | #![allow(unused_imports)]
use ate::prelude::*;
use serde::{Deserialize, Serialize};
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
#[cfg(not(feature = "enable_server"))]
fn main() {}
#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<(), AteError> {
ate::log_init(0, true... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/examples/hello-world.rs | lib/examples/hello-world.rs | use ate::prelude::*;
use serde::{Deserialize, Serialize};
#[derive(Clone, Serialize, Deserialize)]
struct World {
commandment: String,
}
#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<(), AteError> {
// The default configuration will store the redo log locally in the temporary folder
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/examples/bus-or-queue.rs | lib/examples/bus-or-queue.rs | use ate::prelude::*;
use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
#[derive(Debug, Clone, Serialize, Deserialize)]
enum BallSound {
Ping,
Pong,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
struct Table {
ball: Da... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/examples/coin.rs | lib/examples/coin.rs | use ate::prelude::*;
#[allow(unused_imports)]
use serde::{Deserialize, Serialize};
#[derive(Clone, Serialize, Deserialize)]
struct TrustedRecord {
hidden_data: String,
}
#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<(), AteError> {
// Make the keys that will protect the data
let root... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/lib/examples/bank.rs | lib/examples/bank.rs | use ate::prelude::*;
use names::Generator;
use rust_decimal::prelude::*;
#[allow(unused_imports)]
use serde::{Deserialize, Serialize};
use std::sync::Arc;
#[derive(Debug, Serialize, Deserialize, Clone)]
struct Person {
first_name: String,
last_name: String,
}
#[derive(Debug, Serialize, Deserialize, Clone)]
st... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-web/build.rs | wasmer-web/build.rs | extern crate build_deps;
fn main() {
build_deps::rerun_if_changed_paths( "public/bin/*" ).unwrap();
build_deps::rerun_if_changed_paths( "public/*" ).unwrap();
build_deps::rerun_if_changed_paths( "public/bin" ).unwrap();
build_deps::rerun_if_changed_paths( "public" ).unwrap();
} | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-web/src/lib.rs | wasmer-web/src/lib.rs | mod common;
mod glue;
mod interval;
mod pool;
mod system;
mod ws;
mod webgl;
use wasmer_os::err;
use wasmer_os::fd;
use wasmer_os::tty;
pub use glue::start;
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-web/src/webgl.rs | wasmer-web/src/webgl.rs | use wasm_bindgen::prelude::*;
use web_sys::WebGlTexture;
use web_sys::WebGlVertexArrayObject;
use web_sys::WebGlBuffer;
use web_sys::WebGlUniformLocation;
use web_sys::WebGlFramebuffer;
use web_sys::{WebGl2RenderingContext, WebGlProgram, WebGlShader};
use wasmer_os::api::ProgramId;
use wasmer_os::api::BufferId;
use was... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | true |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-web/src/glue.rs | wasmer-web/src/glue.rs | use chrono::prelude::*;
use wasmer_os::bin_factory::CachedCompiledModules;
use std::sync::Arc;
use wasmer_os::api::*;
use wasmer_os::common::MAX_MPSC;
use wasmer_os::console::Console;
use tokio::sync::mpsc;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use wasm_bindgen::prelude::*;... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-web/src/system.rs | wasmer-web/src/system.rs | use async_trait::async_trait;
use js_sys::Promise;
use wasmer_os::wasmer::Module;
use wasmer_os::wasmer::Store;
use wasmer_os::wasmer::vm::VMMemory;
use wasmer_os::wasmer_wasi::WasiThreadError;
use std::future::Future;
use std::pin::Pin;
use wasmer_os::api::abi::SystemAbi;
use tokio::sync::mpsc;
#[allow(unused_imports,... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-web/src/ws.rs | wasmer-web/src/ws.rs | use async_trait::async_trait;
use std::ops::*;
use std::sync::Arc;
use wasmer_os::api::*;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use wasm_bindgen::prelude::*;
use wasm_bindgen::JsCast;
use web_sys::{MessageEvent, WebSocket as WebSocketSys};
#[derive(Clone)]
pub struct WebS... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-web/src/interval.rs | wasmer-web/src/interval.rs | use wasm_bindgen::prelude::*;
#[wasm_bindgen]
extern "C" {
fn setInterval(closure: &Closure<dyn FnMut()>, millis: u32) -> f64;
fn cancelInterval(token: f64);
}
#[wasm_bindgen]
#[derive(Debug)]
pub struct LeakyInterval {
token: f64,
}
impl LeakyInterval {
pub fn new<F: 'static>(duration: std::time::Du... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-web/src/common.rs | wasmer-web/src/common.rs | use js_sys::Function;
use std::cell::Cell;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use wasm_bindgen::prelude::*;
use wasm_bindgen::JsCast;
use wasm_bindgen_futures::*;
use web_sys::*;
use super::err;
#[wasm_bindgen]
#[derive(Default)]
pub struct AnimationFrameCallbackWrappe... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-web/src/pool.rs | wasmer-web/src/pool.rs | #![allow(unused_imports)]
use bytes::Bytes;
use js_sys::Uint8Array;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use derivative::*;
use wasm_bindgen_futures::JsFuture;
use wasmer_os::api::SpawnType;
use wasmer_os::wasmer::MemoryType;
use wasmer_os::wasmer::Module;
use wasmer_os::... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/lib.rs | crypto/src/lib.rs | pub mod crypto;
pub mod utils;
pub mod error;
pub mod spec;
pub use crypto::*;
pub use spec::*;
pub const HASH_ROUTINE: crypto::HashRoutine = crypto::HashRoutine::Blake3; | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/error/crypto_error.rs | crypto/src/error/crypto_error.rs | use error_chain::error_chain;
error_chain! {
types {
CryptoError, CryptoErrorKind, ResultExt, Result;
}
errors {
NoIvPresent {
description("no initialization vector")
display("no initialization vector")
}
}
}
impl From<CryptoError> for std::io::Error {
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/error/mod.rs | crypto/src/error/mod.rs | mod crypto_error;
mod serialization_error;
pub use crypto_error::*;
pub use serialization_error::*; | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/error/serialization_error.rs | crypto/src/error/serialization_error.rs | use error_chain::error_chain;
use rmp_serde::decode::Error as RmpDecodeError;
use rmp_serde::encode::Error as RmpEncodeError;
use serde_json::Error as JsonError;
use crate::spec::PrimaryKey;
pub use wasmer_bus_types::BusError;
error_chain! {
types {
SerializationError, SerializationErrorKind, ResultExt, R... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/utils/test.rs | crypto/src/utils/test.rs | #![allow(unused_imports)]
use std::sync::Once;
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
static INIT: Once = Once::new();
pub fn bootstrap_test_env() {
INIT.call_once(|| {
super::log_init(0, false);
});
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/utils/b64.rs | crypto/src/utils/b64.rs | #![allow(unused_imports)]
use std::convert::TryInto;
use serde::{de::Deserializer, Serializer};
use serde::{Deserialize, Serialize};
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
pub fn vec_serialize<S>(data: &Vec<u8>, serializer: S) -> Result<S::Ok, S::Error>
where
S: Serializer,
{
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/utils/log.rs | crypto/src/utils/log.rs | #![allow(unused_imports)]
use tracing::metadata::LevelFilter;
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use tracing_subscriber::fmt::SubscriberBuilder;
use tracing_subscriber::EnvFilter;
use std::sync::Once;
static SYNC_OBJ: Once = Once::new();
pub fn log_init(verbose: i32, debug: bool)... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/utils/mod.rs | crypto/src/utils/mod.rs | pub mod b64;
pub mod log;
pub mod test;
pub use b64::*;
pub use log::*;
pub use test::*; | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/spec/node_id.rs | crypto/src/spec/node_id.rs | use core::fmt;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]
pub enum NodeId {
Unknown,
Client(u64),
Server(u32, u32),
}
impl Default for NodeId {
fn default() -> Self {
NodeId::Unknown
}
}
impl fmt::Displ... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/spec/mod.rs | crypto/src/spec/mod.rs | mod primary_key;
mod node_id;
mod chain_key;
pub use primary_key::*;
pub use wasmer_bus_types::SerializationFormat;
pub use node_id::*;
pub use chain_key::*; | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/spec/primary_key.rs | crypto/src/spec/primary_key.rs | use std::mem::size_of;
use std::cell::RefCell;
use serde::*;
use crate::AteHash;
/// All event and data objects within ATE have a primary key that uniquely represents
/// it and allows it to be indexed and referenced. This primary key can be derived from
/// other input data like strings or numbers in order to make o... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/spec/chain_key.rs | crypto/src/spec/chain_key.rs | #[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use crate::crypto::AteHash;
use super::PrimaryKey;
use serde::{Deserialize, Serialize};
/// Unique key that represents this chain-of-trust. The design must
/// partition their data space into seperate chains to improve s... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/double_hash.rs | crypto/src/crypto/double_hash.rs | use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use super::*;
#[derive(Serialize, Deserialize, Debug, Clone, Copy, Hash, Eq, PartialEq)]
pub struct DoubleHash {
hash1: AteHash,
hash2: AteHash,
}
impl DoubleHash {
#[all... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/fast_random.rs | crypto/src/crypto/fast_random.rs | use once_cell::sync::Lazy;
use rand::{rngs::adapter::ReseedingRng, RngCore, SeedableRng};
use rand_chacha::{ChaCha20Core, ChaCha20Rng};
use std::result::Result;
use std::sync::{Mutex, MutexGuard};
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
static GLOBAL_SECURE_AND... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/sign_key.rs | crypto/src/crypto/sign_key.rs | use crate::utils::vec_deserialize;
use crate::utils::vec_serialize;
use pqcrypto_falcon_wasi::falcon1024;
use pqcrypto_falcon_wasi::falcon512;
use pqcrypto_traits_wasi::sign::SecretKey as PQCryptoSecretKey;
use pqcrypto_traits_wasi::sign::{DetachedSignature, PublicKey as PQCryptoPublicKey};
use serde::{Deserialize, Ser... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/random_generator_accessor.rs | crypto/src/crypto/random_generator_accessor.rs | use rand::RngCore;
use std::cell::RefCell;
use std::result::Result;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use super::fast_random::*;
use super::*;
thread_local! {
static THREAD_LOCAL_SECURE_AND_FAST_RANDOM: RefCell<SecureAndFastRandom>
= RefCell:... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/tests.rs | crypto/src/crypto/tests.rs | #![cfg(test)]
use crate::error::*;
use std::result::Result;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use serde::{Serialize, Deserialize};
use rand::RngCore;
use super::*;
#[test]
fn test_secure_random() {
crate::utils::bootstrap_test_env();
let t = 10... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/encrypted_secure_data.rs | crypto/src/crypto/encrypted_secure_data.rs | use crate::spec::SerializationFormat;
use crate::utils::vec_deserialize;
use crate::utils::vec_serialize;
use serde::{Deserialize, Serialize};
use std::result::Result;
use std::{io::ErrorKind, marker::PhantomData};
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use su... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/key_size.rs | crypto/src/crypto/key_size.rs | use serde::{Deserialize, Serialize};
use std::result::Result;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
/// Size of a cryptographic key, smaller keys are still very secure but
/// have less room in the future should new attacks be found against the
/// crypto alg... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/short_hash.rs | crypto/src/crypto/short_hash.rs | use serde::{Deserialize, Serialize};
use sha3::Digest;
use std::convert::TryInto;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use crate::crypto::HashRoutine;
/// Represents a hash of a piece of data that is cryptographically secure enough
/// that it can be used f... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/private_encrypt_key.rs | crypto/src/crypto/private_encrypt_key.rs | use crate::utils::vec_deserialize;
use crate::utils::vec_serialize;
use pqcrypto_ntru_wasi::ntruhps2048509 as ntru128;
use pqcrypto_ntru_wasi::ntruhps2048677 as ntru192;
use pqcrypto_ntru_wasi::ntruhps4096821 as ntru256;
use pqcrypto_traits_wasi::kem::*;
use serde::{Deserialize, Serialize};
use std::result::Result;
#[a... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/mod.rs | crypto/src/crypto/mod.rs | pub mod derived_encrypt_key;
pub mod double_hash;
pub mod encrypt_key;
#[cfg(feature = "quantum")]
pub mod encrypted_private_key;
pub mod encrypted_secure_data;
pub mod fast_random;
pub mod hash;
pub mod initialization_vector;
pub mod key_size;
#[cfg(feature = "quantum")]
pub mod private_encrypt_key;
#[cfg(feature = "q... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/signed_protected_data.rs | crypto/src/crypto/signed_protected_data.rs | use crate::spec::SerializationFormat;
use crate::utils::vec_deserialize;
use crate::utils::vec_serialize;
use serde::{Deserialize, Serialize};
use std::io::ErrorKind;
use std::result::Result;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use super::*;
#[derive(Seria... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/hash.rs | crypto/src/crypto/hash.rs | use crate::crypto::RandomGeneratorAccessor;
use crate::utils::b16_deserialize;
use crate::utils::b16_serialize;
use serde::{Deserialize, Serialize};
use sha3::Digest;
use std::convert::TryInto;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use super::InitializationVe... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/initialization_vector.rs | crypto/src/crypto/initialization_vector.rs | use crate::utils::vec_deserialize;
use crate::utils::vec_serialize;
use rand::RngCore;
use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use super::*;
/// Represents an initiailization vector used for both hash prefixing
/// to creat... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/public_encrypted_secure_data.rs | crypto/src/crypto/public_encrypted_secure_data.rs | use crate::spec::SerializationFormat;
use crate::utils::vec_deserialize;
use crate::utils::vec_serialize;
use fxhash::FxHashMap;
use serde::{Deserialize, Serialize};
use std::result::Result;
use std::{io::ErrorKind, marker::PhantomData};
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/encrypted_private_key.rs | crypto/src/crypto/encrypted_private_key.rs | use crate::utils::vec_deserialize;
use crate::utils::vec_serialize;
use serde::{Deserialize, Serialize};
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use super::*;
#[derive(Serialize, Deserialize, Debug, Clone, Hash, Eq, PartialEq)]
pub struct EncryptedPrivateKey {... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/encrypt_key.rs | crypto/src/crypto/encrypt_key.rs | use crate::utils::b16_deserialize;
use crate::utils::b16_serialize;
use crate::utils::b24_deserialize;
use crate::utils::b24_serialize;
use crate::utils::b32_deserialize;
use crate::utils::b32_serialize;
use crate::utils::vec_deserialize;
use crate::utils::vec_serialize;
use serde::{Deserialize, Serialize};
use sha3::D... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/crypto/src/crypto/derived_encrypt_key.rs | crypto/src/crypto/derived_encrypt_key.rs | use serde::{Deserialize, Serialize};
use std::result::Result;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use super::*;
/// Encrypt key material is used to transform an encryption key using
/// derivation which should allow encryption keys to be changed without
//... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/key.rs | wasmer-ssh/src/key.rs | use serde::*;
use std::convert::TryInto;
use thrussh_keys::key::ed25519;
use thrussh_keys::key::KeyPair;
#[derive(Serialize, Deserialize, Debug, Clone)]
pub enum SshServerKey {
Ed25519(Vec<u8>),
}
impl SshServerKey {
pub fn generate_ed25519() -> SshServerKey {
let key = KeyPair::generate_ed25519().unw... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/lib.rs | wasmer-ssh/src/lib.rs | pub mod cconst;
pub mod console_handle;
pub mod error;
pub mod handler;
pub mod key;
pub mod opt;
pub mod server;
pub mod system;
pub mod utils;
pub mod wizard;
pub mod native_files;
pub use wasmer_term::wasmer_os;
pub use ate_files;
pub use native_files::NativeFiles; | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/error.rs | wasmer-ssh/src/error.rs | use error_chain::error_chain;
use ate_files::error::FileSystemError;
use ate_files::error::FileSystemErrorKind;
error_chain! {
types {
SshServerError, SshServerErrorKind, SshServerResultExt, SshServerResult;
}
links {
FileSystemError(FileSystemError, FileSystemErrorKind);
}
foreign_... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/system.rs | wasmer-ssh/src/system.rs | use async_trait::async_trait;
use ate::mesh::Registry;
use ate_files::prelude::*;
use wasmer_term::wasmer_os::wasmer::Module;
use wasmer_term::wasmer_os::wasmer::Store;
use wasmer_term::wasmer_os::wasmer::vm::VMMemory;
use wasmer_term::wasmer_os::wasmer_wasi::WasiThreadError;
use std::future::Future;
use std::pin::Pin;... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/utils.rs | wasmer-ssh/src/utils.rs | #![allow(unused_imports)]
use serde::*;
use std::fs::File;
use tracing::metadata::LevelFilter;
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use tracing_subscriber::fmt::SubscriberBuilder;
use tracing_subscriber::EnvFilter;
pub fn log_init(verbose: i32, debug: bool) {
let mut log_level =... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/cconst.rs | wasmer-ssh/src/cconst.rs | pub struct CConst {}
impl CConst {
pub const SSH_WELCOME: &'static str = r#"
██╗ ██╗ █████╗ ███████╗███╗ ███╗███████╗██████╗
██║ ██║██╔══██╗██╔════╝████╗ ████║██╔════╝██╔══██╗
██║ █╗ ██║███████║███████╗██╔████╔██║█████╗ ██████╔╝
██║███╗██║██╔══██║╚════██║██║╚██╔╝██║██╔══╝ ██╔══██... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/wizard.rs | wasmer-ssh/src/wizard.rs | use super::cconst::CConst;
use ate::prelude::*;
use wasmer_auth::error::*;
use wasmer_auth::helper::*;
use wasmer_auth::request::*;
use std::borrow::Cow;
use std::sync::Arc;
use thrussh::server::*;
use thrussh_keys::key::PublicKey;
use wasmer_term::wasmer_os::api as term_api;
#[allow(unused_imports)]
use tracing::{debu... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/console_handle.rs | wasmer-ssh/src/console_handle.rs | use async_trait::async_trait;
use std::io::{self, Write};
use std::ops::Deref;
use std::sync::Arc;
use std::sync::Mutex;
use wasmer_os::api::ConsoleAbi;
use wasmer_os::api::ConsoleRect;
use thrussh::server::Handle;
use thrussh::ChannelId;
use thrussh::CryptoVec;
use wasmer_term::wasmer_os;
pub struct ConsoleHandle {
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/server.rs | wasmer-ssh/src/server.rs | use ate::prelude::*;
use std::net::IpAddr;
use std::sync::Arc;
use std::sync::Mutex;
use std::time::Duration;
use wasmer_os::api::ConsoleRect;
use thrussh::server;
use tokio::sync::watch;
use wasmer_term::wasmer_os;
use wasmer_os::bin_factory::CachedCompiledModules;
use crate::native_files::NativeFileInterface;
#[allow... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/handler.rs | wasmer-ssh/src/handler.rs | use ate::mesh::Registry;
use std::future::Future;
use std::pin::Pin;
use std::sync::Arc;
use std::sync::Mutex;
use wasmer_os::api::ConsoleRect;
use wasmer_os::api::System;
use wasmer_os::console::Console;
use thrussh::server;
use thrussh::server::Auth;
use thrussh::server::Session;
use thrussh::ChannelId;
use thrussh_k... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/native_files.rs | wasmer-ssh/src/native_files.rs | use ate::mesh::Registry;
use ate::session::AteSessionType;
use ate::session::AteSessionUser;
use ate::transaction::TransactionScope;
use ate_files::prelude::*;
use ate::prelude::AteErrorKind;
use std::sync::Arc;
use tokio::sync::Mutex;
use std::path::PathBuf;
#[allow(unused_imports)]
use tracing::{debug, error, info, i... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/opt/core.rs | wasmer-ssh/src/opt/core.rs | use clap::Parser;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use super::ssh::OptsSsh;
#[derive(Parser)]
#[clap(version = "1.0", author = "John S. <johnathan.sharratt@gmail.com>")]
pub struct Opts {
/// Sets the level of log verbosity, can be used multiple tim... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/opt/mod.rs | wasmer-ssh/src/opt/mod.rs | mod core;
mod generate;
mod ssh;
mod host;
pub use self::core::*;
pub use generate::*;
pub use ssh::*;
pub use host::*; | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/opt/host.rs | wasmer-ssh/src/opt/host.rs | use std::net::IpAddr;
use wasmer_term::wasmer_os;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use clap::Parser;
/// Runs a ssh server host
#[derive(Parser)]
pub struct OptsHost {
/// IP address that the SSH server will isten on
#[clap(short, long, default_... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/opt/generate.rs | wasmer-ssh/src/opt/generate.rs | use clap::Parser;
/// Generates the SSH server key that helps protect from man-in-the-middle attacks
#[derive(Parser)]
pub struct OptsGenerate {
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/opt/ssh.rs | wasmer-ssh/src/opt/ssh.rs | #[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use clap::Parser;
use super::generate::*;
use super::host::*;
#[derive(Parser)]
pub struct OptsSsh {
#[clap(subcommand)]
pub action: OptsSshAction,
}
#[derive(Parser)]
pub enum OptsSshAction {
/// Starts ... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-ssh/src/bin/wasmer-ssh.rs | wasmer-ssh/src/bin/wasmer-ssh.rs | use clap::Parser;
#[allow(unused_imports)]
use tracing::{debug, error, info, instrument, span, trace, warn, Level};
use tokio::sync::watch;
use wasmer_auth::helper::conf_cmd;
use wasmer_ssh::key::*;
use wasmer_ssh::opt::*;
use wasmer_ssh::server::Server;
use wasmer_ssh::utils::*;
use wasmer_ssh::native_files::NativeFi... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/prelude.rs | wasmer-deploy-cli/src/prelude.rs | pub use wasmer_auth::prelude::*;
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/lib.rs | wasmer-deploy-cli/src/lib.rs | pub mod api;
pub mod bus;
pub mod cmd;
pub mod error;
pub mod helper;
pub mod model;
pub mod opt;
pub mod prelude;
pub mod request;
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/peering.rs | wasmer-deploy-cli/src/cmd/peering.rs | use ate::prelude::*;
use crate::api::DeployApi;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use crate::error::*;
use crate::model::{ServiceInstance, InstancePeering, WalletInstance};
use crate::opt::*;
pub async fn main_opts_peering_list(
instance: DaoMut<ServiceInstance>,
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/cancel_deposit.rs | wasmer-deploy-cli/src/cmd/cancel_deposit.rs | use std::sync::Arc;
#[allow(unused_imports)]
use tracing::{debug, error, info, trace, warn};
use url::Url;
use ate::prelude::*;
use crate::error::*;
use crate::model::*;
use crate::request::*;
pub async fn cancel_deposit_command(
registry: &Arc<Registry>,
coin_ancestor: Ownership,
auth: Url,
) -> Result<... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/service_find.rs | wasmer-deploy-cli/src/cmd/service_find.rs | use std::sync::Arc;
#[allow(unused_imports)]
use tracing::{debug, error, info, trace, warn};
use ate::prelude::*;
use crate::error::*;
use crate::model::*;
use crate::request::*;
pub fn get_advertised_service<'a>(
response: &'a ServiceFindResponse,
service_name: &'_ str,
) -> Result<Option<&'a AdvertisedServ... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/contract.rs | wasmer-deploy-cli/src/cmd/contract.rs | #[allow(unused_imports)]
use tracing::{debug, error, info, trace, warn};
use url::Url;
use crate::error::*;
use crate::opt::*;
use super::*;
pub async fn main_opts_contract(
opts: OptsContractFor,
token_path: String,
auth_url: Url,
) -> Result<(), ContractError> {
let mut context = PurposeContext::ne... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/withdraw.rs | wasmer-deploy-cli/src/cmd/withdraw.rs | use error_chain::bail;
use std::sync::Arc;
#[allow(unused_imports)]
use tracing::{debug, error, info, trace, warn};
use url::Url;
use ate::prelude::*;
use crate::api::*;
use crate::error::*;
use crate::model::*;
use crate::opt::*;
use crate::request::*;
use super::*;
pub async fn withdraw_command(
registry: &Ar... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/transfer.rs | wasmer-deploy-cli/src/cmd/transfer.rs | #[allow(unused_imports)]
use tracing::{debug, error, info};
use crate::api::*;
use crate::error::*;
use crate::opt::*;
pub async fn main_opts_transfer<A>(
opts: OptsTransfer,
source: &dyn OptsPurpose<A>,
api: &mut DeployApi,
) -> Result<(), WalletError>
where
A: Clone,
{
let repeat = opts.repeat.u... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/network.rs | wasmer-deploy-cli/src/cmd/network.rs | #[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
#[cfg(unix)]
#[allow(unused_imports)]
use std::os::unix::fs::symlink;
#[allow(unused_imports)]
#[cfg(unix)]
use std::os::unix::fs::PermissionsExt;
use std::ops::Deref;
use error_chain::bail;
use async_stream::stream;
use futures_util::p... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/login.rs | wasmer-deploy-cli/src/cmd/login.rs | use ate::error::AteError;
use ate::prelude::*;
use wasmer_auth::cmd::*;
use wasmer_auth::helper::*;
#[cfg(target_os = "wasi")]
use wasmer_bus_process::prelude::*;
use crate::opt::*;
pub async fn main_opts_login(
action: OptsLogin,
token_path: String,
auth: url::Url,
) -> Result<(), AteError> {
// Co... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/disconnect.rs | wasmer-deploy-cli/src/cmd/disconnect.rs | #[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use crate::bus::disconnect_from_networks;
pub async fn main_opts_disconnect()
{
disconnect_from_networks().await;
}
| rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/core.rs | wasmer-deploy-cli/src/cmd/core.rs | use std::ops::Deref;
use std::ops::DerefMut;
use std::sync::Arc;
use std::time::Duration;
#[allow(unused_imports)]
use tracing::{debug, error, info};
use ate::prelude::*;
use crate::api::*;
use crate::error::*;
use crate::model::*;
use crate::opt::*;
use super::*;
pub async fn session_with_permissions<A>(
purpo... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/coin_carve.rs | wasmer-deploy-cli/src/cmd/coin_carve.rs | use std::sync::Arc;
#[allow(unused_imports)]
use tracing::{debug, error, info, trace, warn};
use url::Url;
use ate::prelude::*;
use crate::error::*;
use crate::model::*;
use crate::request::*;
pub async fn coin_carve_command(
registry: &Arc<Registry>,
owner: Ownership,
coin: PrimaryKey,
needed_denomi... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/coin_rotate.rs | wasmer-deploy-cli/src/cmd/coin_rotate.rs | use error_chain::*;
use std::sync::Arc;
#[allow(unused_imports)]
use tracing::{debug, error, info, trace, warn};
use url::Url;
use ate::prelude::*;
use crate::error::*;
use crate::model::*;
use crate::request::*;
pub fn coin_rotate_request(
coins: Vec<CarvedCoin>,
new_token: EncryptKey,
session: &'_ dyn ... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/contract_list.rs | wasmer-deploy-cli/src/cmd/contract_list.rs | #[allow(unused_imports)]
use tracing::{debug, error, info, trace, warn};
use crate::api::*;
use crate::error::*;
pub async fn main_opts_contract_list(api: &mut DeployApi) -> Result<(), ContractError> {
let result = api.contract_summary().await?;
println!("|-----code-----|-------------reference------------|--... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/contract_action.rs | wasmer-deploy-cli/src/cmd/contract_action.rs | use std::sync::Arc;
#[allow(unused_imports)]
use tracing::{debug, error, info, trace, warn};
use url::Url;
use ate::prelude::*;
use crate::error::*;
use crate::helper::*;
use crate::request::*;
pub async fn contract_action_command(
registry: &Arc<Registry>,
session: &dyn AteSession,
auth: Url,
servic... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/service.rs | wasmer-deploy-cli/src/cmd/service.rs | use wasmer_auth::helper::*;
use error_chain::bail;
use std::time::Duration;
#[allow(unused_imports)]
use tracing::{debug, error, info};
use crate::api::*;
use crate::error::*;
use crate::opt::*;
use super::*;
pub async fn main_opts_service_list(auth_url: &url::Url) -> Result<(), CoreError> {
println!("|-----code... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/contract_create.rs | wasmer-deploy-cli/src/cmd/contract_create.rs | use std::sync::Arc;
#[allow(unused_imports)]
use tracing::{debug, error, info, trace, warn};
use url::Url;
use ate::prelude::*;
use crate::error::*;
use crate::helper::*;
use crate::model::*;
use crate::request::*;
pub async fn contract_create_command(
registry: &Arc<Registry>,
session: &dyn AteSession,
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/coin_collect.rs | wasmer-deploy-cli/src/cmd/coin_collect.rs | use std::sync::Arc;
#[allow(unused_imports)]
use tracing::{debug, error, info, trace, warn};
use url::Url;
use ate::prelude::*;
use crate::error::*;
use crate::model::*;
use crate::request::*;
pub async fn coin_collect_command(
registry: &Arc<Registry>,
coin_ancestors: Vec<Ownership>,
auth: Url,
) -> Res... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/history.rs | wasmer-deploy-cli/src/cmd/history.rs | use chrono::Datelike;
use crate::api::*;
use crate::cmd::*;
use crate::error::*;
use crate::opt::*;
#[allow(unreachable_code)]
pub async fn main_opts_transaction_history(
opts: OptsTransactionHistory,
api: &mut DeployApi,
) -> Result<(), WalletError> {
// We first get the wallet summary and output it
... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
wasmerio/ate | https://github.com/wasmerio/ate/blob/87635b5b49c4163885ce840f4f1c2f30977f40cc/wasmer-deploy-cli/src/cmd/cidr.rs | wasmer-deploy-cli/src/cmd/cidr.rs | use ate::prelude::*;
#[allow(unused_imports, dead_code)]
use tracing::{debug, error, info, trace, warn};
use crate::error::*;
use crate::model::{ServiceInstance, IpCidr};
use crate::opt::*;
pub async fn main_opts_cidr_list(
instance: DaoMut<ServiceInstance>,
) -> Result<(), InstanceError> {
println!("|-------... | rust | Apache-2.0 | 87635b5b49c4163885ce840f4f1c2f30977f40cc | 2026-01-04T20:14:33.413949Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.