From e52cef457cb6e7388313f92d6dd678c51ead2af5 Mon Sep 17 00:00:00 2001 From: keiff3r Date: Mon, 9 Dec 2024 15:29:52 +0100 Subject: [PATCH] docs: adapt docs for export_private_key --- doc/export_private_key.md | 31 +++++++++++++++++++++---------- 1 file changed, 21 insertions(+), 10 deletions(-) diff --git a/doc/export_private_key.md b/doc/export_private_key.md index a997cb23..679eb37c 100644 --- a/doc/export_private_key.md +++ b/doc/export_private_key.md @@ -17,13 +17,24 @@ If P2 = 0x02, the BLS12-381 private keys will be exported instead. (Generated us ## Protocol description -- Single command - -| INS | P1 | P2 | CDATA | Comment | -| ------ | ------ | ------ | ------------------ | -------------------------------------------------------------------------------------------------------------- | -| `0x05` | `0x00` | `0x01` | `identity[uint32]` | Export of PRF key seed for the BLS12-381 KeyGen algorithm (Deprecated) | -| `0x05` | `0x01` | `0x01` | `identity[uint32]` | Export of PRF key seed for the BLS12-381 KeyGen algorithm with alternative display (for recovery) (Deprecated) | -| `0x05` | `0x02` | `0x01` | `identity[uint32]` | Export of PRF key and IdCredSec seeds for the BLS12-381 KeyGen algorithm (Deprecated) | -| `0x05` | `0x00` | `0x02` | `identity[uint32]` | Export of PRF key (BLS12-381) | -| `0x05` | `0x01` | `0x02` | `identity[uint32]` | Export of PRF key with alternative display (for recovery) (BLS12-381) | -| `0x05` | `0x02` | `0x02` | `identity[uint32]` | Export of PRF key and IdCredSec (BLS12-381) | +For legacy paths: + +| INS | P1 | P2 | CDATA | Comment | +| ------ | ------ | ------ | ----------------------- | -------------------------------------------------------------------------------------------------------------- | +| `0x05` | `0x00` | `0x01` | `0x00,identity[uint32]` | Export of PRF key seed for the BLS12-381 KeyGen algorithm (Deprecated) | +| `0x05` | `0x01` | `0x01` | `0x00,identity[uint32]` | Export of PRF key seed for the BLS12-381 KeyGen algorithm with alternative display (for recovery) (Deprecated) | +| `0x05` | `0x02` | `0x01` | `0x00,identity[uint32]` | Export of PRF key and IdCredSec seeds for the BLS12-381 KeyGen algorithm (Deprecated) | +| `0x05` | `0x00` | `0x02` | `0x00,identity[uint32]` | Export of PRF key (BLS12-381) | +| `0x05` | `0x01` | `0x02` | `0x00,identity[uint32]` | Export of PRF key with alternative display (for recovery) (BLS12-381) | +| `0x05` | `0x02` | `0x02` | `0x00,identity[uint32]` | Export of PRF key and IdCredSec (BLS12-381) | + +For new paths: + +| INS | P1 | P2 | CDATA | Comment | +| ------ | ------ | ------ | ------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | +| `0x05` | `0x00` | `0x01` | `0x01,identity_provider[uint32],identity[uint32]` | Export of PRF key seed for the BLS12-381 KeyGen algorithm (Deprecated) | +| `0x05` | `0x01` | `0x01` | `0x01,identity_provider[uint32],identity[uint32]` | Export of PRF key seed for the BLS12-381 KeyGen algorithm with alternative display (for recovery) (Deprecated) | +| `0x05` | `0x02` | `0x01` | `0x01,identity_provider[uint32],identity[uint32]` | Export of PRF key and IdCredSec seeds for the BLS12-381 KeyGen algorithm (Deprecated) | +| `0x05` | `0x00` | `0x02` | `0x01,identity_provider[uint32],identity[uint32]` | Export of PRF key (BLS12-381) | +| `0x05` | `0x01` | `0x02` | `0x01,identity_provider[uint32],identity[uint32]` | Export of PRF key with alternative display (for recovery) (BLS12-381) | +| `0x05` | `0x02` | `0x02` | `0x01,identity_provider[uint32],identity[uint32]` | Export of PRF key and IdCredSec (BLS12-381) |