|
@@ -24,9 +24,15 @@ pub use proof::Proof;
|
|
|
//pub mod lead_proof;
|
|
//pub mod lead_proof;
|
|
|
//pub mod leadcoin;
|
|
//pub mod leadcoin;
|
|
|
|
|
|
|
|
|
|
+use crate::{
|
|
|
|
|
+ impl_vec,
|
|
|
|
|
+ util::serial::{Decodable, Encodable, SerialDecodable, SerialEncodable, VarInt},
|
|
|
|
|
+ Result,
|
|
|
|
|
+};
|
|
|
use keypair::SecretKey;
|
|
use keypair::SecretKey;
|
|
|
|
|
+use std::io;
|
|
|
|
|
|
|
|
-#[derive(Copy, Clone, Debug, PartialEq, Eq)]
|
|
|
|
|
|
|
+#[derive(Copy, Clone, Debug, PartialEq, Eq, SerialEncodable, SerialDecodable)]
|
|
|
pub struct OwnCoin {
|
|
pub struct OwnCoin {
|
|
|
pub coin: coin::Coin,
|
|
pub coin: coin::Coin,
|
|
|
pub note: note::Note,
|
|
pub note: note::Note,
|
|
@@ -36,3 +42,4 @@ pub struct OwnCoin {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
pub type OwnCoins = Vec<OwnCoin>;
|
|
pub type OwnCoins = Vec<OwnCoin>;
|
|
|
|
|
+impl_vec!(OwnCoin);
|