Enum diem_types::transaction::authenticator::Scheme
source · #[repr(u8)]
pub enum Scheme {
Ed25519,
MultiEd25519,
}
Expand description
An AccountAuthenticator
is an an abstraction of a signature scheme. It must know:
(1) How to check its signature against a message and public key
(2) How to convert its public key into an AuthenticationKeyPreimage
structured as
(public_key | signaure_scheme_id).
Each on-chain DiemAccount
must store an AuthenticationKey
(computed via a sha3 hash of an
AuthenticationKeyPreimage
).