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

Method checksig_verify

bitvm/src/signatures/winternitz.rs:265–271  ·  view source on GitHub ↗

Returns a Bitcoin script that verifies a Winternitz signature for the given `public_key`. ## Precondition Signature (in the verifier's format) is at the stack top. ## Postcondition The converted message is on the stack top. The checksum is consumed. ## See - [`Verifier::verify_digits`] - [`Converter::get_script`]

(&self, ps: &Parameters, public_key: &PublicKey)

Source from the content-addressed store, hash-verified

263 /// - [`Verifier::verify_digits`]
264 /// - [`Converter::get_script`]
265 pub fn checksig_verify(&self, ps: &Parameters, public_key: &PublicKey) -> Script {
266 script! {
267 { VERIFIER::verify_digits(ps, public_key) }
268 { self.verify_checksum(ps) }
269 { CONVERTER::get_script(ps) }
270 }
271 }
272
273 /// Returns a Bitcoin script that verifies a Winternitz signature for the given `public_key`.
274 ///

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected