From 9f5aa5a3347d93f1f3a4e2ca244c3c85be0302bf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Matev=C5=BE=20Jekovec?= Date: Mon, 14 Oct 2024 12:54:29 +0200 Subject: [PATCH] contracts/generateSigningKeypair: Doc explicit sk size --- contracts/contracts/Sapphire.sol | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/contracts/contracts/Sapphire.sol b/contracts/contracts/Sapphire.sol index 7cd740f7..82bae524 100644 --- a/contracts/contracts/Sapphire.sol +++ b/contracts/contracts/Sapphire.sol @@ -321,16 +321,18 @@ library Sapphire { * ##### Secp256r1: 4,000 gas * - `7` (`Secp256r1PrehashedSha256`) * - * #### Public Key Format + * #### Key Formats * * ##### Ed25519 * - * 32 bytes + * Public key: 32 bytes + * Secret key: 32 bytes (=the seed) * * ##### Secp256k1 & Secp256r1 * - * 33 bytes, compressed format (`0x02` or `0x03` prefix, then 32 byte X - * coordinate). + * Public key: 33 bytes, compressed format (`0x02` or `0x03` prefix, then 32 + * byte X coordinate). + * Secret key: 32 bytes (=the seed) * * #### Example *