Remove unused error type switch commitment (#1104)

* Remove unused switch commitment error

* Rustfmt

* Updated doc
This commit is contained in:
Quentin Le Sceller 2018-05-30 14:45:27 -04:00 committed by Antioch Peverell
parent 82ed280625
commit b6c31ebc78
2 changed files with 1 additions and 4 deletions

View file

@ -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

View file

@ -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.