pub enum SignatureType {
Ecdsa,
EcdsaRecovery,
Ed25519,
Schnorr1,
SchnorrPoseidon,
Sr25519,
}
Expand description
SignatureType : SignatureType is the type of a cryptographic signature. * ecdsa: r (32-bytes) || s (32-bytes)
- 64 bytes
* ecdsa_recovery: r (32-bytes) || s (32-bytes) || v (1-byte)
- 65 bytes
* ed25519: R (32-byte) || s (32-bytes)
- 64 bytes
* schnorr_1: r (32-bytes) || s (32-bytes)
- 64 bytes
(schnorr signature implemented by Zilliqa where both r
and s
are scalars encoded as 32-bytes
values, most significant byte first.) * schnorr_poseidon: r (32-bytes) || s (32-bytes)
where s = Hash(1st pk || 2nd pk || r) - 64 bytes
(schnorr signature w/ Poseidon hash function implemented by O(1) Labs where both r
and s
are scalars encoded as 32-bytes
values, least significant byte first. https://github.com/CodaProtocol/signer-reference/blob/master/schnorr.ml )
SignatureType is the type of a cryptographic signature. * ecdsa: r (32-bytes) || s (32-bytes)
- 64 bytes
* ecdsa_recovery: r (32-bytes) || s (32-bytes) || v (1-byte)
- 65 bytes
* ed25519: R (32-byte) || s (32-bytes)
- 64 bytes
* schnorr_1: r (32-bytes) || s (32-bytes)
- 64 bytes
(schnorr signature implemented by Zilliqa where both r
and s
are scalars encoded as 32-bytes
values, most significant byte first.) * schnorr_poseidon: r (32-bytes) || s (32-bytes)
where s = Hash(1st pk || 2nd pk || r) - 64 bytes
(schnorr signature w/ Poseidon hash function implemented by O(1) Labs where both r
and s
are scalars encoded as 32-bytes
values, least significant byte first. https://github.com/CodaProtocol/signer-reference/blob/master/schnorr.ml )
Variants§
Trait Implementations§
source§impl Clone for SignatureType
impl Clone for SignatureType
source§fn clone(&self) -> SignatureType
fn clone(&self) -> SignatureType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SignatureType
impl Debug for SignatureType
source§impl Default for SignatureType
impl Default for SignatureType
source§fn default() -> SignatureType
fn default() -> SignatureType
source§impl<'de> Deserialize<'de> for SignatureType
impl<'de> Deserialize<'de> for SignatureType
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 Hash for SignatureType
impl Hash for SignatureType
source§impl Ord for SignatureType
impl Ord for SignatureType
source§fn cmp(&self, other: &SignatureType) -> Ordering
fn cmp(&self, other: &SignatureType) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
source§impl PartialEq<SignatureType> for SignatureType
impl PartialEq<SignatureType> for SignatureType
source§fn eq(&self, other: &SignatureType) -> bool
fn eq(&self, other: &SignatureType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<SignatureType> for SignatureType
impl PartialOrd<SignatureType> for SignatureType
source§fn partial_cmp(&self, other: &SignatureType) -> Option<Ordering>
fn partial_cmp(&self, other: &SignatureType) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read more