Success
value class Success<T : CryptoSignature.RawByteEncodable>(val signature: T) : SignatureResult<T> (source)
The signature succeeded. A signature is contained.
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.