Struct bitcoin_scripting::SignatureCache
source · pub struct SignatureCache { /* private fields */ }Expand description
| Valid signature cache, to avoid doing | expensive ECDSA signature checking | twice for every transaction (once when | accepted into memory pool, and again | when accepted into the block chain) |
Implementations§
source§impl SignatureCache
impl SignatureCache
pub fn compute_entryecdsa(
&self,
entry: &mut u256,
hash: &u256,
vch_sig: &Vec<u8>,
pubkey: &PubKey
)
pub fn compute_entry_schnorr(
&self,
entry: &mut u256,
hash: &u256,
sig: &[u8],
pubkey: &XOnlyPubKey
)
pub fn get(&mut self, entry: &u256, erase: bool) -> bool
pub fn set(&mut self, entry: &u256)
pub fn setup_bytes(&mut self, n: usize) -> u32
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SignatureCache
impl !Send for SignatureCache
impl !Sync for SignatureCache
impl Unpin for SignatureCache
impl UnwindSafe for SignatureCache
Blanket Implementations§
§impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
impl<T, U> CastInto<U> for Twhere
U: CastFrom<T>,
§impl<T> Pointable for T
impl<T> Pointable for T
§impl<T> StaticUpcast<T> for T
impl<T> StaticUpcast<T> for T
§unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
unsafe fn static_upcast(ptr: Ptr<T>) -> Ptr<T>
Convert type of a const pointer. Read more