From efee9dcb039708620fef5a4b09ee09008ab83ff6 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Wed, 15 Sep 2021 17:32:09 +0100 Subject: [PATCH] chmod +x for scripts and make the shebang/preamble consistent. Signed-off-by: Daira Hopwood --- f4jumble.py | 0 ff1.py | 0 orchard_commitments.py | 0 orchard_empty_roots.py | 3 +++ orchard_generators.py | 0 orchard_group_hash.py | 0 orchard_key_components.py | 0 orchard_map_to_curve.py | 1 + orchard_merkle_tree.py | 0 orchard_note_encryption.py | 1 + orchard_poseidon.py | 3 +++ orchard_poseidon_hash.py | 3 +++ sapling_generators.py | 0 sapling_key_components.py | 0 sapling_merkle_tree.py | 0 sapling_note_encryption.py | 0 sapling_signatures.py | 0 sapling_zip32.py | 0 transaction.py | 1 - unified_address.py | 0 zc_utils.py | 2 ++ zip_0143.py | 2 ++ zip_0243.py | 2 ++ zip_0244.py | 2 ++ 24 files changed, 19 insertions(+), 1 deletion(-) mode change 100644 => 100755 f4jumble.py mode change 100644 => 100755 ff1.py mode change 100644 => 100755 orchard_commitments.py mode change 100644 => 100755 orchard_empty_roots.py mode change 100644 => 100755 orchard_generators.py mode change 100644 => 100755 orchard_group_hash.py mode change 100644 => 100755 orchard_key_components.py mode change 100644 => 100755 orchard_merkle_tree.py mode change 100644 => 100755 orchard_note_encryption.py mode change 100644 => 100755 orchard_poseidon.py mode change 100644 => 100755 orchard_poseidon_hash.py mode change 100644 => 100755 sapling_generators.py mode change 100644 => 100755 sapling_key_components.py mode change 100644 => 100755 sapling_merkle_tree.py mode change 100644 => 100755 sapling_note_encryption.py mode change 100644 => 100755 sapling_signatures.py mode change 100644 => 100755 sapling_zip32.py mode change 100644 => 100755 unified_address.py mode change 100644 => 100755 zip_0143.py mode change 100644 => 100755 zip_0243.py mode change 100644 => 100755 zip_0244.py diff --git a/f4jumble.py b/f4jumble.py old mode 100644 new mode 100755 diff --git a/ff1.py b/ff1.py old mode 100644 new mode 100755 diff --git a/orchard_commitments.py b/orchard_commitments.py old mode 100644 new mode 100755 diff --git a/orchard_empty_roots.py b/orchard_empty_roots.py old mode 100644 new mode 100755 index 9358036..fb52896 --- a/orchard_empty_roots.py +++ b/orchard_empty_roots.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python3 +import sys; assert sys.version_info[0] >= 3, "Python 3 required." + from orchard_merkle_tree import empty_roots from orchard_pallas import Fp from tv_output import render_args, render_tv diff --git a/orchard_generators.py b/orchard_generators.py old mode 100644 new mode 100755 diff --git a/orchard_group_hash.py b/orchard_group_hash.py old mode 100644 new mode 100755 diff --git a/orchard_key_components.py b/orchard_key_components.py old mode 100644 new mode 100755 diff --git a/orchard_map_to_curve.py b/orchard_map_to_curve.py index 840ed9f..d38140d 100755 --- a/orchard_map_to_curve.py +++ b/orchard_map_to_curve.py @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +import sys; assert sys.version_info[0] >= 3, "Python 3 required." from orchard_group_hash import map_to_curve_simple_swu from orchard_iso_pallas import Point as IsoPoint diff --git a/orchard_merkle_tree.py b/orchard_merkle_tree.py old mode 100644 new mode 100755 diff --git a/orchard_note_encryption.py b/orchard_note_encryption.py old mode 100644 new mode 100755 index fb09b36..ce09c95 --- a/orchard_note_encryption.py +++ b/orchard_note_encryption.py @@ -1,5 +1,6 @@ #!/usr/bin/env python3 import sys; assert sys.version_info[0] >= 3, "Python 3 required." + import struct from chacha20poly1305 import ChaCha20Poly1305 diff --git a/orchard_poseidon.py b/orchard_poseidon.py old mode 100644 new mode 100755 index 86b5087..4b1e591 --- a/orchard_poseidon.py +++ b/orchard_poseidon.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python3 +import sys; assert sys.version_info[0] >= 3, "Python 3 required." + from orchard_pallas import Fp import numpy as np from itertools import chain diff --git a/orchard_poseidon_hash.py b/orchard_poseidon_hash.py old mode 100644 new mode 100755 index fc238d1..9d6dc68 --- a/orchard_poseidon_hash.py +++ b/orchard_poseidon_hash.py @@ -1,3 +1,6 @@ +#!/usr/bin/env python3 +import sys; assert sys.version_info[0] >= 3, "Python 3 required." + from orchard_pallas import Fp from orchard_poseidon import perm from utils import leos2ip diff --git a/sapling_generators.py b/sapling_generators.py old mode 100644 new mode 100755 diff --git a/sapling_key_components.py b/sapling_key_components.py old mode 100644 new mode 100755 diff --git a/sapling_merkle_tree.py b/sapling_merkle_tree.py old mode 100644 new mode 100755 diff --git a/sapling_note_encryption.py b/sapling_note_encryption.py old mode 100644 new mode 100755 diff --git a/sapling_signatures.py b/sapling_signatures.py old mode 100644 new mode 100755 diff --git a/sapling_zip32.py b/sapling_zip32.py old mode 100644 new mode 100755 diff --git a/transaction.py b/transaction.py index ac5f803..0ca65d1 100644 --- a/transaction.py +++ b/transaction.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python3 import struct from orchard_pallas import ( diff --git a/unified_address.py b/unified_address.py old mode 100644 new mode 100755 diff --git a/zc_utils.py b/zc_utils.py index e730ba5..13e9fa9 100755 --- a/zc_utils.py +++ b/zc_utils.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +import sys; assert sys.version_info[0] >= 3, "Python 3 required." + import struct def write_compact_size(n): diff --git a/zip_0143.py b/zip_0143.py old mode 100644 new mode 100755 index 9859371..5b3cd09 --- a/zip_0143.py +++ b/zip_0143.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +import sys; assert sys.version_info[0] >= 3, "Python 3 required." + from pyblake2 import blake2b import struct diff --git a/zip_0243.py b/zip_0243.py old mode 100644 new mode 100755 index 03dd681..7118c94 --- a/zip_0243.py +++ b/zip_0243.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +import sys; assert sys.version_info[0] >= 3, "Python 3 required." + from pyblake2 import blake2b import struct diff --git a/zip_0244.py b/zip_0244.py old mode 100644 new mode 100755 index c07f6ed..c886d62 --- a/zip_0244.py +++ b/zip_0244.py @@ -1,4 +1,6 @@ #!/usr/bin/env python3 +import sys; assert sys.version_info[0] >= 3, "Python 3 required." + from pyblake2 import blake2b import struct