All Downloads are FREE. Search and download functionalities are using the official Maven repository.

co.topl.crypto.catsinstances.eqs.EqInstances.scala Maven / Gradle / Ivy

The newest version!
package co.topl.crypto.catsinstances.eqs

import cats.Eq
import co.topl.crypto.hash.digest.implicits._
import co.topl.crypto.hash.digest.Digest

trait EqInstances {
  implicit def digestEq[T: Digest]: Eq[T] = (digestA, digestB) => digestA.bytes.sameElements(digestB.bytes)
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy