🐛 Bug Report
When running yarn test:wasm, I get errors that a PUZZLE_PK needs to be set. This needs to be documented.
If I set a random valid PUZZLE_PK, e.g. APrivateKey1zkp5oG9E7YfZ2xdFj4Gp9cgtWy1yhFkStufN8fRyVntfLYS, then I get the following errors. Is this because the tests expect a specific secret PUZZLE_PK set here .github/workflows/sdk.yml: PUZZLE_PK: ${{ secrets.PUZZLE_PK }} ?
failures:
---- record::record_plaintext::tests::test_record_decrypt_record_sender_ciphertext output ----
error output:
panicked at src/record/record_plaintext.rs:483:75:
called `Result::unwrap()` on an `Err` value: "Failed to recover an affine group from an x-coordinate of 1997809689389597890288510442064084047792220506208250827619710693974099825841field"
Stack:
Error
at /private/var/folders/hp/dtdxwpwn0zlf7d06t22ynch00000gn/T/.tmpitfN5i/wasm-bindgen-test.js:13789:17
at logError (/private/var/folders/hp/dtdxwpwn0zlf7d06t22ynch00000gn/T/.tmpitfN5i/wasm-bindgen-test.js:150:18)
at exports.__wbg_new_c56cf65e94050540 (/private/var/folders/hp/dtdxwpwn0zlf7d06t22ynch00000gn/T/.tmpitfN5i/wasm-bindgen-test.js:13788:58)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.wasm_bindgen_test::__rt::Context::new::panic_handling::Error::new::__wbg_new_c56cf65e94050540::h55cf3b17e7f2c664 externref shim (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[14174]:0xcb4217)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.wasm_bindgen_test::__rt::Context::new::panic_handling::h6c7bfce0eee96d85 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[4785]:0xa018e7)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.wasm_bindgen_test::__rt::Context::new::{{closure}}::{{closure}}::hbc4be368a984bb98 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[11498]:0xc857bf)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::panicking::panic_with_hook::h45a48d23facbfe7a (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[10851]:0xc691c0)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::panicking::panic_handler::{{closure}}::h95cca62b9ba97242 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[11362]:0xc806ff)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::sys::backtrace::__rust_end_short_backtrace::hf7591cd7d0896943 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[14703]:0xcb626a)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.__rustc[9a7a9f9af7564de1]::rust_begin_unwind (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[13126]:0xcabcec)
JS exception that was thrown:
RuntimeError: unreachable
at aleo_wasm-d2e3a7e8a1edc8df.wasm.__rustc[9a7a9f9af7564de1]::rust_panic (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[14770]:0xcb64a2)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::panicking::panic_with_hook::h45a48d23facbfe7a (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[10851]:0xc691ee)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::panicking::panic_handler::{{closure}}::h95cca62b9ba97242 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[11362]:0xc806ff)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::sys::backtrace::__rust_end_short_backtrace::hf7591cd7d0896943 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[14703]:0xcb626a)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.__rustc[9a7a9f9af7564de1]::rust_begin_unwind (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[13126]:0xcabcec)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.core::panicking::panic_fmt::h2571685d25994ead (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[13124]:0xcabc89)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.core::result::unwrap_failed::hf09cc0a2620ccdd9 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[11599]:0xc88eb8)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.aleo_wasm::record::record_plaintext::tests::test_record_decrypt_record_sender_ciphertext::h420735202267cc6c (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[2476]:0x7f1575)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.<wasm_bindgen_test::__rt::TestFuture<F> as core::future::future::Future>::poll::{{closure}}::{{closure}}::h7549b40b731e2d0a (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[10653]:0xc5ec6e)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.wasm_bindgen::convert::closures::_::invoke::hfcb4080ec0399884 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[13593]:0xcb07d1)
---- programs::manager::authorize::tests::test_authorization output ----
log output:
Check program imports are valid and add them to the process
Creating proving request for puzzle_spinner_v002.aleo:spin
Importing program: puzzle_arcade_coin_v002.aleo
Adding puzzle_arcade_coin_v002.aleo to the process
Importing program: puzzle_arcade_ticket_v002.aleo
Adding puzzle_arcade_ticket_v002.aleo to the process
Loading program
Loading function
Adding program to the process
Creating authorization for puzzle_spinner_v002.aleo:spin
parsing inputs
error output:
panicked at src/programs/manager/authorize.rs:182:18:
called `Result::unwrap()` on an `Err` value: "Failed to execute instruction (call puzzle_arcade_coin_v002.aleo/spend r0 1000000u64 into r11;): Input record for 'puzzle_arcade_coin_v002.aleo' must belong to the signer"
Stack:
Error
at /private/var/folders/hp/dtdxwpwn0zlf7d06t22ynch00000gn/T/.tmpitfN5i/wasm-bindgen-test.js:13789:17
at logError (/private/var/folders/hp/dtdxwpwn0zlf7d06t22ynch00000gn/T/.tmpitfN5i/wasm-bindgen-test.js:150:18)
at exports.__wbg_new_c56cf65e94050540 (/private/var/folders/hp/dtdxwpwn0zlf7d06t22ynch00000gn/T/.tmpitfN5i/wasm-bindgen-test.js:13788:58)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.wasm_bindgen_test::__rt::Context::new::panic_handling::Error::new::__wbg_new_c56cf65e94050540::h55cf3b17e7f2c664 externref shim (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[14174]:0xcb4217)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.wasm_bindgen_test::__rt::Context::new::panic_handling::h6c7bfce0eee96d85 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[4785]:0xa018e7)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.wasm_bindgen_test::__rt::Context::new::{{closure}}::{{closure}}::hbc4be368a984bb98 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[11498]:0xc857bf)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::panicking::panic_with_hook::h45a48d23facbfe7a (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[10851]:0xc691c0)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::panicking::panic_handler::{{closure}}::h95cca62b9ba97242 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[11362]:0xc806ff)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::sys::backtrace::__rust_end_short_backtrace::hf7591cd7d0896943 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[14703]:0xcb626a)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.__rustc[9a7a9f9af7564de1]::rust_begin_unwind (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[13126]:0xcabcec)
JS exception that was thrown:
RuntimeError: unreachable
at aleo_wasm-d2e3a7e8a1edc8df.wasm.__rustc[9a7a9f9af7564de1]::rust_panic (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[14770]:0xcb64a2)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::panicking::panic_with_hook::h45a48d23facbfe7a (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[10851]:0xc691ee)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::panicking::panic_handler::{{closure}}::h95cca62b9ba97242 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[11362]:0xc806ff)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::sys::backtrace::__rust_end_short_backtrace::hf7591cd7d0896943 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[14703]:0xcb626a)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.__rustc[9a7a9f9af7564de1]::rust_begin_unwind (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[13126]:0xcabcec)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.core::panicking::panic_fmt::h2571685d25994ead (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[13124]:0xcabc89)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.core::result::unwrap_failed::hf09cc0a2620ccdd9 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[11599]:0xc88eb8)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.<wasm_bindgen_test::__rt::TestFuture<F> as core::future::future::Future>::poll::{{closure}}::{{closure}}::h827a5ea9ea32d488 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[306]:0x25f016)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.wasm_bindgen::convert::closures::_::invoke::hfcb4080ec0399884 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[13593]:0xcb07d1)
at wasm_bindgen__convert__closures_____invoke__hfcb4080ec0399884 (/private/var/folders/hp/dtdxwpwn0zlf7d06t22ynch00000gn/T/.tmpitfN5i/wasm-bindgen-test.js:309:10)
---- utilities::encrypt::tests::test_encryption_toolkit_decrypt_record_sender_ciphertext output ----
error output:
panicked at src/utilities/encrypt.rs:432:96:
called `Result::unwrap()` on an `Err` value: "Failed to recover an affine group from an x-coordinate of 1997809689389597890288510442064084047792220506208250827619710693974099825841field"
Stack:
Error
at /private/var/folders/hp/dtdxwpwn0zlf7d06t22ynch00000gn/T/.tmpitfN5i/wasm-bindgen-test.js:13789:17
at logError (/private/var/folders/hp/dtdxwpwn0zlf7d06t22ynch00000gn/T/.tmpitfN5i/wasm-bindgen-test.js:150:18)
at exports.__wbg_new_c56cf65e94050540 (/private/var/folders/hp/dtdxwpwn0zlf7d06t22ynch00000gn/T/.tmpitfN5i/wasm-bindgen-test.js:13788:58)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.wasm_bindgen_test::__rt::Context::new::panic_handling::Error::new::__wbg_new_c56cf65e94050540::h55cf3b17e7f2c664 externref shim (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[14174]:0xcb4217)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.wasm_bindgen_test::__rt::Context::new::panic_handling::h6c7bfce0eee96d85 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[4785]:0xa018e7)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.wasm_bindgen_test::__rt::Context::new::{{closure}}::{{closure}}::hbc4be368a984bb98 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[11498]:0xc857bf)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::panicking::panic_with_hook::h45a48d23facbfe7a (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[10851]:0xc691c0)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::panicking::panic_handler::{{closure}}::h95cca62b9ba97242 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[11362]:0xc806ff)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::sys::backtrace::__rust_end_short_backtrace::hf7591cd7d0896943 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[14703]:0xcb626a)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.__rustc[9a7a9f9af7564de1]::rust_begin_unwind (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[13126]:0xcabcec)
JS exception that was thrown:
RuntimeError: unreachable
at aleo_wasm-d2e3a7e8a1edc8df.wasm.__rustc[9a7a9f9af7564de1]::rust_panic (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[14770]:0xcb64a2)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::panicking::panic_with_hook::h45a48d23facbfe7a (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[10851]:0xc691ee)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::panicking::panic_handler::{{closure}}::h95cca62b9ba97242 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[11362]:0xc806ff)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::sys::backtrace::__rust_end_short_backtrace::hf7591cd7d0896943 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[14703]:0xcb626a)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.__rustc[9a7a9f9af7564de1]::rust_begin_unwind (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[13126]:0xcabcec)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.core::panicking::panic_fmt::h2571685d25994ead (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[13124]:0xcabc89)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.core::result::unwrap_failed::hf09cc0a2620ccdd9 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[11599]:0xc88eb8)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.aleo_wasm::utilities::encrypt::tests::test_encryption_toolkit_decrypt_record_sender_ciphertext::hc02d9e0bfa0e35f5 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[1671]:0x6ba2db)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.<wasm_bindgen_test::__rt::TestFuture<F> as core::future::future::Future>::poll::{{closure}}::{{closure}}::hf6c0d93c0b120a08 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[10713]:0xc61ed2)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.wasm_bindgen::convert::closures::_::invoke::hfcb4080ec0399884 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[13593]:0xcb07d1)
---- programs::manager::proving_request::tests::test_nested_proving_request output ----
log output:
Creating proving request for import puzzle_arcade_coin_v002.aleo;
import puzzle_arcade_ticket_v002.aleo;
program puzzle_spinner_v002.aleo;
struct Result:
nonce as field;
tickets as u64;
mapping used_nonces:
key as field.public;
value as boolean.public;
function spin:
input r0 as puzzle_arcade_coin_v002.aleo/PuzzleArcadeCoin.record;
input r1 as Result.public;
input r2 as signature.private;
sign.verify r2 aleo196a39wq9q8ea779cmlmff0c9pj2gl4f5e8fhjpvmufe5utuq7y8snz4h2l r1 into r3;
assert.eq r3 true ;
is.eq r1.tickets 1000000u64 into r4;
is.eq r1.tickets 2000000u64 into r5;
or r4 r5 into r6;
is.eq r1.tickets 5000000u64 into r7;
or r6 r7 into r8;
is.eq r1.tickets 10000000u64 into r9;
or r8 r9 into r10;
assert.eq r10 true ;
call puzzle_arcade_coin_v002.aleo/spend r0 1000000u64 into r11;
call puzzle_arcade_ticket_v002.aleo/mint r0.owner r1.tickets into r12 r13;
async spin r13 r1.nonce into r14;
output r11 as puzzle_arcade_coin_v002.aleo/PuzzleArcadeCoin.record;
output r12 as puzzle_arcade_ticket_v002.aleo/PuzzleArcadeTicket.record;
output r14 as puzzle_spinner_v002.aleo/spin.future;
finalize spin:
input r0 as puzzle_arcade_ticket_v002.aleo/mint.future;
input r1 as field.public;
get.or_use used_nonces[r1] false into r2;
assert.eq r2 false ;
set true into used_nonces[r1];
await r0;
:spin
Check program imports are valid and add them to the process
Importing program: puzzle_arcade_coin_v002.aleo
Adding puzzle_arcade_coin_v002.aleo to the process
Importing program: puzzle_arcade_ticket_v002.aleo
Adding puzzle_arcade_ticket_v002.aleo to the process
Loading program
Loading function
Adding program to the process
Creating authorization for puzzle_spinner_v002.aleo:spin
parsing inputs
error output:
panicked at src/programs/manager/proving_request.rs:146:10:
called `Result::unwrap()` on an `Err` value: "Failed to execute instruction (call puzzle_arcade_coin_v002.aleo/spend r0 1000000u64 into r11;): Input record for 'puzzle_arcade_coin_v002.aleo' must belong to the signer"
Stack:
Error
at /private/var/folders/hp/dtdxwpwn0zlf7d06t22ynch00000gn/T/.tmpitfN5i/wasm-bindgen-test.js:13789:17
at logError (/private/var/folders/hp/dtdxwpwn0zlf7d06t22ynch00000gn/T/.tmpitfN5i/wasm-bindgen-test.js:150:18)
at exports.__wbg_new_c56cf65e94050540 (/private/var/folders/hp/dtdxwpwn0zlf7d06t22ynch00000gn/T/.tmpitfN5i/wasm-bindgen-test.js:13788:58)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.wasm_bindgen_test::__rt::Context::new::panic_handling::Error::new::__wbg_new_c56cf65e94050540::h55cf3b17e7f2c664 externref shim (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[14174]:0xcb4217)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.wasm_bindgen_test::__rt::Context::new::panic_handling::h6c7bfce0eee96d85 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[4785]:0xa018e7)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.wasm_bindgen_test::__rt::Context::new::{{closure}}::{{closure}}::hbc4be368a984bb98 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[11498]:0xc857bf)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::panicking::panic_with_hook::h45a48d23facbfe7a (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[10851]:0xc691c0)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::panicking::panic_handler::{{closure}}::h95cca62b9ba97242 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[11362]:0xc806ff)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::sys::backtrace::__rust_end_short_backtrace::hf7591cd7d0896943 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[14703]:0xcb626a)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.__rustc[9a7a9f9af7564de1]::rust_begin_unwind (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[13126]:0xcabcec)
JS exception that was thrown:
RuntimeError: unreachable
at aleo_wasm-d2e3a7e8a1edc8df.wasm.__rustc[9a7a9f9af7564de1]::rust_panic (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[14770]:0xcb64a2)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::panicking::panic_with_hook::h45a48d23facbfe7a (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[10851]:0xc691ee)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::panicking::panic_handler::{{closure}}::h95cca62b9ba97242 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[11362]:0xc806ff)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.std::sys::backtrace::__rust_end_short_backtrace::hf7591cd7d0896943 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[14703]:0xcb626a)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.__rustc[9a7a9f9af7564de1]::rust_begin_unwind (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[13126]:0xcabcec)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.core::panicking::panic_fmt::h2571685d25994ead (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[13124]:0xcabc89)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.core::result::unwrap_failed::hf09cc0a2620ccdd9 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[11599]:0xc88eb8)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.<wasm_bindgen_test::__rt::TestFuture<F> as core::future::future::Future>::poll::{{closure}}::{{closure}}::hee6a00f1cf936d7e (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[307]:0x261937)
at aleo_wasm-d2e3a7e8a1edc8df.wasm.wasm_bindgen::convert::closures::_::invoke::hfcb4080ec0399884 (wasm://wasm/aleo_wasm-d2e3a7e8a1edc8df.wasm-2a20875a:wasm-function[13593]:0xcb07d1)
at wasm_bindgen__convert__closures_____invoke__hfcb4080ec0399884 (/private/var/folders/hp/dtdxwpwn0zlf7d06t22ynch00000gn/T/.tmpitfN5i/wasm-bindgen-test.js:309:10)
failures:
record::record_plaintext::tests::test_record_decrypt_record_sender_ciphertext
programs::manager::authorize::tests::test_authorization
utilities::encrypt::tests::test_encryption_toolkit_decrypt_record_sender_ciphertext
programs::manager::proving_request::tests::test_nested_proving_request
🐛 Bug Report
When running
yarn test:wasm, I get errors that aPUZZLE_PKneeds to be set. This needs to be documented.If I set a random valid
PUZZLE_PK, e.g.APrivateKey1zkp5oG9E7YfZ2xdFj4Gp9cgtWy1yhFkStufN8fRyVntfLYS, then I get the following errors. Is this because the tests expect a specific secretPUZZLE_PKset here.github/workflows/sdk.yml: PUZZLE_PK: ${{ secrets.PUZZLE_PK }}?