<p>I'm trying to reproduce keys derivation for testing vectors in Bolt #03.
At the moment I'm can not reproduce the <code>local_revocation_pubkey</code>: <code>0212a140cd0c6539d07cd08dfe09984dec3251ea808b892efeac3ede9402bf2b19</code></p>
<p>Which <code>revocation_basepoint</code> and <code>per_commitment_point</code> shall I use for the derivation (I know the formula and have tested it with the other example)?</p>
<p>There is a description how to derive another <code>revocation_pubkey</code> <code>0x02916e326636d19c33f13e8c0c3a03dd157f332f3e99c317c141dd865eb01f8ff0</code>, but not the one used in the first commitment.</p>
<p>Could it be that the values of <code>revocation_basepoint</code> and <code>per_commitment_point</code> needed for derivation of <code>0212a140cd0c6539d07cd08dfe09984dec3251ea808b892efeac3ede9402bf2b19</code> are not included in the testing vectors?</p>

CC BY-SA 4.0
2023-10-12T12:27:48.850Z
BOLT3 describes how to derive it already, could you add more details to your question such as what you tried and didn't work?
Antoine Poinsot
CC BY-SA 4.0
2023-10-12T19:36:42.133Z
Hello Pawel, could you please _edit your question post_ to provide more information instead of posting comments?
Murch
CC BY-SA 4.0
2023-10-25T20:34:52.287Z
When you repeat the description how to derive the second `revocation_pubkey`, does your method reproduce the described results?
Murch
CC BY-SA 4.0
2023-10-26T07:32:02.113Z
Yes, I can reproduce with my code revocation_pubkey 0x02916e326636d19c33f13e8c0c3a03dd157f332f3e99c317c141dd865eb01f8ff0. But this key is not used in transactions examples, the revocation_pubkey that used in transaction examples is 0212a140cd0c6539d07cd08dfe09984dec3251ea808b892efeac3ede9402bf2b19. My goal was just to manually recreate all transactions in testing vector, but I believe revocation_basepoint and per_commitment_point are not included in testing vectors
Pawel
<lightning-network><ln-commitment-transaction>
Deriving revocation_pubkey BOLT #3
Pawel
# Deriving revocation_pubkey BOLT #3

(Asked by: username_0 on 2023-10-12)

I'm trying to reproduce keys derivation for testing vectors in Bolt #03.
At the moment I'm can not reproduce the `local_revocation_pubkey`: `0212a140cd0c6539d07cd08dfe09984dec3251ea808b892efeac3ede9402bf2b19`

Which `revocation_basepoint` and `per_commitment_point` shall I use for the derivation (I know the formula and have tested it with the other example)?

There is a description how to derive another `revocation_pubkey` `0x02916e326636d19c33f13e8c0c3a03dd157f332f3e99c317c141dd865eb01f8ff0`, but not the one used in the first commitment.

Could it be that the values of `revocation_basepoint` and `per_commitment_point` needed for derivation of `0212a140cd0c6539d07cd08dfe09984dec3251ea808b892efeac3ede9402bf2b19` are not included in the testing vectors?

**Tags:** lightning-network, ln-commitment-transaction

> **Comments:**
> **username_1**: BOLT3 describes how to derive it already, could you add more details to your question such as what you tried and didn't work?  
> **username_2**: Hello username_0, could you please _edit your question post_ to provide more information instead of posting comments?  
> **username_2**: When you repeat the description how to derive the second `revocation_pubkey`, does your method reproduce the described results?  
> **username_0**: Yes, I can reproduce with my code revocation_pubkey 0x02916e326636d19c33f13e8c0c3a03dd157f332f3e99c317c141dd865eb01f8ff0. But this key is not used in transactions examples, the revocation_pubkey that used in transaction examples is 0212a140cd0c6539d07cd08dfe09984dec3251ea808b892efeac3ede9402bf2b19. My goal was just to manually recreate all transactions in testing vector, but I believe revocation_basepoint and per_commitment_point are not included in testing vectors  

---

## 0 answers

