MCPcopy Create free account
hub / github.com/BitVM/BitVM / sign_digits

Method sign_digits

bitvm/src/signatures/winternitz.rs:226–233  ·  view source on GitHub ↗

Creates a Winternitz signature for the given `secret_key` and `digits`. ## See [`Verifier::sign_digits`]

(
        &self,
        ps: &Parameters,
        secret_key: &SecretKey,
        digits: Vec<u32>,
    )

Source from the content-addressed store, hash-verified

224 ///
225 /// [`Verifier::sign_digits`]
226 pub fn sign_digits(
227 &self,
228 ps: &Parameters,
229 secret_key: &SecretKey,
230 digits: Vec<u32>,
231 ) -> Witness {
232 VERIFIER::sign_digits(ps, secret_key, digits)
233 }
234
235 /// Creates a Winternitz signature for the given `secret_key` and `message`.
236 ///

Callers

nothing calls this directly

Calls 4

add_message_checksumFunction · 0.85
digit_signatureFunction · 0.85
total_digit_lenMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected