Skip to content

Add prefix 0x to peer ID hex string#245

Merged
josecelano merged 1 commit intotorrust:developfrom
josecelano:issue-164-add-prefix-0x-to-hex-peer-id-representantion
Mar 16, 2023
Merged

Add prefix 0x to peer ID hex string#245
josecelano merged 1 commit intotorrust:developfrom
josecelano:issue-164-add-prefix-0x-to-hex-peer-id-representantion

Conversation

@josecelano
Copy link
Copy Markdown
Member

@josecelano josecelano commented Mar 16, 2023

A peer id like this:

peer::Id(*b"-qB00000000000000000")

has now this hex string representation:

0x2d71423030303030303030303030303030303030

with the 0x prefix as suggested by @da2ce7 here.

@josecelano josecelano force-pushed the issue-164-add-prefix-0x-to-hex-peer-id-representantion branch from ac62cc0 to d51aae0 Compare March 16, 2023 15:46
@josecelano josecelano linked an issue Mar 16, 2023 that may be closed by this pull request
@josecelano josecelano merged commit 0bb295c into torrust:develop Mar 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Review format for peer id in announce response

1 participant