aboutsummaryrefslogtreecommitdiff
path: root/draft-schanzen-gns.html
diff options
context:
space:
mode:
Diffstat (limited to 'draft-schanzen-gns.html')
-rw-r--r--draft-schanzen-gns.html78
1 files changed, 72 insertions, 6 deletions
diff --git a/draft-schanzen-gns.html b/draft-schanzen-gns.html
index 81923c6..1ed4743 100644
--- a/draft-schanzen-gns.html
+++ b/draft-schanzen-gns.html
@@ -2462,7 +2462,7 @@ table {
2462 128 / 8) 2462 128 / 8)
2463 ALTERNATIVE: 2463 ALTERNATIVE:
2464 PRK := HKDF-Extract ("gnunet-proof-of-work-iv", K) 2464 PRK := HKDF-Extract ("gnunet-proof-of-work-iv", K)
2465 IV := HKDF-Expand (PRK, "gnunet-revocation-proof-of-work", 128 / 8); 2465 IV := HKDF-Expand (PRK, "gnunet-revocation-proof-of-work", 256 / 8);
2466 2466
2467 </pre> 2467 </pre>
2468</div> 2468</div>
@@ -2486,16 +2486,82 @@ table {
2486</div> 2486</div>
2487<figcaption><a href="#figure-18" class="selfRef">Figure 18</a></figcaption></figure> 2487<figcaption><a href="#figure-18" class="selfRef">Figure 18</a></figcaption></figure>
2488<p id="section-7-15"> 2488<p id="section-7-15">
2489 The above EREV data object is again derived using the scrypt algorithm. 2489 The above EREV data object is again derived using the scrypt algorithm.
2490 The proof of work is complete, if the following inequality holds:<a href="#section-7-15" class="pilcrow">¶</a></p> 2490 The proof of work is complete, if the following inequality holds:<a href="#section-7-15" class="pilcrow">¶</a></p>
2491<figure id="figure-19"> 2491<figure id="figure-19">
2492 <div class="artwork art-text alignLeft" id="section-7-16.1"> 2492 <div class="artwork art-text alignLeft" id="section-7-16.1">
2493<pre> 2493<pre>
2494 scrypt(P := EREV) &lt; 2^(39)-1 2494 POW := scrypt(P := EREV) &lt; 2^(39)-1
2495 2495
2496 </pre> 2496 </pre>
2497</div> 2497</div>
2498<figcaption><a href="#figure-19" class="selfRef">Figure 19</a></figcaption></figure> 2498<figcaption><a href="#figure-19" class="selfRef">Figure 19</a></figcaption></figure>
2499<p id="section-7-17">
2500 In order to prove ownership over the revoked zone, the owner calculates
2501 a signature over the following data:<a href="#section-7-17" class="pilcrow">¶</a></p>
2502<div id="figure_revocationdata">
2503<figure id="figure-20">
2504 <div class="artwork art-text alignLeft" id="section-7-18.1">
2505<pre>
2506 0 8 16 24 32 40 48 56
2507 +-----+-----+-----+-----+-----+-----+-----+-----+
2508 | SIGNATURE |
2509 | |
2510 | |
2511 | |
2512 | |
2513 | |
2514 | |
2515 | |
2516 +-----+-----+-----+-----+-----+-----+-----+-----+
2517 | SIZE | PURPOSE |
2518 +-----+-----+-----+-----+-----+-----+-----+-----+
2519 | PUBLIC KEY |
2520 | |
2521 | |
2522 | |
2523 +-----+-----+-----+-----+-----+-----+-----+-----+
2524 | POW |
2525 +-----------------------------------------------+
2526 </pre>
2527</div>
2528<figcaption><a href="#figure-20" class="selfRef">Figure 20</a></figcaption></figure>
2529</div>
2530<p id="section-7-19">where:<a href="#section-7-19" class="pilcrow">¶</a></p>
2531<dl class="dlParallel" id="section-7-20">
2532 <dt id="section-7-20.1">SIGNATURE</dt>
2533<dd id="section-7-20.2">
2534 A 512-bit ECDSA deterministic signature compliant with
2535 <span>[<a href="#RFC6979" class="xref">RFC6979</a>]</span>. The signature is computed over the data
2536 following the SIZE, PURPOSE and PUBLIC KEY fields.
2537 The signature is created using the private zone key "d" (see
2538 <a href="#zones" class="xref">Section 2</a>).<a href="#section-7-20.2" class="pilcrow">¶</a>
2539</dd>
2540<dt id="section-7-20.3">SIZE</dt>
2541<dd id="section-7-20.4">
2542 A 32-bit value containing the length of the signed data in network
2543 byte order.<a href="#section-7-20.4" class="pilcrow">¶</a>
2544</dd>
2545<dt id="section-7-20.5">PURPOSE</dt>
2546<dd id="section-7-20.6">
2547 A 32-bit signature purpose flag. This field MUST be 3 (in network
2548 byte order).<a href="#section-7-20.6" class="pilcrow">¶</a>
2549</dd>
2550<dt id="section-7-20.7">PUBLIC KEY</dt>
2551<dd id="section-7-20.8">
2552 is the 256-bit public key "zk" of the zone which is being revoked and
2553 the key to be used to verify SIGNATURE. The
2554 wire format of this value is defined in <span>[<a href="#RFC8032" class="xref">RFC8032</a>]</span>,
2555 Section 5.1.5.<a href="#section-7-20.8" class="pilcrow">¶</a>
2556</dd>
2557<dt id="section-7-20.9">POW</dt>
2558<dd id="section-7-20.10">
2559 The value of the proof of work.<a href="#section-7-20.10" class="pilcrow">¶</a>
2560</dd>
2561</dl>
2562<p id="section-7-21">
2563 The resulting block may now be published and disseminated. The concrete
2564 dissemination and publication methods are out of scope of this document.<a href="#section-7-21" class="pilcrow">¶</a></p>
2499</section> 2565</section>
2500</div> 2566</div>
2501<div id="governance"> 2567<div id="governance">
@@ -2618,7 +2684,7 @@ The registry shall record for each entry:<a href="#section-10-1" class="pilcrow"
2618 Served", as described in <span>[<a href="#RFC8126" class="xref">RFC8126</a>]</span>. 2684 Served", as described in <span>[<a href="#RFC8126" class="xref">RFC8126</a>]</span>.
2619 IANA is requested to populate this registry as follows:<a href="#section-10-3" class="pilcrow">¶</a></p> 2685 IANA is requested to populate this registry as follows:<a href="#section-10-3" class="pilcrow">¶</a></p>
2620<div id="figure_rrtypenums"> 2686<div id="figure_rrtypenums">
2621<figure id="figure-20"> 2687<figure id="figure-21">
2622 <div class="artwork art-text alignLeft" id="section-10-4.1"> 2688 <div class="artwork art-text alignLeft" id="section-10-4.1">
2623<pre> 2689<pre>
2624 Number | Type | Contact | References 2690 Number | Type | Contact | References
@@ -2632,7 +2698,7 @@ The registry shall record for each entry:<a href="#section-10-1" class="pilcrow"
2632 FIXME We have a lot more? 2698 FIXME We have a lot more?
2633 </pre> 2699 </pre>
2634</div> 2700</div>
2635<figcaption><a href="#figure-20" class="selfRef">Figure 20</a></figcaption></figure> 2701<figcaption><a href="#figure-21" class="selfRef">Figure 21</a></figcaption></figure>
2636</div> 2702</div>
2637</section> 2703</section>
2638</div> 2704</div>