pub struct CellLock {
pub aux: StateValue,
pub script: Option<LibSite>,
}
Expand description
Custom lock conditions specific to a single destructible lock cell.
Fields§
§aux: StateValue
Auxiliary data which may be used by the codex verifier script or the custom script below in checking the satisfaction of the lock conditions with a witness, which will come from the spending input.
For instance, this may be a value of a public key, and the witness will have a signature, while the script will validate the signature for that key.
script: Option<LibSite>
An entry point to a script which should be executed by the zk-AluVM to check the
satisfaction of the witness against the lock conditions data from [Self::data
].
Unlike the verification script which is run for the operation as a whole, this script will be called for each individual input.
Please keep in mind that the lock scripts may be effectively prohibited by a codex
just via defining input_config
complexity level to be zero.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for CellLock
impl<'de> Deserialize<'de> for CellLock
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<CellLock, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<CellLock, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for CellLock
impl Serialize for CellLock
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Source§impl StrictDecode for CellLock
impl StrictDecode for CellLock
fn strict_decode(reader: &mut impl TypedRead) -> Result<CellLock, DecodeError>
fn strict_read(reader: impl ReadRaw) -> Result<Self, DecodeError>
Source§impl StrictDumb for CellLock
impl StrictDumb for CellLock
fn strict_dumb() -> CellLock
Source§impl StrictEncode for CellLock
impl StrictEncode for CellLock
fn strict_encode<W>(&self, writer: W) -> Result<W, Error>where
W: TypedWrite,
fn strict_write(&self, writer: impl WriteRaw) -> Result<(), Error>
Source§impl StrictStruct for CellLock
impl StrictStruct for CellLock
const ALL_FIELDS: &'static [&'static str]
fn strict_check_fields()
fn strict_type_info() -> TypeInfo<Self>
Source§impl StrictType for CellLock
impl StrictType for CellLock
const STRICT_LIB_NAME: &'static str = LIB_NAME_ULTRASONIC
fn strict_name() -> Option<TypeName>
impl Copy for CellLock
impl Eq for CellLock
impl StrictProduct for CellLock
impl StructuralPartialEq for CellLock
Auto Trait Implementations§
impl Freeze for CellLock
impl RefUnwindSafe for CellLock
impl Send for CellLock
impl Sync for CellLock
impl Unpin for CellLock
impl UnwindSafe for CellLock
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.