go_sshkeys/_ref/ed25519/public.adoc
2025-09-01 13:47:05 -04:00

41 lines
1.0 KiB
Plaintext

////
This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
To view a copy of this license, visit
http://creativecommons.org/licenses/by-sa/4.0/.
////
[id="bkdn_ed25519_pub"]
==== Public
[id="bkdn_ed25519_pub_struct"]
===== Structure
Public keys are stored in the following structure:
.Key Structure
[source,text,linenums]
----
0.0 uint32 allocator for 0.0.0 (4 bytes)
0.0.0 Public key key type string (ASCII bytes)
1.0 uint32 allocator for 1.0.0 (4 bytes)
1.0.0 Public key payload (bytes)
----
[id="bkdn_ed25519_pub_ex"]
===== Example
.`id_ed25519.pub` Format
[source,text,linenums]
----
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEQ4i8lzaE3WaFcTESK/8hLJg7umsWLE6XzRH3PDnZew This is a test key
----
.Structure Reference (Hex) (Decoded Base64 component only; `AAA...nZew`)
[source,text,linenums]
----
0.0 0000000b (11)
0.0.0 7373682d65643235353139 ("ssh-ed25519")
1.0 00000020 (32)
1.0.0 44388bc973684dd66857131122bff212c983bba6b162c4e97cd11f73c39d97b0 (bytes)
----