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