Skip to content

Commit 3b53edd

Browse files
authored
Fix: Remove Message Validation (#79)
* fix: remove validation * fix: remove sha256
1 parent a82c91b commit 3b53edd

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

content/docs/hello-world-ncn/ncn-on-chain.mdx

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -308,18 +308,6 @@ if !ncn_vault_ticket
308308

309309
This ensures that only properly registered and active participants can contribute to consensus.
310310

311-
#### Message Validation
312-
313-
Operators must submit messages that match the required format:
314-
315-
```rust
316-
if !message.starts_with(&message_acc.keyword()) {
317-
return Err(ProgramError::InvalidAccountData);
318-
}
319-
```
320-
321-
This simple validation ensures that operators are responding to the correct challenge.
322-
323311
## Extending the Example
324312

325313
1. Custom Validation Logic: Implement more complex validation rules for messages

content/docs/hello-world-ncn/overview.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ The NCN program demonstrates the core workflow of a consensus network:
5050

5151
- **Operators performing computation and responding to messages**
5252

53-
- In our example, operators calculate a SHA-256 hash of the message
53+
- In our example, operators calculate a hash of the message
5454

5555
<Callout>
5656
In real NCNs, operator might:

0 commit comments

Comments
 (0)