mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
Remove unused error type switch commitment (#1104)
* Remove unused switch commitment error * Rustfmt * Updated doc
This commit is contained in:
parent
82ed280625
commit
b6c31ebc78
2 changed files with 1 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue