[Add] Structure
This commit is contained in:
parent
b2f3ed12f3
commit
ed1b21b3ff
44 changed files with 2210 additions and 2721 deletions
9
src/models/iota.rs
Normal file
9
src/models/iota.rs
Normal 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,
|
||||
}
|
||||
Loading…
Reference in a new issue