cardano-sl-0.4.3: Cardano SL main implementation

Pos.Script.Examples

Description

Some example scripts used in tests.

Synopsis

# Stress testing

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.

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