mirror of
https://github.com/logos-blockchain/lssa.git
synced 2026-02-16 19:33:09 +00:00
serialize/deserialize Account
This commit is contained in:
parent
0d577da288
commit
5e9499873d
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user