core::crypto::ed25519
이 페이지의 내용
- Structs
SigningKey5VerifyingKey3
API 참조는 영어로만 있습니다. 표준 라이브러리 소스의 영어 문서 주석에서 만듭니다.
Ed25519 (RFC 8032 5.1): pure EdDSA over edwards25519 with SHA-512.
Structs
SigningKeySource
pub struct SigningKeyA signing key: the 32-byte seed and its expansion, in secret
storage. It has one owner (let b = a moves it); wipe and its
release clear it.
Sourcepub fn from_seed<B: AsBytes>(§seed: B) throws (ValueError) -> SigningKey The key of a 32-byte seed.
A copy of the seed.
The public key that checks this key's signatures.
The 64-byte signature
R || Sofmsg(deterministic).Overwrite the key material with zeros now (every copy shares it);
signis meaningless afterwards.
VerifyingKeySource
pub struct VerifyingKeyA public key: a 32-byte encoded point.
Sourcepub fn from_bytes<B: AsBytes>(§bytes: B) throws (ValueError) -> VerifyingKey A 32-byte encoded point; a non-canonical encoding or one that is not on the curve is an error.
The key's 32 bytes.
Whether
sigis a valid signature ofmsg:S < Land the encoding of[S]B - [k]Aequal toRbyte for byte (cofactorless, RFC 8032 5.1.7).