packages feed

ppad-script 0.2.0 → 0.2.1

raw patch · 3 files changed

+10/−7 lines, 3 files

Files

CHANGELOG view
@@ -1,5 +1,8 @@ # Changelog +- 0.2.1 (2025-01-21)+  * Minor Haddock improvements.+ - 0.2.0 (2025-01-20)   * Renames the older-style 'OP_PUSHNUM_N' opcodes to the newer 'OP_N', and     similarly 'OP_PUSHNUM_NEG1' to 'OP_1NEGATE'.
lib/Bitcoin/Prim/Script.hs view
@@ -13,8 +13,8 @@ -- Maintainer: Jared Tobin <jared@ppad.tech> -- -- Representations for [Script](https://en.bitcoin.it/wiki/Script),--- including abstract syntax, 'ByteArray', and base16-encoded--- 'ByteString' versions, as well as fast conversion utilities for+-- including abstract syntax, 'BA.ByteArray', and base16-encoded+-- 'BS.ByteString' versions, as well as fast conversion utilities for -- working with them.  module Bitcoin.Prim.Script (@@ -84,7 +84,7 @@  -- script and term representation --------------------------------------------- --- | A Script program, represented as a 'ByteArray'.+-- | A Script program, represented as a 'BA.ByteArray'. -- --   >>> from_base16 "0014b472a266d0bd89c13706a4132ccfb16f7c3b9fcb" --   Just (Script@@ -113,7 +113,7 @@  -- script conversions --------------------------------------------------------- --- | Convert a 'Script' to a base16-encoded 'ByteString'.+-- | Convert a 'Script' to a base16-encoded 'BS.ByteString'. -- --   >>> let script = to_script [OPCODE OP_1, OPCODE OP_2, OPCODE OP_ADD] --   >>> to_base16 script@@ -122,7 +122,7 @@ to_base16 (Script ba) = B16.encode (ba_to_bs ba) {-# INLINE to_base16 #-} --- | Convert a base16-encoded 'ByteString' to a 'Script'.+-- | Convert a base16-encoded 'BS.ByteString' to a 'Script'. -- --   >>> from_base16 "515293" --   Just (Script [0x51, 0x52, 0x93])@@ -152,7 +152,7 @@ -- --   >>> let Just script = from_base16 "515293" --   >>> from_script script---   [OP_1, OP_2, OP_ADD}+--   [OP_1, OP_2, OP_ADD] from_script :: Script -> [Term] from_script (Script bs) = go 0 where   !l = BA.sizeofByteArray bs
ppad-script.cabal view
@@ -1,6 +1,6 @@ cabal-version:      3.0 name:               ppad-script-version:            0.2.0+version:            0.2.1 synopsis:           Primitive Script support. license:            MIT license-file:       LICENSE