~starkingdoms/starkingdoms

ref: eabc84c8e290163d25ea21f153ae811bf09fc23a starkingdoms/crates/common/src/save/error.rs -rw-r--r-- 376 bytes
eabc84c8 — core feat: add basic save file authentication infrastructure 13 hours ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
use thiserror::Error;

#[derive(Clone, Debug, Error)]
pub enum SaveError {
    #[error("postcard ser/de error: {0}")]
    PostcardError(#[from] postcard::Error),
    #[error("invalid base64: {0}")]
    Base64(#[from] base64::DecodeError),
    #[error("incorrect key length: should be 32, got {0}")]
    InvalidKeyLength(usize),
    #[error("ed25519 error")]
    Ed25519Error
}