Failure
value class Failure(val problem: UserInitiatedCancellationReason) : SignatureResult<Nothing> (source)
The signature failed for expected reasons. Typically, this is because the user cancelled the operation.
Properties
Functions
Link copied to clipboard
Transforms this SignatureResult into a KmmResult. Both Failure and Error map to KmmResult.Failure.
Link copied to clipboard
inline fun <T : CryptoSignature.RawByteEncodable, S : CryptoSignature.RawByteEncodable> SignatureResult<T>.map(block: (T) -> S): SignatureResult<S>
Modifies the contained CryptoSignature, usually in order to reinterpret it as a more narrow type.
Link copied to clipboard
inline fun <T : CryptoSignature.RawByteEncodable, S : CryptoSignature.RawByteEncodable> SignatureResult<T>.modify(block: KmmResult<T>.() -> KmmResult<S>): SignatureResult<S>
Modifies the contained CryptoSignature, usually in order to reinterpret it as a more narrow type.