ops

org.sigilaris.core.crypto.Recover.ops
object ops

Extension methods for recovery.

Attributes

Source
Recover.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
ops.type

Members list

Extensions

Extensions

extension [A](hashValue: Value[A])
def recover(signature: Signature)(using r: Recover[A]): Either[SigilarisFailure, PublicKey]

Recovers the public key from a hash and signature.

Recovers the public key from a hash and signature.

Value parameters

hashValue

hash value of the signed data

r

implicit Recover instance

signature

signature to recover from

Attributes

Returns

Right(PublicKey) on success, Left(failure) on error

Source
Recover.scala