
com.wavesenterprise.transaction.Signed.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of we-models Show documentation
Show all versions of we-models Show documentation
Library for Waves Enterprise blockchain platform
package com.wavesenterprise.transaction
import com.wavesenterprise.transaction.ValidationError.InvalidSignature
import monix.eval.Coeval
trait Signed extends Authorized {
val signatureValid: Coeval[Boolean]
}
object Signed {
def validate[S <: Signed](s: S): Either[InvalidSignature, S] = {
Either.cond(s.signatureValid(), s, InvalidSignature(s, None))
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy