Skip to content

Commit

Permalink
Renamed cswitch -> offst.
Browse files Browse the repository at this point in the history
  • Loading branch information
realcr committed Nov 3, 2018
1 parent f7fc247 commit 78f3c47
Show file tree
Hide file tree
Showing 17 changed files with 153 additions and 153 deletions.
8 changes: 4 additions & 4 deletions CODE_GUIDELINES.md
@@ -1,12 +1,12 @@
# Guidelines for CSwitch code
# Guidelines for Offst code

This document contains the main values and priorities when writing CSwitch
This document contains the main values and priorities when writing Offst
code. If you are unsure about a design or technical decision, this document
might be able to help you reach a decision.

## Priorities

The main priorities to consider when writing code in CSwitch are as follows (In
The main priorities to consider when writing code in Offst are as follows (In
this order):

1. Security and safety
Expand All @@ -18,7 +18,7 @@ this order):

### Security and Safety

CSwitch is used for passing credits between people. Therefore safety is of
Offst is used for passing credits between people. Therefore safety is of
highest priority.

- When two possible designs are possible, always choose the safer design.
Expand Down
222 changes: 111 additions & 111 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions README.md
@@ -1,8 +1,8 @@
# Offst payment engine

[![Build Status](https://travis-ci.com/freedomlayer/offst.svg?branch=master)](https://travis-ci.com/freedomlayer/offst)
[![codecov](https://codecov.io/gh/realcr/cswitch/branch/master/graph/badge.svg)](https://codecov.io/gh/realcr/cswitch)
[![Gitter chat](https://badges.gitter.im/freedomlayer/cswitch.svg)](https://gitter.im/freedomlayer/cswitch)
[![codecov](https://codecov.io/gh/realcr/offst/branch/master/graph/badge.svg)](https://codecov.io/gh/realcr/offst)
[![Gitter chat](https://badges.gitter.im/freedomlayer/offst.svg)](https://gitter.im/freedomlayer/offst)

**Offst** is a decentralized payment infrastructure, relying on real
world trust between people. See [Offst's
Expand Down
4 changes: 2 additions & 2 deletions components/crypto/Cargo.toml
@@ -1,11 +1,11 @@
[package]
name = "cswitch-crypto"
name = "offst-crypto"
version = "0.1.0"
authors = ["real <real@freedomlayer.org>"]

[dependencies]

cswitch-utils = { path = "../utils", version = "0.1.0" }
offst-utils = { path = "../utils", version = "0.1.0" }

rand = "0.5"
ring = "=0.13.0-alpha"
Expand Down
2 changes: 1 addition & 1 deletion components/crypto/src/lib.rs
Expand Up @@ -4,7 +4,7 @@
extern crate ring;
extern crate bytes;
#[macro_use]
extern crate cswitch_utils as utils;
extern crate offst_utils as utils;
extern crate serde;
#[macro_use]
extern crate serde_derive;
Expand Down
8 changes: 4 additions & 4 deletions components/funder/Cargo.toml
@@ -1,7 +1,7 @@
cargo-features = ["rename-dependency"]

[package]
name = "cswitch-funder"
name = "offst-funder"
version = "0.1.0"
authors = ["real <real@freedomlayer.org>"]

Expand All @@ -10,9 +10,9 @@ edition = "2018"

[dependencies]

utils = { path = "../utils", version = "0.1.0", package = "cswitch-utils"}
crypto = { path = "../crypto", version = "0.1.0", package = "cswitch-crypto"}
identity = { path = "../identity", version = "0.1.0", package = "cswitch-identity" }
utils = { path = "../utils", version = "0.1.0", package = "offst-utils"}
crypto = { path = "../crypto", version = "0.1.0", package = "offst-crypto"}
identity = { path = "../identity", version = "0.1.0", package = "offst-identity" }

log = "0.4"
pretty_env_logger = "0.2"
Expand Down
8 changes: 4 additions & 4 deletions components/funder/src/freeze_guard.rs
Expand Up @@ -29,11 +29,11 @@ impl FriendFreezeGuard {
#[derive(Clone)]
pub struct FreezeGuard {
local_public_key: PublicKey,
// Total amount of credits frozen from A to B through this CSwitch node.
// Total amount of credits frozen from A to B through this Offst node.
// ```
// A --> ... --> X --> B
// ```
// A could be any node, B must be a friend of this CSwitch node.
// A could be any node, B must be a friend of this Offst node.
frozen_to: ImHashMap<PublicKey, FriendFreezeGuard>,
// ^ B
}
Expand Down Expand Up @@ -167,8 +167,8 @@ impl FreezeGuard {
}
}

/// Get the amount of credits frozen from <from_pk> to <to_pk> going through this CSwitch node,
/// where <to_pk> is a friend of this CSwitch node.
/// Get the amount of credits frozen from <from_pk> to <to_pk> going through this Offst node,
/// where <to_pk> is a friend of this Offst node.
fn get_frozen(&self, subroute: &[PublicKey]) -> u128 {
if subroute.len() < 2 {
unreachable!();
Expand Down
4 changes: 2 additions & 2 deletions components/funder/src/lib.rs
Expand Up @@ -38,8 +38,8 @@ extern crate serde_derive;

#[macro_use]
extern crate utils;
// extern crate cswitch_crypto as crypto;
// extern crate cswitch_identity as identity;
// extern crate offst_crypto as crypto;
// extern crate offst_identity as identity;


pub mod messages;
Expand Down
6 changes: 3 additions & 3 deletions components/identity/Cargo.toml
@@ -1,16 +1,16 @@
cargo-features = ["rename-dependency"]

[package]
name = "cswitch-identity"
name = "offst-identity"
version = "0.1.0"
authors = ["real <real@freedomlayer.org>"]

edition = "2018"

[dependencies]

utils = { path = "../utils", version = "0.1.0", package = "cswitch-utils"}
crypto = { path = "../crypto", version = "0.1.0" , package = "cswitch-crypto"}
utils = { path = "../utils", version = "0.1.0", package = "offst-utils"}
crypto = { path = "../crypto", version = "0.1.0" , package = "offst-crypto"}

# futures = "0.1.25"
# tokio-core = "0.1"
Expand Down
4 changes: 2 additions & 2 deletions components/identity/src/lib.rs
Expand Up @@ -8,8 +8,8 @@
extern crate futures;
// extern crate tokio_core;

// extern crate cswitch_crypto as crypto;
// extern crate cswitch_utils as utils;
// extern crate offst_crypto as crypto;
// extern crate offst_utils as utils;

mod identity;
mod client;
Expand Down
4 changes: 2 additions & 2 deletions components/proto/Cargo.toml
@@ -1,12 +1,12 @@
[package]
name = "cswitch-proto"
name = "offst-proto"
version = "0.1.0"
authors = ["real <real@freedomlayer.org>"]
build = "build.rs"

[dependencies]

cswitch-crypto = { path = "../crypto", version = "0.1.0" }
offst-crypto = { path = "../crypto", version = "0.1.0" }

capnp = "0.8"
byteorder = "1.1"
Expand Down

0 comments on commit 78f3c47

Please sign in to comment.