cardano-sl-0.4.3: Cardano SL main implementation

Safe HaskellNone
LanguageHaskell2010

Pos.Script.Examples

Contents

Description

Some example scripts used in tests.

Synopsis

Trivial

Int

Stdlib

Multisig

Extra names

Stress testing

shaStressRedeemer :: Int -> Script Source #

Does N rounds of SHA3-256. Should be used with idValidator.

Actually it does (N div 10) * 10 rounds. Unrolling the loop is done so that more petrol would be spent on hashing and less – on substraction and function calls.

sigStressRedeemer :: Int -> Script Source #

Checks a signature N times. Should be used with idValidator.