Make Diversifier a newtype around [u8; 11]

This commit is contained in:
Jack Grigg 2021-02-03 14:16:58 +00:00
parent a564ba76ce
commit aeddfb64e5
1 changed files with 1 additions and 4 deletions

View File

@ -81,11 +81,8 @@ impl FullViewingKey {
/// A diversifier that can be used to derive a specific [`Address`] from a
/// [`FullViewingKey`] or [`IncomingViewingKey`].
//
// This is a newtype around a `u128` for simplicity, and enforces the diversifier size
// during all operations.
#[derive(Debug)]
pub struct Diversifier(u128);
pub struct Diversifier([u8; 11]);
/// A key that provides the capability to detect and decrypt incoming notes from the block
/// chain, without being able to spend the notes or detect when they are spent.