Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
lwshang committed Sep 16, 2024
1 parent 8e3d579 commit 2ded651
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/ic-cdk/src/api/management_canister/schnorr/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ const SIGN_WITH_SCHNORR_FEE: u128 = 26_153_846_153;
pub async fn schnorr_public_key(
arg: SchnorrPublicKeyArgument,
) -> CallResult<(SchnorrPublicKeyResponse,)> {
call(Principal::management_canister(), "schnorr_public_key", (arg,)).await
call(
Principal::management_canister(),
"schnorr_public_key",
(arg,),
)
.await
}

/// Return a new Schnorr signature of the given message that can be separately verified against a derived Schnorr public key.
Expand All @@ -24,7 +29,9 @@ pub async fn schnorr_public_key(
/// This call requires cycles payment.
/// This method handles the cycles cost under the hood.
/// Check [Threshold signatures](https://internetcomputer.org/docs/current/references/t-sigs-how-it-works) for more details.
pub async fn sign_with_schnorr(arg: SignWithSchnorrArgument) -> CallResult<(SignWithSchnorrResponse,)> {
pub async fn sign_with_schnorr(
arg: SignWithSchnorrArgument,
) -> CallResult<(SignWithSchnorrResponse,)> {
call_with_payment128(
Principal::management_canister(),
"sign_with_schnorr",
Expand Down

0 comments on commit 2ded651

Please sign in to comment.