mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-01-10 17:23:07 +00:00
28 lines
554 B
Rust
28 lines
554 B
Rust
use std::io;
|
|
|
|
use thiserror::Error;
|
|
|
|
#[derive(Error, Debug)]
|
|
pub enum NssaError {
|
|
#[error("Invalid input: {0}")]
|
|
InvalidInput(String),
|
|
|
|
#[error("Risc0 error: {0}")]
|
|
ProgramExecutionFailed(String),
|
|
|
|
#[error("Program violated execution rules")]
|
|
InvalidProgramBehavior,
|
|
|
|
#[error("Serialization error: {0}")]
|
|
InstructionSerializationError(String),
|
|
|
|
#[error("Invalid private key")]
|
|
InvalidPrivateKey,
|
|
|
|
#[error("IO error: {0}")]
|
|
Io(#[from] io::Error),
|
|
|
|
#[error("Invalid Public Key")]
|
|
InvalidPublicKey,
|
|
}
|