Enum ckb_jsonrpc_types::OutputsValidator [−][src]
pub enum OutputsValidator { Default, Passthrough, }
Expand description
Transaction output validators that prevent common mistakes.
Variants
“default”: The default validator which restricts the lock script and type script usage.
The default validator only allows outputs (a.k.a., cells) that
- use either the secp256k1 or the secp256k1 multisig bundled in the genesis block via type script hash as the lock script,
- and the type script is either empty or DAO.
“passthrough”: bypass the validator, thus allow any kind of transaction outputs.
Implementations
Gets the name of the validator when it is serialized into JSON string.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for OutputsValidator
impl Send for OutputsValidator
impl Sync for OutputsValidator
impl Unpin for OutputsValidator
impl UnwindSafe for OutputsValidator
Blanket Implementations
Mutably borrows from an owned value. Read more