Commit 2337fb9
Hansie Odendaal
Add Bulletproof rewind functionality
This is closely modelled on Grin's solution, but using two private keys:
- Interfaces:
- create a rewindable ZK proof with up to 23 bytes additional embedded proof
data
- extract the value and 23 bytes proof data only
- extract the value, blinding factor and 23 bytes proof data
- Required:
- two rewind nonces, based on two public rewind keys and the value
commitment
- two blinding nonces, based on the two private rewind keys and the value
commitment
- Use:
- the two rewind nonces are used to extract the value and 23 bytes embedded
proof data
- the two rewind nonces and two blinding nonces are used to extract the
value, blinding factor and 23 bytes embedded proof data1 parent 464acb7 commit 2337fb9
6 files changed
Lines changed: 1030 additions & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
48 | 60 | | |
49 | 61 | | |
50 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
34 | | - | |
| 34 | + | |
| 35 | + | |
35 | 36 | | |
36 | 37 | | |
37 | 38 | | |
| |||
0 commit comments