HsPubkey

Spec: 4.3.6 IDENTITY: HS_PUBKEY

An element of type HS_PUBKEY stores a public key. The element can be used as an administrative identity, for referring to in HS_ADMIN or HS_VLIST elements for authorization, or for identifying the administrative identity in DO-IRP authentication. A reference to the element for use as an administrative identity is as a pair of the identifier and the index of the element within the identifier record; in this document this is often written with a colon as :.

The of the element is a binary encoding of the public key which for key types considered in this specification is as follows. First, there is a UTF8-string that describes the key type; then, a two- byte option field reserved for future use; and finally, a key-type-dependent number of length- prefixed byte-arrays that contains the public key itself.

Field Description
string

a UTF8-string that describes the key type, see Type for details

uint32

a two-byte option field reserved for future use

bytes[]

a key-type-dependent number of byte-arrays that contains the public key itself.

Type

This is for generating consts, won’t be used directly in .proto files, buf:lint:ignore ENUM_ZERO_VALUE_SUFFIX

Name Description
TYPE_DSA_PUB_KEY
TYPE_RSA_PUB_KEY