You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The note told readers to trim a 128-character key without saying what
the trailing half is or why it is there. Name the long form as the
Iroha SDK format, state that a private key is 64 characters, and keep
the trimming instruction for anyone holding the longer string.
Signed-off-by: Dmitrii Creed <creeed22@gmail.com>
Copy file name to clipboardExpand all lines: src/overview/web-interface.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -95,7 +95,7 @@ Also see the following related tutorials:
95
95
96
96
::: tip NOTE
97
97
98
-
If the private key is displayed as a 128-character string, it is the private key followed by the public key. Whenever an API tutorial asks for a private key, use its first 64 characters.
98
+
A private key is 64 characters long. In **Iroha SDK format**the public key is appended to it, making a 128-character string: the Iroha SDKs expect that longer form, every other library expects the 64-character key. If the key you copied is 128 characters, its first 64 characters are the private key.
Copy file name to clipboardExpand all lines: src/tutorials-api/signing-user-email-addresses.md
+4-4Lines changed: 4 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Any cryptographic library that provides Ed25519 and BLAKE2b-256 can produce it,
14
14
15
15
Sign with the **Authorization** key pair, not with the **Blockchain** one. Both key pairs are shown on the FIB Web App **Profile** screen. For details, see [Web App UI: 'Authorization' key pair](../overview/web-interface.md#akp).
16
16
17
-
If the private key on that screen is 128 characters long, it is the private key followed by the public key. Use its first 64 characters as the private key.
17
+
A private key is 64 characters long. In **Iroha SDK format** the public key is appended to it, making a 128-character string: the Iroha SDKs expect that longer form, every other library expects the 64-character key. If the key you copied is 128 characters, its first 64 characters are the private key.
18
18
19
19
A signature made with the wrong key pair is rejected with a `422` response.
20
20
@@ -34,7 +34,7 @@ from cryptography.hazmat.primitives.asymmetric.ed25519 import Ed25519PrivateKey
0 commit comments