Skip to content

Conversation

@devendran-m
Copy link
Contributor

Resolves JIRA CD-93 - Replace occurrences of bytes by chars in Accounts and Keys section

DESCRIPTION:

This PR replaces occurrences of "bytes" with "chars" in the Accounts and Keys section of the documentation.

Changes include;

  1. Specify bytes and characters correctly, like below;
Ed25519 keys -> 66 characters/33 bytes long
Secp256k1 keys -> 68 characters/34 bytes long
  1. Added more details for a better user readability/experience.

CHANGELOG:

        modified:   docs/concepts/accounts-and-keys.md
        modified:   versioned_docs/version-2.0.0/concepts/accounts-and-keys.md

@devendran-m devendran-m requested a review from mrkara June 19, 2025 11:12
```

The public-key-hex for `Secp256k1` keys starts with 02 and is 68 bytes long:
The public-key-hex for `Secp256k1` keys starts with 02 and is 68 characters / 33 bytes long:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@devendran-m I believe 68 means 34 bytes, simply divided by two

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @gRoussac , and sorry for the oversight. I've addressed it now.

3. `secret_key.pem` is the *PEM*-encoded secret key

The public-key-hex for `Ed25519` keys starts with 01 and is 66 bytes long:
The public-key-hex for `Ed25519` keys starts with 01 and is 66 characters / 32 bytes long:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

33 bytes if 66 chars

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @gRoussac , and sorry for the oversight. I've addressed it now.

```

The public-key-hex for `Secp256k1` keys starts with 02 and is 68 bytes long:
The public-key-hex for `Secp256k1` keys starts with 02 and is 68 characters / 33 bytes long:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

34

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, @gRoussac , and sorry for the oversight. I've addressed it now.

Copy link
Contributor

@mrkara mrkara left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thank you!

@devendran-m devendran-m merged commit f941c50 into dev Jun 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants