Skip to content

Commit

Permalink
Fix xor instance
Browse files Browse the repository at this point in the history
  • Loading branch information
geirolz committed Jan 29, 2024
1 parent b6551ae commit f09011c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ opaque type SecretStrategy[P] = (Obfuscator[P], DeObfuscator[P])
object SecretStrategy extends SecretStrategyFactory(SecretStrategyAlgebra.xor):

final lazy val plainFactory = SecretStrategyAlgebra.plain.newFactory
final lazy val xorFactory = SecretStrategyAlgebra.xor.newFactory
final lazy val xorFactory = this

extension [P](strategy: SecretStrategy[P])
def obfuscator: Obfuscator[P] = strategy._1
Expand Down

0 comments on commit f09011c

Please sign in to comment.