Skip to content

good #13

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open

good #13

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions _config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
inc:
# Blog Information
title: "ChatSecure"
subtitle: "Free and open source encrypted chat for iOS."
title: "具有隐私性的区块链拓展方案"

cover_image: blog-cover.jpg
logo: logo.png

Expand Down Expand Up @@ -95,4 +95,4 @@ kramdown:
css: style

redcloth:
hard_breaks: true
hard_breaks: true
23 changes: 11 additions & 12 deletions _includes/_bottom_frontpage.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,8 @@
<div class="col-lg-5 col-sm-6">
<hr class="section-heading-spacer">
<div class="clearfix"></div>
<h2 class="section-heading">What is ChatSecure?</h2>
<p class="lead">ChatSecure is a free and open source messaging app that features <a href="https://en.wikipedia.org/wiki/OMEMO">OMEMO encryption</a> and <a href="https://en.wikipedia.org/wiki/Off-the-Record_Messaging">OTR encryption</a> over <a href="https://en.wikipedia.org/wiki/XMPP">XMPP</a>. You can connect to your existing Google accounts or create new accounts on <a href="https://xmpp.net/directory.php">public XMPP servers</a> (including via <a href="https://en.wikipedia.org/wiki/Tor_(anonymity_network)">Tor</a>), or even <a href="http://arstechnica.com/information-technology/2014/03/how-to-set-up-your-own-private-instant-messaging-server/">connect to your own server</a> for extra security.</p>
<p class="lead">Unlike other apps that keep you stuck in their walled garden, ChatSecure is fully interoperable with other clients that support OMEMO or OTR and XMPP, such as <a href="https://conversations.im">Conversations</a> (Android), <a href="https://coy.im">CoyIM</a> (Desktop), and <a href="https://en.wikipedia.org/wiki/Off-the-Record_Messaging#Client_support">more.</a></p>
<h2 class="section-heading">什么是区块链 Layer 2 扩展协议?</h2>
<p class="lead">区块链 Layer 2 是指构建在现有区块链系统之上的辅助框架或协议。这些协议的主要目标是解决主要加密货币网络面临的交易速度和扩展困难。术语“Layer 2”是指针对区块链可扩展性问题提出的多种解决方案, 其中两个主要示例是比特币闪电网络和以太坊 Plasma。 尽管有自己的工作机制和特殊性,但这两种解决方案都在努力为区块链系统提供更高的吞吐量。</p>
</div>
<div class="col-lg-5 col-lg-offset-2 col-sm-6">
<img class="img-responsive" src="/images/accounts.png" alt="iOS Screenshot">
Expand All @@ -25,14 +24,14 @@ <h2 class="section-heading">What is ChatSecure?</h2>
<div class="col-lg-5 col-lg-offset-1 col-sm-push-6 col-sm-6">
<hr class="section-heading-spacer">
<div class="clearfix"></div>
<h2 class="section-heading">Strong Cryptography</h2>
<p class="lead">ChatSecure only uses well-known open source cryptographic libraries to keep your conversations private. Other apps may make claims about "military grade" security but, without publicly auditable source code and verifiable end-to-end encryption, you cannot be truly safe.</p>
<h2 class="section-heading">零知识证明实现隐私保护</h2>
<p class="lead">我们引入一个非可信交易托管来线下处理用户交易,将用户交易加密后,批量,周期性的发送到区块链上,并利用零知识证明技术,证明这些交易的有效性。</p>
<ul class="features-list">
<li>XMPP with <a href="https://en.wikipedia.org/wiki/Transport_Layer_Security#Certificate_pinning">TLS certificate pinning.</a></li>
<li><a href="https://en.wikipedia.org/wiki/Off-the-Record_Messaging">OTR</a> for verifiable <a href="https://en.wikipedia.org/wiki/End-to-end_encryption">end-to-end encryption</a> and <a href="https://en.wikipedia.org/wiki/Forward_secrecy">forward secrecy</a>.</li>
<li><a href="https://en.wikipedia.org/wiki/OMEMO">OMEMO</a> for a mobile-friendly alternative to OTR.</li>
<li><a href="https://en.wikipedia.org/wiki/Tor_(anonymity_network)">Tor</a> to help bypass restrictive firewalls.</li>
<li><a href="https://www.zetetic.net/sqlcipher/design/">SQLCipher</a> to locally encrypt conversation logs.</li>
<li>非可信交易托管</a></li>
<li>无需可信参数的零知识证明技术</li>
<li>隐私交易数值</li>
<li>隐私余额</li>
<li>可监管</li>
<ul>
</div>
<div class="col-lg-5 col-sm-pull-6 col-sm-6">
Expand All @@ -52,8 +51,8 @@ <h2 class="section-heading">Strong Cryptography</h2>
<div class="col-lg-5 col-sm-6">
<hr class="section-heading-spacer">
<div class="clearfix"></div>
<h2 class="section-heading">Free and Open Source</h2>
<p class="lead">We believe in the power of free and open source software. The full source code to the <a href="https://github.com/chrisballinger/ChatSecure-iOS">iOS</a> app is available on GitHub.<br><br>Want to get involved? Feel free to send us a pull request!</p>
<h2 class="section-heading">可监管的区块链银行</h2>
<p class="lead">系统引入的非可信交易托管可受监管,防止非法交易,保护合法用户权益。方案功能性可类比于传统银行,但以区块链为基础技术,去中心化。零知识证明使交易托管正确执行交易的同时保护隐私,但交易托管可授权可信第三方进行交易监察,防止非法交易。</p>
</div>
<div class="col-lg-5 col-lg-offset-2 col-sm-6">
<img class="img-responsive" src="/images/github-octocat.png" alt="">
Expand Down
10 changes: 4 additions & 6 deletions _includes/_navigation.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,10 @@
<a class="brand" href="/">
<img src="/images/{{ site.inc.logo }}" alt="ChatSecure Logo">
</a>
<a href="/about" class="home">About</a>
<a href="/blog" class="home">Blog</a>
<a href="/faq">FAQ</a>
<a href="/support">Support</a>
<a href="/contribute">Contribute</a>
<a href="/developers">Developers</a>
<a href="/about" class="home">关于</a>
<a href="/blog" class="home">文档</a>
<a href="/faq">疑问解答</a>
<a href="/support">支持</a>
</nav>
<nav class="tagline">
{% if site.inc.tagline %}<span>{{ site.inc.tagline }}</span>{% endif %}
Expand Down
26 changes: 7 additions & 19 deletions _posts/2018-12-11-chatsecure-v436.md
Original file line number Diff line number Diff line change
@@ -1,38 +1,26 @@
---
layout: post

title: ChatSecure v4.3.6
title: 区块链 Layer-2 设计框架
category: blog

author:
name: Chris Ballinger
name: Shuang Wu
twitter: chrisballingr
gplus: 110173710196322914492
bio: Founder
---

# ChatSecure v4.3.6
# 用户交易流程

This maintenance release contains an important update to the certificate pinning alert dialog. After updating to v4.3.6 you may see an alert asking you to re-verify your server's SSL/TLS certificate.
## 注册
用户注册时,需先向交易托管发送一个交易需求, 包含用户预存额度及用户签名,交易托管返回给用户一个随机值和随机值的 Pedersen 承诺,并对这些信息进行签名。然后用户直接与智能合约交互, 预存一定量的余额,并且储存随机值的承诺。![California Sunset](/images/register.png)

Previously, the dialog would display `✅ Valid` if the certificate was valid for *any* domain. Additionally, it was then pinning the certificate to the connected domain (e.g. `xmpp.example.com` from the SRV records), and not to the JID domain (e.g. `example.com`).

If you are not automatically prompted to re-verify, you should manually re-verify your server's certificates by going into Settings -> Pinned Certificates, delete the existing entries, and then reconnect.
##用户交易
用户交易时,将交易和签名发送给交易托管,交易托管验证交易合法性之后,如果这是在一个 epoch 中用户的第一个交易,交易托管将返回给用户一下信息:

Special thanks to Michel Le Bihan, for uncovering the flaw and quickly proposing a fix.

### Release Notes

* Fix security issue in certificate pinning alert dialog, where any valid certificate would show as valid
* Fix crash when rapidly scrolling through chat history
* Fix issue where chat history is temporarily blank after sending a message
* Swift 4.2 / Xcode 10.1
* Updated 3rd party dependencies
* Other minor bug fixes
* [Full release notes](https://github.com/ChatSecure/ChatSecure-iOS/releases/tag/v4.3.6)
* [Changelog](https://github.com/chatsecure/chatsecure-ios/compare/v4.3.5...v4.3.6)

##### Download the latest ChatSecure version here:

[![download chatsecure on the app store](https://chatsecure.org/images/appstore.svg)](https://itunes.apple.com/us/app/chatsecure/id464200063)

30 changes: 7 additions & 23 deletions about.md
Original file line number Diff line number Diff line change
@@ -1,33 +1,17 @@
---
layout: info
permalink: /about/
title: About
title: 方案简介
---

![ChatSecure Logo](/images/chatsecure-banner.png)
区块链 Layer 2 是指构建在现有区块链系统之上的辅助框架或协议。 这些协议的主要目标是解决主要加密货币网络面临的交易速度和扩展困难。例如,比特币和以太坊仍然无法每秒处理数千笔交易(TPS),这不利于它们的长期应用。 在可以有效地采用和更广泛地使用这些网络之前,需要更高的吞吐量。
在这种情况下,术语“Layer 2”是指针对区块链可扩展性问题提出的多种解决方案, 其中两个主要示例是比特币闪电网络和以太坊 Plasma。 尽管有自己的工作机制和特殊性,但这两种解决方案都在努力为区块链系统提供更高的吞吐量。

[ChatSecure](https://chatsecure.org) is a free and open source encrypted chat client for iPhone that supports [OMEMO encryption](https://en.wikipedia.org/wiki/OMEMO) and [OTR encryption](https://en.wikipedia.org/wiki/Off-the-Record_Messaging) over [XMPP](https://en.wikipedia.org/wiki/Xmpp). Unfortunately ChatSecure Android is no longer available ([more info](/faq)).

ChatSecure is available on the Apple App Store for free.

[![ChatSecure for iPhone](/images/appstore.svg)](https://itunes.apple.com/us/app/chatsecure/id464200063)
从更广泛的意义上讲,Layer 2 协议创建了一个辅助框架,其中区块链交易和流程可以独立于第 1 层(主链)进行。 出于这个原因,这些技术也可以称为“链下”扩展解决方案。例如,具体来说,闪电网络基于状态通道 (state channel),状态通道基本上是在线下执行区块链操作然后将它们报告给主链的附加通道。 状态通道主要用作支付通道。 另一方面,Plasma 框架由侧链 (side chain)组成,侧链本质上是排列成树状结构的小型区块链。

You can also follow ChatSecure on [Twitter](https://twitter.com/ChatSecure) or [Facebook](https://www.facebook.com/chatsecure).
使用链下解决方案的主要优势之一是主链不需要经过任何结构变化,因为第二层是作为额外的层添加的。 因此,第 2 层解决方案有可能在不牺牲网络安全性的情况下实现高吞吐量。
换句话说,由主链执行的大部分工作都可以转移到第二层。 因此,虽然主链(第 1 层)提供安全性,但第二层提供高吞吐量,每秒能够执行数百甚至数千个事务。

# Support

* [GitHub Issues - iOS](https://github.com/chrisballinger/Off-the-Record-iOS/issues)
* [UserVoice - iOS](https://chatsecure.uservoice.com/forums/193939-chatsecure-ios)
* Please report iOS security-related issues directly to [chris@chatsecure.org](mailto:chris@chatsecure.org) ([GPG 50F7D255](/assets/pubkeys/50F7D255.asc)).

# Source Code

The source code for both projects is hosted on GitHub.

* [iOS](https://github.com/chrisballinger/Off-the-Record-iOS) / [License](https://github.com/chrisballinger/Off-the-Record-iOS/blob/master/LICENSE) (GPLv3+)

# Donate

We accept [PayPal](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XRBHJ9AX5VWNA) and [Bitcoin](https://coinbase.com/checkouts/1cf35f00d722205726f50b940786c413) donations for the iOS version. Thank you!

[![bitcoin donation](/images/bitcoin_donate.png)](https://coinbase.com/checkouts/1cf35f00d722205726f50b940786c413) [![paypal donation](/images/paypal_donate.png)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=XRBHJ9AX5VWNA)
目前市场上存在的layer 2 设计方案,例如,zk-Rollup,Plasma, Nocust 他们都引入了一个交易托管来线下处理用户的交易。 这些方案致力于将大量的计算从线上移到线下,但大多数方案没有考虑到用户的隐私性。 用户的余额和交易数据在这些系统中都是透明的,这一点很不利于用户的隐私。 然而,想要同时具有扩展性和隐私性很难,因为增加系统的隐私形势比增加更多的数据和计算量,从而降低区块链的吞吐量, 增加交易的费用。扩展性和隐私性,是硬币的两面,需要适当的取舍。
Binary file modified images/accounts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/banner-bg.jpg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/chat.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/intro-bg.jpg
100755 → 100644
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/register.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
<div class="row">
<div class="col-lg-12">
<div class="intro-message">
<h1>ChatSecure</h1>
<h3>Encrypted Messenger for iOS</h3>
<h1>具有隐私性的区块链 Layer 2 拓展方案</h1>
<h3>采用前沿零知识证明技术在已有 Layer 2 区块链拓展方案上构建隐私保护</h3>
<hr class="intro-divider">
<ul class="list-inline app-download-buttons">
<li>
Expand Down