@@ -39,7 +39,7 @@ pub enum TxOutError {
3939 UnExpectedNullValue ,
4040 /// Unexpected Null asset
4141 UnExpectedNullAsset ,
42- /// Money should be between 0 and 21_000_000
42+ /// Money should be between 0 and ` 21_000_000`
4343 MoneyOutofRange ,
4444 /// Zero value explicit txout with non-provably unspendable script
4545 NonUnspendableZeroValue ,
@@ -90,7 +90,7 @@ pub enum VerificationError {
9090 RangeProofError ( usize , secp256k1_zkp:: Error ) ,
9191 /// Missing Range Proof
9292 RangeProofMissing ( usize ) ,
93- /// Verification of SurjectionProof failed
93+ /// Verification of ` SurjectionProof` failed
9494 SurjectionProofError ( usize , secp256k1_zkp:: Error ) ,
9595 /// Surjection Proof verification error
9696 SurjectionProofVerificationError ( usize ) ,
@@ -165,7 +165,7 @@ pub enum ConfidentialTxOutError {
165165 NoBlindingKeyInAddress ,
166166 /// Error originated in `secp256k1_zkp`.
167167 Upstream ( secp256k1_zkp:: Error ) ,
168- /// General TxOut errors
168+ /// General ` TxOut` errors
169169 TxOutError ( usize , TxOutError ) ,
170170 /// Expected Explicit Asset for blinding
171171 ExpectedExplicitAsset ,
@@ -264,7 +264,7 @@ impl TxOutSecrets {
264264
265265 /// Gets the surjection inputs from [`TxOutSecrets`].
266266 ///
267- /// Returns a tuple (assetid, blind_factor, generator) if the blinds are
267+ /// Returns a tuple ` (assetid, blind_factor, generator)` if the blinds are
268268 /// consistent with asset commitment
269269 /// Otherwise, returns an error
270270 pub fn surjection_inputs < C : Signing > ( & self , secp : & Secp256k1 < C > ) -> ( Generator , Tag , Tweak ) {
@@ -327,7 +327,7 @@ impl SurjectionInput {
327327 }
328328
329329 /// Handy method to convert [`SurjectionInput`] into a surjection target
330- /// that can be used while creating a new [SurjectionProof].
330+ /// that can be used while creating a new [` SurjectionProof` ].
331331 ///
332332 /// Only errors when the input asset is Null.
333333 pub fn surjection_target < C : Signing > (
@@ -405,8 +405,8 @@ impl Value {
405405 ///
406406 /// # Returns:
407407 ///
408- /// A pair of blinded value, nonce and corresponding proof as ([`Value`], [`Nonce`], [`RangeProof`])
409- /// The nonce here refers to public key corresponding to the input `ephemeral_sk`
408+ /// * A pair of blinded value, nonce and corresponding proof as ([`Value`], [`Nonce`], [`RangeProof`])
409+ /// * The nonce here refers to public key corresponding to the input `ephemeral_sk`
410410 pub fn blind < C : Signing > (
411411 self ,
412412 secp : & Secp256k1 < C > ,
@@ -424,7 +424,8 @@ impl Value {
424424 Ok ( ( value_commit, nonce, rangeproof) )
425425 }
426426
427- /// Blinds with the given shared_secret(instead of computing it via ECDH)
427+ /// Blinds with the given `shared_secret` (instead of computing it via ECDH).
428+ ///
428429 /// This is useful while blinding assets as there is no counter party to provide
429430 /// the blinding key.
430431 pub fn blind_with_shared_secret < C : Signing > (
@@ -466,15 +467,15 @@ impl TxOut {
466467 pub const RANGEPROOF_EXP_SHIFT : i32 = 0 ;
467468 /// Rangeproof Minimum private bits
468469 pub const RANGEPROOF_MIN_PRIV_BITS : u8 = 52 ;
469- /// Maximum explicit amount in a bitcoin TxOut
470+ /// Maximum explicit amount in a bitcoin ` TxOut`
470471 pub const MAX_MONEY : u64 = 21_000_000 * 100_000_000 ;
471472
472473 /// Creates a new confidential output that is **not** the last one in the transaction.
473474 /// Provide input secret information by creating [`SurjectionInput`] for each input.
474475 /// Inputs for issuances must be provided in the followed by inputs for input asset.
475476 ///
476477 /// For example, if the second input contains non-null issuance and re-issuance tokens,
477- /// the `spent_utxo_secrets` should be of the form [inp_1, inp_2, inp_2_issue, inp2_reissue,...]
478+ /// the `spent_utxo_secrets` should be of the form [` inp_1`, ` inp_2`, ` inp_2_issue`, ` inp2_reissue` ,...]
478479 ///
479480 /// If the issuance or re-issuance is null, it should not be added to `spent_utxo_secrets`
480481 ///
@@ -571,7 +572,7 @@ impl TxOut {
571572 Ok ( txout)
572573 }
573574
574- /// Convert a explicit TxOut into a Confidential TxOut.
575+ /// Convert a explicit ` TxOut` into a Confidential ` TxOut` .
575576 /// The blinding key is provided by the blinder parameter.
576577 /// The initial value of nonce is ignored and is set to the ECDH pubkey
577578 /// sampled by the sender.
@@ -653,7 +654,7 @@ impl TxOut {
653654 ///
654655 /// Inputs for issuances must be provided in the followed by inputs for input asset.
655656 /// For example, if the second input contains non-null issuance and re-issuance tokens,
656- /// the `spent_utxo_secrets` should be of the form [inp_1, inp_2, inp_2_issue, inp2_reissue,...]
657+ /// the `spent_utxo_secrets` should be of the form [` inp_1`, ` inp_2`, ` inp_2_issue`, ` inp2_reissue` ,...]
657658 /// If the issuance or re-issuance is null, it should not be added to `spent_utxo_secrets`
658659 ///
659660 /// # Returns:
@@ -693,7 +694,7 @@ impl TxOut {
693694 Ok ( ( txout, out_abf, out_vbf, ephemeral_sk) )
694695 }
695696
696- /// Similar to [TxOut::new_last_confidential], but allows specifying the asset blinding factor
697+ /// Similar to [` TxOut::new_last_confidential` ], but allows specifying the asset blinding factor
697698 /// and the ephemeral key. The value-blinding factor is computed adaptively
698699 #[ allow( clippy:: too_many_arguments) ]
699700 pub fn with_secrets_last < R , C > (
@@ -892,7 +893,7 @@ impl TxIn {
892893 /// Blind issuances for this [`TxIn`]. Asset amount and token amount must be
893894 /// set in [`AssetIssuance`](crate::AssetIssuance) field for this input
894895 ///
895- /// Returns (issuance_blinding_factor, issue_blind_sec_key, token_blinding_factor, token_blind_sec_key)
896+ /// Returns (` issuance_blinding_factor`, ` issue_blind_sec_key`, ` token_blinding_factor`, ` token_blind_sec_key` )
896897 pub fn blind_issuances < C : Signing , R : RngCore + CryptoRng > (
897898 & mut self ,
898899 secp : & Secp256k1 < C > ,
@@ -937,9 +938,9 @@ impl Transaction {
937938 /// equation for Confidential transactions holds.
938939 /// i.e Sum of inputs = Sum of outputs + fees.
939940 /// And the corresponding surjection/rangeproofs are correct.
940- /// For checking of surjection proofs and amounts, spent_utxos parameter
941+ /// For checking of surjection proofs and amounts, ` spent_utxos` parameter
941942 /// should contain information about the prevouts. Note that the order of
942- /// spent_utxos should be consistent with transaction inputs.
943+ /// ` spent_utxos` should be consistent with transaction inputs.
943944 /// ## Examples
944945 ///
945946 /// ```
@@ -1200,9 +1201,9 @@ pub enum BlindError {
12001201 TooFewBlindingOutputs ,
12011202 /// All outputs must be explicit asset/amounts
12021203 MustHaveAllExplicitTxOuts ,
1203- /// General TxOut errors
1204+ /// General ` TxOut` errors
12041205 ConfidentialTxOutError ( ConfidentialTxOutError ) ,
1205- /// No Issuances to blind in this TxIn
1206+ /// No Issuances to blind in this ` TxIn`
12061207 NoIssuanceToBlind ,
12071208 /// Zero Value Blinding not allowed
12081209 ZeroValueBlindingNotAllowed ,
@@ -1278,7 +1279,7 @@ pub trait BlindValueProofs: Sized {
12781279}
12791280
12801281impl BlindValueProofs for RangeProof {
1281- /// Outputs a `[ RangeProof]` that blinded value_commit
1282+ /// Outputs a [` RangeProof`] that blinded ` value_commit`
12821283 /// corresponds to explicit value
12831284 fn blind_value_proof < C : secp256k1_zkp:: Signing , R : RngCore + CryptoRng > (
12841285 rng : & mut R ,
0 commit comments