Skip to content

Commit

Permalink
Add a warning to the documentation of sui_tblsSignRandomnessObject an…
Browse files Browse the repository at this point in the history
…d update a missing dep (MystenLabs#8018)
  • Loading branch information
benr-ml authored Feb 2, 2023
1 parent 289d1b3 commit f683b2f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions crates/mysten-metrics/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@ dashmap = "5.4.0"
uuid = { version = "1.1.2", features = ["v4", "fast-rng"]}
parking_lot = "0.12.1"
futures = "0.3.23"
tokio.workspace = true

prometheus-closure-metric = { path = "../prometheus-closure-metric" }
2 changes: 2 additions & 0 deletions crates/sui-json-rpc/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -653,6 +653,8 @@ pub trait EventReadApi {
#[rpc(server, client, namespace = "sui")]
pub trait ThresholdBlsApi {
/// Sign an a Randomness object with threshold BLS.
/// **Warning**: This API is a work in progress and uses insecure randomness. Please use it for
/// testing purposes only.
#[method(name = "tblsSignRandomnessObject")]
async fn tbls_sign_randomness_object(
&self,
Expand Down
2 changes: 1 addition & 1 deletion crates/sui-open-rpc/spec/openrpc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2656,7 +2656,7 @@
"name": "Threshold BLS APIs"
}
],
"description": "Sign an a Randomness object with threshold BLS.",
"description": "Sign an a Randomness object with threshold BLS. **Warning**: This API is a work in progress and uses insecure randomness. Please use it for testing purposes only.",
"params": [
{
"name": "object_id",
Expand Down

0 comments on commit f683b2f

Please sign in to comment.