Skip to content

Commit

Permalink
Update config files
Browse files Browse the repository at this point in the history
  • Loading branch information
hwwhww committed Dec 11, 2020
1 parent b4571db commit 2440f5a
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 3 deletions.
13 changes: 12 additions & 1 deletion configs/mainnet/lightclient_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,20 @@

CONFIG_NAME: "mainnet"

# Misc
# ---------------------------------------------------------------

# 2**10 (=1,024)
SYNC_COMMITTEE_SIZE: 1024
# 2**6 (=64)
SYNC_COMMITTEE_PUBKEY_AGGREGATES_SIZE: 64


# Time parameters
# ---------------------------------------------------------------
# 2**8 (= 256)
EPOCHS_PER_SYNC_COMMITTEE_PERIOD: 256


# Signature domains
# ---------------------------------------------------------------
DOMAIN_SYNC_COMMITTEE: 0x07000000
15 changes: 14 additions & 1 deletion configs/minimal/lightclient_patch.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,20 @@

CONFIG_NAME: "minimal"

# Misc
# ---------------------------------------------------------------

# [customized]
SYNC_COMMITTEE_SIZE: 64
# [customized]
SYNC_COMMITTEE_PUBKEY_AGGREGATES_SIZE: 16


# Time parameters
# ---------------------------------------------------------------
# 2**8 (= 256)
EPOCHS_PER_SYNC_COMMITTEE_PERIOD: 256


# Signature domains
# ---------------------------------------------------------------
DOMAIN_SYNC_COMMITTEE: 0x07000000
8 changes: 7 additions & 1 deletion specs/lightclient/beacon-chain.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
- [Introduction](#introduction)
- [Constants](#constants)
- [Configuration](#configuration)
- [Constants](#constants-1)
- [Misc](#misc)
- [Time parameters](#time-parameters)
- [Domain types](#domain-types)
Expand Down Expand Up @@ -47,13 +48,18 @@ This is a standalone beacon chain patch adding light client support via sync com

## Configuration

### Constants

| Name | Value |
| - | - |
| `G2_POINT_AT_INFINITY` | `BLSSignature(b'\xc0' + b'\x00' * 95)` |

### Misc

| Name | Value |
| - | - |
| `SYNC_COMMITTEE_SIZE` | `uint64(2**10)` (= 1024) |
| `SYNC_COMMITTEE_PUBKEY_AGGREGATES_SIZE` | `uint64(2**6)` (= 64) |
| `G2_POINT_AT_INFINITY` | `BLSSignature(b'\xc0' + b'\x00' * 95)` |

### Time parameters

Expand Down

0 comments on commit 2440f5a

Please sign in to comment.