File tree Expand file tree Collapse file tree 2 files changed +1
-13
lines changed
content/docs/hello-world-ncn Expand file tree Collapse file tree 2 files changed +1
-13
lines changed Original file line number Diff line number Diff line change @@ -308,18 +308,6 @@ if !ncn_vault_ticket
308308
309309This 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
3253131 . Custom Validation Logic: Implement more complex validation rules for messages
Original file line number Diff line number Diff 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:
You can’t perform that action at this time.
0 commit comments