Repository navigation
Expand file tree
/
Copy pathREADME.md.template
More file actions
225 lines (148 loc) · 9.25 KB
/
Copy pathREADME.md.template
File metadata and controls
225 lines (148 loc) · 9.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<!-- Generated from README.md.template and the network identity JSON files.
Edit the template or JSON files, then run: uv run --no-project python scripts/generate_readme.py -->
<p align="center">
<a href="https://tempo.xyz">
<picture>
<source media="(prefers-color-scheme: dark)" srcset=".github/assets/tempo-wordmark-white.svg">
<img alt="Tempo wordmark" src=".github/assets/tempo-wordmark-black.svg" width="360">
</picture>
</a>
</p>
# Tempo
[](https://codspeed.io/tempoxyz/tempo?utm_source=badge)
The blockchain for payments at scale.
Tempo nodes use published [network identities](#network-identities) to verify consensus finalisation and authenticate snapshots.
[Tempo](https://docs.tempo.xyz/) is a blockchain designed specifically for stablecoin payments. Its architecture focuses on high throughput, low cost, and features that financial institutions, payment service providers, and fintech platforms expect from modern payment infrastructure.
You can get started today by integrating with the [Tempo testnet](https://docs.tempo.xyz/quickstart/integrate-tempo), [building on Tempo](https://docs.tempo.xyz/guide/use-accounts), [running a Tempo node](https://docs.tempo.xyz/guide/node), reading the [Tempo protocol specs](https://docs.tempo.xyz/protocol) or by [building with Tempo SDKs](https://docs.tempo.xyz/sdk).
## What makes Tempo different
- [TIP‑20 token standard](https://docs.tempo.xyz/protocol/tip20/overview) (enshrined ERC‑20 extensions)
- Predictable payment throughput via dedicated payment lanes reserved for TIP‑20 transfers (eliminates noisy‑neighbor contention).
- Native reconciliation with on‑transfer memos and commitment patterns (hash/locator) for off‑chain PII and large data.
- Built‑in compliance through [TIP‑403 Policy Registry](https://docs.tempo.xyz/protocol/tip403/overview): single policy shared across multiple tokens, updated once and enforced everywhere.
- Low, predictable fees in [stablecoins](https://docs.tempo.xyz/learn/stablecoins)
- Users pay gas directly in USD-stablecoins at launch; the [Fee AMM](https://docs.tempo.xyz/protocol/fees/fee-amm#fee-amm-overview) automatically converts to the validator’s preferred stablecoin.
- TIP‑20 transfers target sub‑millidollar costs (<$$0.001).
- [Tempo Transactions](https://docs.tempo.xyz/guide/tempo-transaction) (native “smart accounts”)
- Batched payments: atomic multi‑operation payouts (payroll, settlements, refunds).
- Fee sponsorship: apps can pay users' gas to streamline onboarding and flows.
- Scheduled payments: protocol‑level time windows for recurring and timed disbursements.
- Modern authentication: passkeys via WebAuthn/P256 (biometric sign‑in, secure enclave, cross‑device sync).
- Performance and finality
- Built on the [Reth SDK](https://github.com/paradigmxyz/reth), the most performant and flexible EVM (Ethereum Virtual Machine) execution client.
- Simplex Consensus (via [Commonware](https://commonware.xyz/)): fast, sub‑second finality in normal conditions; graceful degradation under adverse networks.
- Coming soon
- On‑chain FX and non‑USD stablecoin support for direct on‑chain liquidity; pay fees in more currencies.
- Native private token standard: opt‑in privacy for balances/transfers coexisting with issuer compliance and auditability.
## What makes Tempo familiar
- Fully compatible with the Ethereum Virtual Machine (EVM), targeting the Osaka hardfork.
- Deploy and interact with smart contracts using the same tools, languages, and frameworks used on Ethereum, such as Solidity, Foundry, and Hardhat.
- All Ethereum JSON-RPC methods work out of the box.
While the execution environment mirrors Ethereum's, Tempo introduces some differences optimized for payments, described [here](https://docs.tempo.xyz/quickstart/evm-compatibility).
## Getting Started
### As a user
You can connect to Tempo's public testnet using the following details:
| Property | Value |
| ------------------ | ---------------------------------- |
| **Network Name** | Tempo Testnet (Moderato) |
| **Currency** | `USD` |
| **Chain ID** | `42431` |
| **HTTP URL** | `https://rpc.moderato.tempo.xyz` |
| **WebSocket URL** | `wss://rpc.moderato.tempo.xyz` |
| **Block Explorer** | `https://explore.tempo.xyz` |
Next, grab some stablecoins to test with from Tempo's [Faucet](https://docs.tempo.xyz/quickstart/faucet#faucet).
Alternatively, use [`cast`](https://github.com/foundry-rs/foundry):
```bash
cast rpc tempo_fundAddress <ADDRESS> --rpc-url https://rpc.moderato.tempo.xyz
```
### As an operator
We provide three different installation paths: installing a pre-built binary, building from source or using our provided Docker image.
- [Pre-built Binary](https://docs.tempo.xyz/guide/node/installation#pre-built-binary)
- [Build from Source](https://docs.tempo.xyz/guide/node/installation#build-from-source)
- [Docker](https://docs.tempo.xyz/guide/node/installation#docker)
See the [Tempo documentation](https://docs.tempo.xyz/guide/node) for instructions on how to install and run Tempo.
### As a developer
Tempo has several SDKs to help you get started building on Tempo:
- [TypeScript](https://docs.tempo.xyz/sdk/typescript)
- [Rust](https://docs.tempo.xyz/sdk/rust)
- [Go](https://docs.tempo.xyz/sdk/go)
- [Foundry](https://docs.tempo.xyz/sdk/foundry)
For local development and CI, run the [bootstrapped localnet container](./docs/localnet.md):
```bash
docker run --rm -p 127.0.0.1:8545:8545 ghcr.io/tempoxyz/tempo-localnet:latest
```
For prover E2E devnets, `ghcr.io/tempoxyz/tempo-devnet` (also on Docker Hub)
contains the Tempo L1 binary built with `custom-pcrs`. It is published alongside
the regular images with matching tags, including `sha-<short-sha>` and `nightly`.
Pass the prover measurements using `--zone-verifier.custom-pcrs` or
`TEMPO_ZONE_VERIFIER_CUSTOM_PCRS`; this variant refuses to start on mainnet and
Moderato. The regular images keep the compiled-in PCR policy.
Want to contribute?
First, clone the repository:
```
git clone https://github.com/tempoxyz/tempo
cd tempo
```
Next, install [`just`](https://github.com/casey/just?tab=readme-ov-file#packages).
Install the dependencies:
```bash
just
```
Configure Git to run the repository hooks:
```bash
./scripts/setup-hooks.sh
```
Build Tempo:
```bash
just build-all
```
Run the tests:
```bash
cargo nextest run
```
Start a `localnet`:
```bash
just localnet
```
## Contributing
Our contributor guidelines can be found in [`CONTRIBUTING.md`](https://github.com/tempoxyz/tempo?tab=contributing-ov-file).
## Network identities
These BLS threshold public keys are built into Tempo nodes and used by both follow/RPC nodes and validators to verify consensus finalisation certificates, including those used to authenticate snapshots.
**[Mainnet](./mainnet-network-identity.json) — from epoch ${mainnet_from_epoch}**
```text
${mainnet_identity}
```
**[Testnet (Moderato)](./testnet-network-identity.json) — from epoch ${testnet_from_epoch}**
```text
${testnet_identity}
```
See the [network identity loader](./crates/chainspec/src/network_identity.rs) for how these files are loaded. To override them, see [How do I override the network identity?](https://tempo.xyz/developers/docs/guide/node/validator-troubleshooting#my-node-fails-to-start-finalized-tip-certificate-failed-verification-against-the-trusted-network-identity).
## Security
See [`SECURITY.md`](https://github.com/tempoxyz/tempo?tab=security-ov-file). Note: Tempo is still undergoing audit and does not have an active bug bounty. Submissions will not be eligible for a bounty until audits have concluded.
### Verifying release binaries
Each release ships `<binary>-<version>-<target>.tar.gz` plus `.sha256` (archive checksum) and `.asc` (GPG signature), and is also covered by Sigstore-signed SLSA build provenance.
The [`tempoup`](./tempoup) installer performs these checks automatically on every install. To verify manually, pick **one** of the two paths below — both prove the archive came from the tagged commit, signed by tempoxyz.
**Path A — offline / no GitHub auth required (checksum + GPG):**
```bash
TAG=v1.6.0
ARCHIVE=tempo-$${TAG}-x86_64-unknown-linux-gnu.tar.gz
gh release download "$$TAG" --repo tempoxyz/tempo \
-p "$$ARCHIVE" -p "$$ARCHIVE.sha256" -p "$$ARCHIVE.asc"
sha256sum -c "$$ARCHIVE.sha256"
# Public key + fingerprint:
# https://docs.tempo.xyz/guide/node/installation#verifying-releases
gpg --verify "$$ARCHIVE.asc" "$$ARCHIVE"
```
**Path B — Sigstore (requires `gh` installed and authenticated):**
```bash
TAG=v1.6.0
ARCHIVE=tempo-$${TAG}-x86_64-unknown-linux-gnu.tar.gz
gh release download "$$TAG" --repo tempoxyz/tempo -p "$$ARCHIVE"
gh attestation verify "$$ARCHIVE" --repo tempoxyz/tempo \
--predicate-type https://slsa.dev/provenance/v1
```
## License
Licensed under either of [Apache License](./LICENSE-APACHE), Version
2.0 or [MIT License](./LICENSE-MIT) at your option.
Unless you explicitly state otherwise, any contribution intentionally submitted
for inclusion in these crates by you, as defined in the Apache-2.0 license,
shall be dual licensed as above, without any additional terms or conditions.