File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
src/Juvix/Compiler/Builtins
tests/Anoma/Compilation/positive Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -141,9 +141,10 @@ checkSecp256k1Verify f = do
141141 let ftype = f ^. axiomType
142142 l = getLoc f
143143 nat_ <- getBuiltinNameScoper l BuiltinNat
144+ bool_ <- getBuiltinNameScoper l BuiltinBool
144145 unless
145- (ftype === (nat_ --> nat_ --> nat_ --> nat_ ))
146- $ builtinsErrorText l (prettyText BuiltinAnomaSecp256k1Verify <> " must be of type (msg signature pubKey : Nat) -> Nat " )
146+ (ftype === (nat_ --> nat_ --> nat_ --> bool_ ))
147+ $ builtinsErrorText l (prettyText BuiltinAnomaSecp256k1Verify <> " must be of type (msg signature pubKey : Nat) -> Bool " )
147148
148149checkKeccak256 ::
149150 (Members '[Reader BuiltinsTable , Error ScoperError , NameIdGen ] r ) =>
Original file line number Diff line number Diff line change @@ -54,7 +54,7 @@ builtin secp256k1-sign-compact
5454axiom sign (msg privKey : Nat) : PrimitiveSignature;
5555
5656builtin secp256k1-verify
57- axiom verify (msg signature pubKey : Nat) : Nat ;
57+ axiom verify (msg signature pubKey : Nat) : Bool ;
5858
5959universal : ByteArray :=
6060 mkByteArray
You can’t perform that action at this time.
0 commit comments