From b6c31ebc789be8eec01396dd2a21adada0126cb9 Mon Sep 17 00:00:00 2001 From: Quentin Le Sceller Date: Wed, 30 May 2018 14:45:27 -0400 Subject: [PATCH] Remove unused error type switch commitment (#1104) * Remove unused switch commitment error * Rustfmt * Updated doc --- chain/src/types.rs | 4 +--- doc/coinbase_maturity.md | 1 - 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/chain/src/types.rs b/chain/src/types.rs index 3673c13d..0975200b 100644 --- a/chain/src/types.rs +++ b/chain/src/types.rs @@ -17,8 +17,8 @@ use std::{error, fmt, io}; use util::secp; -use util::secp_static; use util::secp::pedersen::Commitment; +use util::secp_static; use core::core::hash::{Hash, Hashed}; use core::core::target::Difficulty; @@ -75,8 +75,6 @@ pub enum Error { InvalidBlockHeight, /// One of the root hashes in the block is invalid InvalidRoot, - /// Something does not look right with the switch commitment - InvalidSwitchCommit, /// Error from underlying keychain impl Keychain(keychain::Error), /// Error from underlying secp lib diff --git a/doc/coinbase_maturity.md b/doc/coinbase_maturity.md index 15532082..f2ce7034 100644 --- a/doc/coinbase_maturity.md +++ b/doc/coinbase_maturity.md @@ -12,7 +12,6 @@ The maturity rule _only_ applies to coinbase outputs, regular transaction output An output consists of - * features (currently coinbase vs. non-coinbase) * commitment `rG+vH` - * switch commitment hash `blake2(rJ)` * rangeproof To spend a regular transaction output two conditions must be met. We need to show the output has not been previously spent and we need to prove ownership of the output.