pub enum Signature {
Ed25519(Ed25519Signature),
Secp256k1(Secp256k1Signature, RecoveryId),
}Expand description
The signature for confidential transfer.
Variants§
Ed25519(Ed25519Signature)
Ed25519 Signature
Secp256k1(Secp256k1Signature, RecoveryId)
Secp256k1 Signature with recovery.
Trait Implementations§
source§impl<'de> Deserialize<'de> for Signature
impl<'de> Deserialize<'de> for Signature
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>,
Deserialize this value from the given Serde deserializer. Read more
source§impl NoahFromToBytes for Signature
impl NoahFromToBytes for Signature
source§fn noah_to_bytes(&self) -> Vec<u8>
fn noah_to_bytes(&self) -> Vec<u8>
convert to bytes
source§fn noah_from_bytes(bytes: &[u8]) -> Result<Self>
fn noah_from_bytes(bytes: &[u8]) -> Result<Self>
reconstruct from bytes
source§impl PartialEq<Signature> for Signature
impl PartialEq<Signature> for Signature
impl Eq for Signature
impl StructuralEq for Signature
impl StructuralPartialEq for Signature
Auto Trait Implementations§
impl RefUnwindSafe for Signature
impl Send for Signature
impl Sync for Signature
impl Unpin for Signature
impl UnwindSafe for Signature
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more