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

Method compact_checksig_verify

bitvm/src/signatures/public.rs:304–306  ·  view source on GitHub ↗

Returns a Bitcoin script that verifies a Winternitz signature for the given `public_key`. ## Precondition Signature is at the stack top. ## Postcondition The converted message is on the stack top. The checksum is consumed.

(public_key: &Self::PublicKey)

Source from the content-addressed store, hash-verified

302 /// The converted message is on the stack top.
303 /// The checksum is consumed.
304 fn compact_checksig_verify(public_key: &Self::PublicKey) -> Script {
305 Self::COMPACT_ALGORITHM.checksig_verify(&Self::PARAMETERS, &public_key.as_ref().to_vec())
306 }
307
308 /// Returns a Bitcoin script that verifies a Winternitz signature for the given `public_key`.
309 ///

Callers

nothing calls this directly

Calls 2

as_refMethod · 0.80
checksig_verifyMethod · 0.45

Tested by

no test coverage detected