pub trait ToPubkeyScript {
    fn to_pubkey_script(&self, strategy: ConvertInfo) -> Option<PubkeyScript>;
}
Expand description

Conversion for data types (public keys, different types of script) into a scriptPubkey (using PubkeyScript type) using particular conversion ConvertInfo

Required Methods

Converts data type to PubkeyScript. Returns None if the conversion is applied to uncompressed public key in segwit context and for taproot context, where different types of scripts and public keys are required.

Implementations on Foreign Types

Never returns None

Implementors