[Add] Structure

This commit is contained in:
Alex Emmet 2026-07-20 22:21:43 +02:00
commit ed1b21b3ff
44 changed files with 2210 additions and 2721 deletions

9
src/models/iota.rs Normal file
View file

@ -0,0 +1,9 @@
use super::IotaId;
use mtp::crypto::PublicKeyBundle;
#[derive(Clone, Debug, serde::Serialize)]
pub struct Iota {
pub id: IotaId,
#[serde(serialize_with = "crate::models::serialize_public_key")]
pub public_key: PublicKeyBundle,
}