Package-level declarations

Types

Link copied to clipboard
enum Codec : Enum<Codec>

Enum class representing different codecs.

Functions

Link copied to clipboard

Encodes an individual service object according to the second algorithm.

Link copied to clipboard
fun Json.encodeToString(vararg pairs: Pair<*, *>): String

Encodes the given pairs of key-value data into a JSON string representation.

Link copied to clipboard

Converts a base58-encoded string to a byte array.

Link copied to clipboard

Decodes a multibase string to a pair of the transform and the encoded number basis.

Link copied to clipboard

Converts a JSON string to a List of Maps.

Link copied to clipboard

Converts a JSON string to a Map object.

Link copied to clipboard

Converts a given JWK object to a byte array.

Link copied to clipboard

Decodes a multicodec value to a pair of Codec and the remaining bytes.

Link copied to clipboard
fun isBase58(value: String): Boolean

Checks whether a given string is base58 encoded.

Link copied to clipboard

Converts a byte array to a Base58 encoded string.

Link copied to clipboard

Converts a byte array to a base58 multibase encoding.

Link copied to clipboard
fun toJson(value: Any?): String

Converts the given value to its JSON representation as a string.

Link copied to clipboard

Converts an array to a JSON array.

Converts an Iterable of any type to a JSON array.

Link copied to clipboard

Converts an object to its JSON representation as a JsonElement.

Link copied to clipboard

Converts the given Map object to a JsonObject. Each key-value pair in the map is converted to a corresponding key-value pair in the JsonObject. The keys are converted to string representation using the toString method. The values are converted to JsonElement using the toJsonElement method.

Link copied to clipboard
fun toJwk(publicKey: ByteArray, verMethodType: VerificationMethodTypePeerDID): Map<String, String>

Converts a public key to a JSON Web Key (JWK).

Link copied to clipboard

Converts the given value to a multicodec byte array using the specified keyType.