Revert "[WIP] Partial Transition from Writeable/Readable to Codecs (#51)"

This reverts commit de4ebdde71.
This commit is contained in:
Ignotus Peverell
2017-05-31 15:47:52 -07:00
parent 996eab72ae
commit 40d23db6c1
20 changed files with 463 additions and 1773 deletions
+2 -2
View File
@@ -36,7 +36,7 @@ bitflags! {
}
/// Block header, fairly standard compared to other blockchains.
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug)]
pub struct BlockHeader {
/// Height of this block since the genesis block (height 0)
pub height: u64,
@@ -139,7 +139,7 @@ impl Readable for BlockHeader {
/// non-explicit, assumed to be deducible from block height (similar to
/// bitcoin's schedule) and expressed as a global transaction fee (added v.H),
/// additive to the total of fees ever collected.
#[derive(Clone, Debug, PartialEq)]
#[derive(Clone, Debug)]
pub struct Block {
/// The header with metadata and commitments to the rest of the data
pub header: BlockHeader,
+3 -3
View File
@@ -37,7 +37,7 @@ bitflags! {
/// Pedersen commitment and the signature, that guarantees that the commitments
/// amount to zero. The signature signs the fee, which is retained for
/// signature validation.
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone)]
pub struct TxKernel {
/// Options for a kernel's structure or use
pub features: KernelFeatures,
@@ -88,7 +88,7 @@ impl TxKernel {
}
/// A transaction
#[derive(Debug, Clone, PartialEq)]
#[derive(Debug, Clone)]
pub struct Transaction {
/// Set of inputs spent by the transaction.
pub inputs: Vec<Input>,
@@ -239,7 +239,7 @@ impl Transaction {
/// A transaction input, mostly a reference to an output being spent by the
/// transaction.
#[derive(Debug, Copy, Clone, PartialEq)]
#[derive(Debug, Copy, Clone)]
pub struct Input(pub Commitment);
/// Implementation of Writeable for a transaction Input, defines how to write