Class: Keyid

Keyid()

Implementation of type key id

RFC4880 3.3: A Key ID is an eight-octet scalar that identifies a key. Implementations SHOULD NOT assume that Key IDs are unique. The section "Enhanced Key Formats" below describes how Key IDs are formed.

Constructor

new Keyid()

Source:

Methods

equals(keyid, matchWildcard)

Checks equality of Key ID's

Parameters:
Name Type Default Description
keyid Keyid
matchWildcard Boolean false

Indicates whether to check if either keyid is a wildcard

Source:

isNull() → {Boolean}

Checks to see if the Key ID is unset

Source:
Returns:

True if the Key ID is null.

Type
Boolean

isWildcard() → {Boolean}

Checks to see if the Key ID is a "wildcard" Key ID (all zeros)

Source:
Returns:

True if this is a wildcard Key ID.

Type
Boolean

read(bytes)

Parsing method for a key id

Parameters:
Name Type Description
bytes Uint8Array

Input to read the key id from

Source:

toHex() → {String}

Returns the Key ID represented as a hexadecimal string

Source:
Returns:

Key ID as a hexadecimal string.

Type
String

write() → {Uint8Array}

Serializes the Key ID

Source:
Returns:

Key ID as a Uint8Array.

Type
Uint8Array