SignService

interface SignService

Inheritors

Functions

Link copied to clipboard
Link copied to clipboard
abstract suspend fun <T> sign(unsignedObject: T, serializer: KSerializer<T>, signWith: SignWith = SignWith.DeviceKey): Signed<T, UserId>
Link copied to clipboard
inline suspend fun <T> SignService.sign(unsignedObject: T, signWith: SignWith = SignWith.DeviceKey): Signed<T, UserId>
inline suspend fun <T> SignService.sign(signedObject: Signed<T, UserId>, signWith: SignWith = SignWith.DeviceKey): Signed<T, UserId>
Link copied to clipboard
abstract suspend fun signatures(jsonObject: JsonObject, signWith: SignWith = SignWith.DeviceKey): Signatures<UserId>
abstract suspend fun <T> signatures(unsignedObject: T, serializer: KSerializer<T>, signWith: SignWith = SignWith.DeviceKey): Signatures<UserId>
Link copied to clipboard
inline suspend fun <T> SignService.signatures(unsignedObject: T, signWith: SignWith = SignWith.DeviceKey): Signatures<UserId>
Link copied to clipboard
abstract suspend fun signCurve25519Key(keyId: String, keyValue: String, fallback: Boolean? = null): Key.SignedCurve25519Key
Link copied to clipboard
abstract suspend fun <T> verify(signedObject: Signed<T, UserId>, serializer: KSerializer<T>, checkSignaturesOf: Map<UserId, Set<Key.Ed25519Key>>): VerifyResult
Link copied to clipboard
inline suspend fun <T> SignService.verify(signedObject: Signed<T, UserId>, checkSignaturesOf: Map<UserId, Set<Key.Ed25519Key>>): VerifyResult