#[repr(u8)]pub enum IdentityFlag {
PubkeyHash = 0,
Ethereum = 1,
Eos = 2,
Tron = 3,
Bitcoin = 4,
Dogecoin = 5,
Multisig = 6,
OwnerLock = 252,
Exec = 253,
Dl = 254,
}Variants§
PubkeyHash = 0
The auth content represents the blake160 hash of a secp256k1 public key. The lock script will perform secp256k1 signature verification, the same as the SECP256K1/blake160 lock.
Ethereum = 1
It follows the same unlocking methods used by Ethereum.
Eos = 2
It follows the same unlocking methods used by EOS.
Tron = 3
It follows the same unlocking methods used by Tron.
Bitcoin = 4
It follows the same unlocking methods used by Bitcoin
Dogecoin = 5
It follows the same unlocking methods used by Dogecoin.
Multisig = 6
It follows the same unlocking method used by CKB MultiSig.
OwnerLock = 252
The auth content that represents the blake160 hash of a lock script. The lock script will check if the current transaction contains an input cell with a matching lock script. Otherwise, it would return with an error. It’s similar to P2SH in BTC.
Exec = 253
The auth content that represents the blake160 hash of a preimage. The preimage contains exec information that is used to delegate signature verification to another script via exec.
Dl = 254
The auth content that represents the blake160 hash of a preimage. The preimage contains dynamic linking information that is used to delegate signature verification to the dynamic linking script. The interface described in Swappable Signature Verification Protocol Spec is used here.
Trait Implementations§
Source§impl Clone for IdentityFlag
impl Clone for IdentityFlag
Source§fn clone(&self) -> IdentityFlag
fn clone(&self) -> IdentityFlag
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for IdentityFlag
impl Debug for IdentityFlag
Source§impl Default for IdentityFlag
impl Default for IdentityFlag
Source§fn default() -> IdentityFlag
fn default() -> IdentityFlag
Source§impl<'de> Deserialize<'de> for IdentityFlag
impl<'de> Deserialize<'de> for IdentityFlag
Source§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>,
Source§impl From<IdentityFlag> for u8
impl From<IdentityFlag> for u8
Source§fn from(enum_value: IdentityFlag) -> Self
fn from(enum_value: IdentityFlag) -> Self
Source§impl Hash for IdentityFlag
impl Hash for IdentityFlag
Source§impl PartialEq for IdentityFlag
impl PartialEq for IdentityFlag
Source§impl Serialize for IdentityFlag
impl Serialize for IdentityFlag
Source§impl TryFrom<u8> for IdentityFlag
impl TryFrom<u8> for IdentityFlag
impl Copy for IdentityFlag
impl Eq for IdentityFlag
impl StructuralPartialEq for IdentityFlag
Auto Trait Implementations§
impl Freeze for IdentityFlag
impl RefUnwindSafe for IdentityFlag
impl Send for IdentityFlag
impl Sync for IdentityFlag
impl Unpin for IdentityFlag
impl UnwindSafe for IdentityFlag
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> CallHasher for T
impl<T> CallHasher for 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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more