util
library
Classes
-
Enumerator<T>
-
Thing we can iterate over as an Iterable like in a
enumerate
Python. Equiv
-
JsonObject
-
-
Result<S, E>
-
This can be returned on any operation which may or may not succeed
for any defined reason
Functions
-
addElementToListOrInit(Json json, SimpleJsonPath path, dynamic value)
→ dynamic
-
will create a list or add an element to an existing list
-
addPaddingToBase64(String base64Input)
→ String
-
-
buildCsrForDid(WalletStore wallet, String did, {String? countryCode, String? state, String? city, String? organization, String? organizationalUnit, String? emailAddress})
→ Future<String>
-
Generate a x509 Certificate Signing Request for a key belonging to
did
.
-
checkMultiHash(Uint8List hash, Uint8List data)
→ bool
-
Checks multihash format
only supporting sha2-256 atm.
-
credentialToMap(dynamic credential)
→ Map<String, dynamic>
-
Converts json-String
credential
to dart Map.
-
enumerate<T>(Iterable<T?> iterable)
→ Iterable<Enumerator<T?>>
-
used as a Python enumerate function
-
forceAsList(Json json, SimpleJsonPath path)
→ dynamic
-
will force an entry which may come es a string into a list if
it is not already.
@hint this is an inplace operation!
-
getByPath(Json json, SimpleJsonPath path)
→ dynamic
-
tries to follow a given
path
in a json
mapping
-
getDateTimeNowString()
→ String
-
-
getDidFromDidConfiguration(String url)
→ Future<List<String>>
-
-
isUri(String uri)
→ bool
-
-
multibaseKeyToJwk(String multibaseKey)
→ Map<String, dynamic>
-
-
multibaseToBase64Url(String multibase)
→ String
-
-
removePaddingFromBase64(String base64Input)
→ String
-
-
searchForMatchingCredentials({required RequestPresentation message, required WalletStore wallet})
→ Future<List<FilterResult>>
-
will search matching credentials in
wallet
given a presentation request
message
and return a list of FilterResults
-
setValueInJson(Json json, SimpleJsonPath path, dynamic value)
→ dynamic
-
will set a value at specific position in a json