Skip to content

Commit

Permalink
chore: run the code formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
vnprc committed Aug 31, 2024
1 parent 3ccddee commit 560c64f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 11 deletions.
24 changes: 15 additions & 9 deletions crates/cdk/src/wallet/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -564,27 +564,33 @@ impl Wallet {
Ok(total_amount)
}

/// Generates blinded secrets to send to the mint for signing. This function is
/// appropriate if the caller is providing their own network transport. Otherwise
/// use `mint`, which makes a network request to the mint.
/// Generates blinded secrets to send to the mint for signing. This function
/// is appropriate if the caller is providing their own network
/// transport. Otherwise use `mint`, which makes a network request to
/// the mint.
///
/// # Parameters
///
/// - `&self`: A reference to the current instance
/// - `active_keyset_id`: The ID of the active keyset
/// - `quote_info_amount`: The amount to be minted
/// - `amount_split_target`: Strategy for splitting amount into discrete tokens
/// - `spending_conditions`: Optional spending conditions to apply to the minted tokens
/// - `count`: How many tokens were previously generated from this keyset + 1
/// - `amount_split_target`: Strategy for splitting amount into discrete
/// tokens
/// - `spending_conditions`: Optional spending conditions to apply to the
/// minted tokens
/// - `count`: How many tokens were previously generated from this keyset +
/// 1
/// - `xpriv`: The extended private key used for generating secrets
///
/// # Returns
///
/// A `Result` containing `PreMintSecrets` if successful, or an `Error` otherwise.
/// A `Result` containing `PreMintSecrets` if successful, or an `Error`
/// otherwise.
///
/// # Errors
///
/// This function will return an error if the creation of `PreMintSecrets` fails.
/// This function will return an error if the creation of `PreMintSecrets`
/// fails.
///
/// ```
pub fn generate_premint_secrets(
Expand All @@ -594,7 +600,7 @@ impl Wallet {
amount_split_target: &SplitTarget,
spending_conditions: Option<&SpendingConditions>,
count: u32,
xpriv: ExtendedPrivKey
xpriv: ExtendedPrivKey,
) -> Result<PreMintSecrets, Error> {
// Move the match logic into this function.
match spending_conditions {
Expand Down
6 changes: 4 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,14 @@
pname = "flexbox-multibuild";
src = rustSrc;
}).overrideArgs commonArgs;
in rec {
in
rec {
workspaceDeps = craneLib.buildWorkspaceDepsOnly { };
workspaceBuild =
craneLib.buildWorkspace { cargoArtifacts = workspaceDeps; };
});
in {
in
{
devShells = flakeboxLib.mkShells {
toolchain = toolchainNative;
packages = [ ];
Expand Down

0 comments on commit 560c64f

Please sign in to comment.