Skip to content

Commit

Permalink
powHit impl #1
Browse files Browse the repository at this point in the history
  • Loading branch information
kushti committed Apr 17, 2024
1 parent 1d9f80a commit a67c6d6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions core/shared/src/main/scala/sigma/SigmaDsl.scala
Original file line number Diff line number Diff line change
Expand Up @@ -729,5 +729,7 @@ trait SigmaDslBuilder {

/** Returns a byte-wise XOR of the two collections of bytes. */
def xor(l: Coll[Byte], r: Coll[Byte]): Coll[Byte]

def powHit(): BigInt
}

Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,9 @@ object ReflectionData {
},
mkMethod(clazz, "decodePoint", Array[Class[_]](cColl)) { (obj, args) =>
obj.asInstanceOf[SigmaDslBuilder].decodePoint(args(0).asInstanceOf[Coll[Byte]])
},
mkMethod(clazz, "powHit", Array[Class[_]](cColl)) { (obj, args) =>
obj.asInstanceOf[SigmaDslBuilder].pow(args(0).asInstanceOf[Coll[Byte]])
}
)
)
Expand Down

0 comments on commit a67c6d6

Please sign in to comment.