serialize/deserialize Account

This commit is contained in:
Rostyslav Tyshko 2025-05-30 15:20:14 -04:00
parent 0d577da288
commit 5e9499873d

View File

@ -4,7 +4,7 @@ use anyhow::Result;
use common::{merkle_tree_public::TreeHashType, transaction::Tag};
use k256::AffinePoint;
use log::info;
use serde::Serialize;
use serde::{Deserialize, Serialize};
use utxo::utxo_core::{UTXOPayload, UTXO};
use crate::key_management::{
@ -16,6 +16,7 @@ use crate::key_management::{
pub type PublicKey = AffinePoint;
pub type AccountAddress = TreeHashType;
#[derive(Serialize, Deserialize, Clone)]
pub struct Account {
pub key_holder: AddressKeyHolder,
pub address: AccountAddress,