Skip to content

Commit 7ef2dca

Browse files
sorabotCre-eD
authored andcommitted
docs: point the key pair links at the anchors that exist
Two pages linked to `#authorization-key-pair` and `#blockchain-key-pair`, but those headings declare explicit `{#akp}` and `{#bkp}` anchors, so both links landed at the top of the page instead of the section. The build does not catch this: it validates file paths, not fragments. While there, the Kotlin note in the transaction tutorial called the 64-character key a truncated representation, which now contradicts the naming used everywhere else. It says which form each example takes. Signed-off-by: Dmitrii Creed <creeed22@gmail.com>
1 parent 8e38c26 commit 7ef2dca

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/getting-started/calling-api-endpoints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@ For examples of scenarios where FIB API endpoints are being called, check out th
2222

2323
::: tip NOTE
2424

25-
Certain API requests require the use of either your [**Authorization** key pair](../overview/web-interface.md#authorization-key-pair) or [**Blockchain** key pair](../overview/web-interface.md#blockchain-key-pair).
25+
Certain API requests require the use of either your [**Authorization** key pair](../overview/web-interface.md#akp) or [**Blockchain** key pair](../overview/web-interface.md#bkp).
2626

2727
:::

src/tutorials-api/signing-transactions.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ For reference, see any of the following tutorials:
99

1010
The exact implementation to your system may vary depending on the specific SDK or programming language being used. However, the overall sequence of events to sign a transaction should be the following:
1111

12-
1. Create a `keyPair` object from the public and private keys of the user's [**Blockchain** key pair](../overview/web-interface.md#blockchain-key-pair).
12+
1. Create a `keyPair` object from the public and private keys of the user's [**Blockchain** key pair](../overview/web-interface.md#bkp).
1313
2. Retrieve the Hex string of the required transaction.
1414
3. Decode the retrieved transaction Hex string.
1515
4. Sign the decoded transaction.
@@ -47,7 +47,8 @@ fun decodeSignEncode(transactionHex: String): String {
4747
val publicKey = "7fbedb314a9b0c00caef967ac5cabb982ec45da828a0c58a9aafc854f32422ac"
4848

4949
// Example ed25519 private key:
50-
// Note: In Kotlin/Java SDK the truncated representation is more common, although you can refer to full ones represented as concatenation of private and public ones in other SDKs
50+
// Note: the Kotlin/Java SDK takes the 64-character private key, while the JavaScript and
51+
// Python examples below take the 128-character Iroha SDK format, which appends the public key.
5152
val privateKey = "413b285d1819a6166b0daa762bb6bef2d082cffb9a13ce041cb0fda5e2f06dc3"
5253

5354
// Obtain 'keyPair' from the public and private keys of the 'Blockchain' key pair:

0 commit comments

Comments
 (0)