Clean up imports and some doc comments

This commit is contained in:
Deirdre Connolly 2020-04-29 21:30:16 -04:00 committed by Deirdre Connolly
parent 7bc77042ef
commit 6ed6ccd62e
5 changed files with 2 additions and 19 deletions

View File

@ -2,8 +2,6 @@
use std::{fmt, io}; use std::{fmt, io};
use bs58;
#[cfg(test)] #[cfg(test)]
use proptest::{arbitrary::Arbitrary, array, prelude::*}; use proptest::{arbitrary::Arbitrary, array, prelude::*};
@ -22,15 +20,7 @@ mod magics {
/// Sprout Shielded Payment Addresses /// Sprout Shielded Payment Addresses
/// ///
/// In Bitcoin a single byte is used for the version field identifying /// https://zips.z.cash/protocol/protocol.pdf#sproutpaymentaddrencoding
/// the address type. In Zcash two bytes are used. For addresses on
/// the production network, this and the encoded length cause the first
/// two characters of the Base58Check encoding to be fixed as “t3” for
/// P2SH addresses, and as “t1” for P2PKH addresses. (This does not
/// imply that a transparent Zcash address can be parsed identically
/// to a Bitcoin address just by removing the “t”.)
///
/// https://zips.z.cash/protocol/protocol.pdf#transparentaddrencoding
#[derive(Copy, Clone)] #[derive(Copy, Clone)]
pub struct SproutShieldedAddress { pub struct SproutShieldedAddress {
network: Network, network: Network,

View File

@ -2,7 +2,6 @@
use std::{fmt, io}; use std::{fmt, io};
use bs58;
use ripemd160::{Digest, Ripemd160}; use ripemd160::{Digest, Ripemd160};
use secp256k1::PublicKey; use secp256k1::PublicKey;
use sha2::Sha256; use sha2::Sha256;

View File

@ -21,9 +21,6 @@ use std::{
}; };
use bech32::{self, FromBase32, ToBase32}; use bech32::{self, FromBase32, ToBase32};
use blake2b_simd;
use blake2s_simd;
use jubjub;
use rand_core::{CryptoRng, RngCore}; use rand_core::{CryptoRng, RngCore};
use redjubjub::{self, SpendAuth}; use redjubjub::{self, SpendAuth};
@ -175,7 +172,7 @@ mod sk_hrp {
/// §4.2.2][ps]. /// §4.2.2][ps].
/// ///
/// Our root secret key of the Sapling key derivation tree. All other /// Our root secret key of the Sapling key derivation tree. All other
/// Sprout key types derive from the SpendingKey value. /// Sapling key types derive from the SpendingKey value.
/// ///
/// [ps]: https://zips.z.cash/protocol/protocol.pdf#saplingkeycomponents /// [ps]: https://zips.z.cash/protocol/protocol.pdf#saplingkeycomponents
#[derive(Copy, Clone, Debug, Eq, PartialEq)] #[derive(Copy, Clone, Debug, Eq, PartialEq)]

View File

@ -10,7 +10,6 @@ use std::{fmt, io};
use byteorder::{ByteOrder, LittleEndian}; use byteorder::{ByteOrder, LittleEndian};
use rand_core::{CryptoRng, RngCore}; use rand_core::{CryptoRng, RngCore};
use sha2;
#[cfg(test)] #[cfg(test)]
use proptest::{array, prelude::*}; use proptest::{array, prelude::*};

View File

@ -12,8 +12,6 @@
use std::{fmt, io}; use std::{fmt, io};
use hex;
#[cfg(test)] #[cfg(test)]
use proptest_derive::Arbitrary; use proptest_derive::Arbitrary;