fix: spell

This commit is contained in:
pablo 2025-10-19 16:01:13 +03:00 committed by Igor Sirotin
parent ebaea1f7ee
commit 11a3e79d78
No known key found for this signature in database
GPG Key ID: 0EABBCB40CB9AD4A
2 changed files with 10 additions and 3 deletions

View File

@ -34,6 +34,7 @@ contentTopic
contentTopics contentTopics
createNode createNode
createReliableChannel createReliableChannel
Changelog
creativecommons creativecommons
cryptographic cryptographic
danielkaiser danielkaiser
@ -48,6 +49,8 @@ DefaultRateLimitConfig
DefaultSdsConfig DefaultSdsConfig
DefaultSegmentationConfig DefaultSegmentationConfig
dev dev
dataSegments
Deployability
DHT DHT
discv discv
DISCV DISCV
@ -163,6 +166,7 @@ ProtocolsConfig
Nim Nim
nim nim
parityRate parityRate
proto
protobuf protobuf
pubsub pubsub
rateLimitConfig rateLimitConfig
@ -216,6 +220,7 @@ segmentationConfig
segmentSizeBytes segmentSizeBytes
sharding sharding
RLN RLN
SegmentMessageProto
segmentSize segmentSize
SHARDING SHARDING
sqlite sqlite
@ -237,6 +242,8 @@ unvalidated
UUID UUID
UX UX
waku waku
uint
waku
Waku Waku
Waku's Waku's
WAKU WAKU

View File

@ -31,7 +31,7 @@ The key words **“MUST”**, **“MUST NOT”**, **“REQUIRED”**, **“SHALL
When the original payload exceeds `segmentSize`, the sender **MUST**: When the original payload exceeds `segmentSize`, the sender **MUST**:
- Compute a 32-byte `entire_message_hash = Keccak256(originalPayload)`. - Compute a 32-byte `entire_message_hash = Keccak256(original_payload)`.
- Split the payload into one or more **data segments**, each of size up to `segmentSize` bytes. - Split the payload into one or more **data segments**, each of size up to `segmentSize` bytes.
- Optionally generate **parity segments** using ReedSolomon erasure coding, at a fixed parity rate of 12.5%. - Optionally generate **parity segments** using ReedSolomon erasure coding, at a fixed parity rate of 12.5%.
Implementations **MUST NOT** produce more than 256 total segments (data + parity). Implementations **MUST NOT** produce more than 256 total segments (data + parity).
@ -53,7 +53,7 @@ Upon receiving a segmented message, the receiver **MUST**:
- Reconstruct by: - Reconstruct by:
- Concatenating data segments if all are present, or - Concatenating data segments if all are present, or
- Applying ReedSolomon decoding if parity segments are available. - Applying ReedSolomon decoding if parity segments are available.
- Verify `Keccak256(reconstructedPayload)` matches `entire_message_hash`. - Verify `Keccak256(reconstructed_payload)` matches `entire_message_hash`.
On mismatch, the message **MUST** be discarded and logged as invalid. On mismatch, the message **MUST** be discarded and logged as invalid.
- Once verified, the reconstructed payload **SHALL** be delivered to the application. - Once verified, the reconstructed payload **SHALL** be delivered to the application.
- Incomplete reconstructions **SHOULD** be garbage-collected after a timeout. - Incomplete reconstructions **SHOULD** be garbage-collected after a timeout.
@ -74,7 +74,7 @@ message SegmentMessageProto {
// Segment payload (data or parity shard) // Segment payload (data or parity shard)
bytes payload = 4; bytes payload = 4;
// Parity segment indexing (used iff segments_count == 0) // Parity segment indexing (used if segments_count == 0)
uint32 parity_segment_index = 5; uint32 parity_segment_index = 5;
uint32 parity_segments_count = 6; // number of parity segments (> 0) uint32 parity_segments_count = 6; // number of parity segments (> 0)
} }