KeyPurpose

Key purposes as defined in DID Core specification.

Extracted from DidCreationOptions to improve discoverability and reduce nesting.

Example Usage:

val options = DidCreationOptions(
algorithm = KeyAlgorithm.ED25519,
purposes = listOf(KeyPurpose.AUTHENTICATION, KeyPurpose.ASSERTION)
)

Entries

Link copied to clipboard

For authentication (proving control of DID)

Link copied to clipboard

For making assertions (issuing credentials).

Link copied to clipboard

For key agreement (encryption)

Link copied to clipboard

For invoking capabilities

Link copied to clipboard

For delegating capabilities

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.