jazzdotdev / jazzdotdev/jazz

crypto bindings very ugly panic

Open
#88 1 comment 0 reactions 0 assignees View on GitHub
progress/1 track/unscoped
Dominant language
Rust
Stars
147
Forks
10
PR merge metrics
No merged PRs in 30d

Description

`bindings::crypto::sign::sign_detached`, called from lua with

~~~lua
crypto.sign.load_secret(priv_key_string):sign_detached(value_to_sign)
~~~

panics very ugly when the value to be signed is not a string. I imagine other crypto functions behave the same way. They should throw a Lua error detailing what happened instead of rust-panicking the thread.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.