Skip to content

Commit dc51c65

Browse files
committed
fix: element id targets
1 parent d92679c commit dc51c65

File tree

1 file changed

+2
-2
lines changed
  • public/content/developers/tutorials/secret-state

1 file changed

+2
-2
lines changed

public/content/developers/tutorials/secret-state/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ def map2mineCount(bool[${width+2}][${height+2}] map, u32 x, u32 y) -> u8 {
272272
}
273273
```
274274

275-
<a id="why-map-border">
275+
#### Why map border {#why-map-border}
276276

277277
Zero-knowlege proofs use [arithmetic circuits](https://medium.com/web3studio/simple-explanations-of-arithmetic-circuits-and-zero-knowledge-proofs-806e59a79785), which don't have an easy equivalent to an `if` statement. Instead, they use the equivalent of the [conditional operator](https://en.wikipedia.org/wiki/Ternary_conditional_operator). If `a` can be either zero or one, you can calculate `if a { b } else { c }` as `ab+(1-a)c`.
278278

@@ -390,7 +390,7 @@ On a production system we might use a more complicated [setup ceremony](https://
390390
391391
**Note:** Compilation of Zokrates programs and key creation are slow processes. There is no need to repeat them every time, just when map size changes. On a production system you'd do them once, and then store the output. The only reason I am not doing it here is for the sake of simplicity.
392392
393-
<a id="calculateMapHash" />
393+
#### `calculateMapHash` {#calculateMapHash}
394394
395395
```typescript
396396
const calculateMapHash = function(hashMe: boolean[][]): string {

0 commit comments

Comments
 (0)