use crate::api::call::{call, call_with_payment128, CallResult};
use candid::Principal;
mod types;
pub use types::*;
const SIGN_WITH_ECDSA_FEE: u128 = 26_153_846_153;
pub async fn ecdsa_public_key(
arg: EcdsaPublicKeyArgument,
) -> CallResult<(EcdsaPublicKeyResponse,)> {
call(Principal::management_canister(), "ecdsa_public_key", (arg,)).await
}
pub async fn sign_with_ecdsa(arg: SignWithEcdsaArgument) -> CallResult<(SignWithEcdsaResponse,)> {
call_with_payment128(
Principal::management_canister(),
"sign_with_ecdsa",
(arg,),
SIGN_WITH_ECDSA_FEE,
)
.await
}