From 17b230e6728fdc321d50a0b04da4cbbda74228c2 Mon Sep 17 00:00:00 2001 From: Koz Ross Date: Thu, 18 Jul 2024 07:38:34 +1200 Subject: [PATCH] Re-export bitwise builtins from PlutusTx.Prelude --- plutus-tx/src/PlutusTx/Prelude.hs | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/plutus-tx/src/PlutusTx/Prelude.hs b/plutus-tx/src/PlutusTx/Prelude.hs index 2c430615079..ab1789c214a 100644 --- a/plutus-tx/src/PlutusTx/Prelude.hs +++ b/plutus-tx/src/PlutusTx/Prelude.hs @@ -66,6 +66,17 @@ module PlutusTx.Prelude ( indexByteString, emptyByteString, decodeUtf8, + Builtins.andByteString, + Builtins.orByteString, + Builtins.xorByteString, + Builtins.complementByteString, + -- ** Bit operations + Builtins.readBit, + Builtins.writeBits, + Builtins.shiftByteString, + Builtins.rotateByteString, + Builtins.countSetBits, + Builtins.findFirstSetBit, -- * Hashes and Signatures sha2_256, sha3_256, @@ -108,13 +119,13 @@ module PlutusTx.Prelude ( bls12_381_millerLoop, bls12_381_mulMlResult, bls12_381_finalVerify, - byteStringToInteger, - integerToByteString, -- * Conversions fromBuiltin, toBuiltin, fromOpaque, - toOpaque + toOpaque, + integerToByteString, + byteStringToInteger ) where import Data.String (IsString (..))