소스 검색

fix breaking change in last commit

narodnik 5 년 전
부모
커밋
1483a5c7c2
1개의 변경된 파일9개의 추가작업 그리고 6개의 파일을 삭제
  1. 9 6
      proofs/simple.pism

+ 9 - 6
proofs/simple.pism

@@ -10,6 +10,7 @@ contract input_spend
     param ak Point
     param ak Point
     param value U64
     param value U64
 start
 start
+    # Compute P = xG + A
     witness ak param:ak
     witness ak param:ak
     assert_not_small_order ak
     assert_not_small_order ak
 
 
@@ -19,16 +20,18 @@ start
     ec_add public public ak
     ec_add public public ak
     emit_ec public
     emit_ec public
 
 
+    # Make some a blake2s hash
+    alloc_binary preimage
+    ec_repr repr_ak ak
+    binary_extend preimage repr_ak
+    static_assert_binary_size preimage 256
+    blake2s ivk preimage CRH_IVK
+    emit_binary ivk
+
     # Below lines are random garbage
     # Below lines are random garbage
     # Uncomment them to test
     # Uncomment them to test
 
 
-    #alloc_binary preimage
-    #ec_repr repr_ak ak
-    #binary_extend preimage repr_ak
-    #static_assert_binary_size preimage 256
-    #blake2s ivk preimage CRH_IVK
     #binary_clone ivk2 ivk
     #binary_clone ivk2 ivk
-    #emit_binary ivk
     #binary_truncate ivk2 JUBJUB_FR_CAPACITY
     #binary_truncate ivk2 JUBJUB_FR_CAPACITY
     #u64_as_binary_le value_bits param:value
     #u64_as_binary_le value_bits param:value
     #ec_mul pk_d value_bits public
     #ec_mul pk_d value_bits public