84c1679973
* Add nym- prefix to nymcoconut * Add nym- prefix to validator-client * Add nym- prefix to gateway-requests * Add nym- prefix to mobile-storage * Add nym- prefix to gateway-client * Add nym- prefix to client-core * rustfmt
18 lines
503 B
Rust
18 lines
503 B
Rust
// Copyright 2021 - Nym Technologies SA <contact@nymtech.net>
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
use nym_coconut::CoconutError;
|
|
use thiserror::Error;
|
|
|
|
#[derive(Debug, Error)]
|
|
pub enum CoconutInterfaceError {
|
|
#[error("not enough bytes: {0} received, minimum {1} required")]
|
|
InvalidByteLength(usize, usize),
|
|
|
|
#[error("Could not decode base 58 string - {0}")]
|
|
MalformedString(#[from] bs58::decode::Error),
|
|
|
|
#[error("Coconut error - {0}")]
|
|
CoconutError(#[from] CoconutError),
|
|
}
|