unionlabs/union
GitHub: unionlabs/union
Union是一个基于零知识证明的跨链基础设施,提供高效、安全的消息传递和资产转移。
Stars: 74001 | Forks: 3893
[](https://garnix.io)
[][docs]
[![Discord 徽章]](https://discord.union.build)
[][twitter badge]
Union 是通用消息传递、资产转移、NFT 和 DeFi 的超高效零知识基础设施层。它基于 [Consensus Verification],不依赖于受信任的第三方、预言机、多重签名或 MPC。它实现了 [IBC],以与 [Cosmos] 链兼容,并连接到 EVM 链,如 [Ethereum]、[Berachain (beacon-kit)](https://github.com/berachain/beacon-kit)、[Arbitrum] 等。
其他链上合同的升级性、连接、令牌配置和协议的演变都将由去中心化治理控制,使 Union 的优先级与其用户、验证者和运营商保持一致。
## 组件
| 组件 | 描述 | 语言(s) |
| --------------------------------------------------- | ---------------------------------------------------- | --------------------- |
| [`uniond`](./uniond/README.md) | Union 节点实现,使用 [`CometBLS`] | [Go] |
| [`galoisd`](./galoisd) | 零知识证明实现 | [Go] [Gnark] |
| [`voyager`](./voyager) | 模块化超高性能跨生态系统中继器 | [Rust] |
| [`cosmwasm`](./cosmwasm) | [CosmWasm] 智能合约堆栈 | [Rust] |
| [`light-clients`](./cosmwasm/lightclient) | 各种生态系统的 [Light Clients] | [Rust] |
| [`unionvisor`](./unionvisor/README.md) | 用于生产使用的节点监督器 | [Rust] |
| [`drip`](./drip) | [Cosmos] 链的水龙头:[app.union.build/faucet] | [Rust] |
| [`evm`](./evm) | [EVM] 智能合约堆栈 | [Solidity] |
| [`app`](./app2) | [app.union.build] | [TypeScript] [Svelte] |
| [`site`](./site) | [union.build] | [TypeScript] [Astro] |
| [`TypeScript SDK`](./ts-sdk) | 与 Union 交互的 TypeScript SDK | [TypeScript] |
## 快速入门
安装 [Nix] 以 _[可重复构建](https://en.wikipedia.org/wiki/Reproducible_builds) 任何组件_,并进入具有 _所有依赖项_ 的开发外壳:
```
curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install
```
_(注意,某些组件只能在 Linux 上构建。如果您使用 macOS,我们建议使用 [OrbStack] 在两分钟内轻松设置 [NixOS] 虚拟机。大多数 Union 开发者使用 macOS 与 [OrbStack],无需在 [NixOS] 虚拟机内安装 Nix。)_
您现在可以 _可重复地_ 从源代码构建 Union 的任何组件:
```
nix build .#uniond -L
nix build .#voyager -L
nix build .#app -L
# 查看所有包,请运行:
nix flake show
```
您构建的内容将位于 `result/`
您现在还可以进入我们的开发外壳,其中包含您需要用于任何组件的所有依赖项(`cargo`、`rustc`、`node`、`go` 等):
_(不要担心,这不会影响此存储库之外的系统)_
```
nix develop
```
运行以下命令以格式化整个存储库并在每个 PR 之前检查拼写:
```
nix run .#pre-commit -L
```
如果您需要任何帮助,请查看 [Union 的 discord](https://discord.union.build) 上的 `#developers` 频道。
## 支持的链
| 网络 | 主网 | 测试网 |
| ------------- | --------------------------- | -------------------------------------- |
| **Arbitrum** | `arbitrum.42161` | `arbitrum.421614` |
| **Babylon** | `babylon.bbn-1` | `babylon.bbn-test-6` |
| **Base** | `base.8453` | `base.84532` |
| **Berachain** | `berachain.80094` | `berachain.80069` |
| **Bob** | `bob.60808` | `bob.808813` |
| **BSC** | `bsc.56` | `bsc.97` |
| **Corn** | `corn.21000000` | `corn.21000001` |
| **Ethereum** | `ethereum.1` | `ethereum.11155111`, `ethereum.560048` |
| **Osmosis** | `osmosis.osmosis-1` | `osmosis.osmo-test-5` |
| **Sei** | `sei.pacific-1`, `sei.1329` | `sei.atlantic-2`, `sei.1328` |
| **Sui** | - | `sui.4c78adac` |
| **Union** | `union.union-1` | `union.union-testnet-10` |
| **Xion** | `xion.xion-mainnet-1` | `xion.xion-testnet-2` |
*完整列表请见 https://docs.union.build/ucs/04/*
## 文档
官方文档托管 [此处][docs]。每个单独的组件也有针对贡献者的开发者文档,您可以在每个 `README.md` 中找到它们。
标签:Arbitrum, Berachain, censorship resistance, CometBLS, Cosmos, DeFi, Discord, EVM, Gnark, Go语言, IBC, NFT, Twitter, 加密货币, 区块链, 去中心化治理, 去中心化金融, 可视化界面, 安全协议, 文档, 日志审计, 智能合约, 消息传递, 社区, 程序破解, 资产转移, 跨链技术, 通知系统, 零知识证明, 高安全性