Type Alias Signature
pub type Signature = MultiSignature;Expand description
Alias to 512-bit hash when used in the context of a transaction signature on the chain.
Aliased Type§
pub enum Signature {
Ed25519(CryptoBytes<64, (SignatureTag, Ed25519Tag)>),
Sr25519(CryptoBytes<64, (SignatureTag, Sr25519Tag)>),
Ecdsa(CryptoBytes<65, (SignatureTag, CryptoBytes<33, (PublicTag, EcdsaTag)>)>),
Eth(CryptoBytes<65, (SignatureTag, CryptoBytes<33, (PublicTag, EcdsaKeccakTag)>)>),
}Variants§
Ed25519(CryptoBytes<64, (SignatureTag, Ed25519Tag)>)
An Ed25519 signature.
Sr25519(CryptoBytes<64, (SignatureTag, Sr25519Tag)>)
An Sr25519 signature.
Ecdsa(CryptoBytes<65, (SignatureTag, CryptoBytes<33, (PublicTag, EcdsaTag)>)>)
An ECDSA/SECP256k1 signature.
Eth(CryptoBytes<65, (SignatureTag, CryptoBytes<33, (PublicTag, EcdsaKeccakTag)>)>)
An ECDSA/SECP256k1 signature but with a different address derivation.
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 66 bytes
Size for each variant:
Ed25519: 64 bytesSr25519: 64 bytesEcdsa: 65 bytesEth: 65 bytes