Plutonomicon / plutarch-plutus

Typed eDSL for writing UPLC /ˈpluː.tɑːk/
MIT License
124 stars 64 forks source link

CIP-122 ops over bytes #716

Closed kozross closed 1 month ago

kozross commented 1 month ago

Adds proper support in Plutarch.ByteString for the byte-oriented functionality of CIP-122. Specifically, we support AND, OR and XOR, as well as replication, with some safety wrappers to help it make more sense. As part of this, a limited PByte type is introduced.

This also removes a deprecated identifier.

SeungheonOh commented 1 month ago

Some of the operations overlaps with https://github.com/Plutonomicon/plutarch-plutus/blob/staging/Plutarch/Bitwise.hs. I think we can move ones from Bitwise to this module