| Crates.io | zemi-identity |
| lib.rs | zemi-identity |
| version | 0.1.1 |
| created_at | 2022-11-15 03:18:30.045336+00 |
| updated_at | 2022-11-16 00:14:19.03278+00 |
| description | Identity tools that can be used to create credentials without a trusted third party. This library can deterministically produce an asymmetric keypair from user credentials. It also generates a consistent public identity tied to the provided username that cannot easily be used to discover the username. |
| homepage | |
| repository | https://github.com/Hedzer/zemi-identity |
| max_upload_size | |
| id | 715429 |
| size | 19,268 |
Identity tools that can be used to create credentials without a trusted third party. This library can deterministically produce an asymmetric keypair from user credentials. It also generates a consistent public identity tied to the provided username that cannot easily be used to discover the username.
let identity = Identity::from_credentials("username", "password", "salt", Version::V1)?;
let signature = identity.sign(b"message")?;
let verify_op = identity.verify(b"message", &signature);
assert!(verify_op.is_ok());
let identity = Identity::from_credentials("username", "password", "salt", Version::V1)?;
let public = identity.to_public_identity();
let verify_op = public.verify(b"message", &signature);
assert!(verify_op.is_ok());