Skip to content

Commit d34a8bb

Browse files
committed
Re-export bitwise builtins from PlutusTx.Prelude
1 parent 0c02489 commit d34a8bb

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

plutus-tx/src/PlutusTx/Prelude.hs

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,17 @@ module PlutusTx.Prelude (
6666
indexByteString,
6767
emptyByteString,
6868
decodeUtf8,
69+
andByteString,
70+
orByteString,
71+
xorByteString,
72+
complementByteString,
73+
-- ** Bit operations
74+
readBit,
75+
writeBits,
76+
shiftByteString,
77+
rotateByteString,
78+
countSetBits,
79+
findFirstSetBit,
6980
-- * Hashes and Signatures
7081
sha2_256,
7182
sha3_256,
@@ -114,7 +125,9 @@ module PlutusTx.Prelude (
114125
fromBuiltin,
115126
toBuiltin,
116127
fromOpaque,
117-
toOpaque
128+
toOpaque,
129+
integerToByteString,
130+
byteStringToInteger
118131
) where
119132

120133
import Data.String (IsString (..))

0 commit comments

Comments
 (0)