|
| 1 | +# NUT-12 Test vectors |
| 2 | + |
| 3 | +## `hash_e` function |
| 4 | + |
| 5 | +```shell |
| 6 | +R1: "020000000000000000000000000000000000000000000000000000000000000001" |
| 7 | +R2: "020000000000000000000000000000000000000000000000000000000000000001" |
| 8 | +K: "020000000000000000000000000000000000000000000000000000000000000001" |
| 9 | +C_: "02a9acc1e48c25eeeb9289b5031cc57da9fe72f3fe2861d264bdc074209b107ba2" |
| 10 | +``` |
| 11 | + |
| 12 | +```shell |
| 13 | +hash(R1, R2, K, C_): "a4dc034b74338c28c6bc3ea49731f2a24440fc7c4affc08b31a93fc9fbe6401e" |
| 14 | +``` |
| 15 | + |
| 16 | +## DLEQ verification on `BlindSignature` |
| 17 | + |
| 18 | +The following is a `BlindSignature` with a **valid** DLEQ proof. |
| 19 | +```shell |
| 20 | +A: "0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" |
| 21 | +B_: "02a9acc1e48c25eeeb9289b5031cc57da9fe72f3fe2861d264bdc074209b107ba2" |
| 22 | +``` |
| 23 | + |
| 24 | +```json |
| 25 | +{ |
| 26 | + "amount": 8, |
| 27 | + "id": "00882760bfa2eb41", |
| 28 | + "C_": "02a9acc1e48c25eeeb9289b5031cc57da9fe72f3fe2861d264bdc074209b107ba2", |
| 29 | + "dleq": { |
| 30 | + "e": "9818e061ee51d5c8edc3342369a554998ff7b4381c8652d724cdf46429be73d9", |
| 31 | + "s": "9818e061ee51d5c8edc3342369a554998ff7b4381c8652d724cdf46429be73da" |
| 32 | + } |
| 33 | +} |
| 34 | +``` |
| 35 | + |
| 36 | +## DLEQ verification on `Proof` |
| 37 | + |
| 38 | +The following is a `Prood` with a **valid** DLEQ proof. |
| 39 | + |
| 40 | +```shell |
| 41 | +A: "0279be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798" |
| 42 | +``` |
| 43 | + |
| 44 | +```json |
| 45 | +{ |
| 46 | + "amount": 1, |
| 47 | + "id": "00882760bfa2eb41", |
| 48 | + "secret": "daf4dd00a2b68a0858a80450f52c8a7d2ccf87d375e43e216e0c571f089f63e9", |
| 49 | + "C": "024369d2d22a80ecf78f3937da9d5f30c1b9f74f0c32684d583cca0fa6a61cdcfc", |
| 50 | + "dleq": { |
| 51 | + "e": "b31e58ac6527f34975ffab13e70a48b6d2b0d35abc4b03f0151f09ee1a9763d4", |
| 52 | + "s": "8fbae004c59e754d71df67e392b6ae4e29293113ddc2ec86592a0431d16306d8", |
| 53 | + "r": "a6d13fcd7a18442e6076f5e1e7c887ad5de40a019824bdfa9fe740d302e8d861" |
| 54 | + } |
| 55 | +} |
| 56 | +``` |
0 commit comments