fn from(mut bytes: [u8; 32]) -> Self {
        // Drop the most significant five bits, so it can be interpreted
        // as a scalar.
        //
        // I don't want to put this inside crh_ivk, but does it belong
        // inside Scalar/Fr::from_bytes()? That seems the better
        // place...
        //
        // https://github.com/zcash/librustzcash/blob/master/zcash_primitives/src/primitives.rs#L86
        bytes[31] &= 0b0000_0111;

        Self {
            // TODO: handle setting the Network better.
            network: Network::default(),
            scalar: Scalar::from_bytes(&bytes).unwrap(),
        }
    }
/// Generate an _IncomingViewingKey_ from existing bytes.
Generate an _IncomingViewingKey_ from existing bytes.
Generate an _IncomingViewingKey_ from existing bytes .
fn from(mut bytes: [u8; 32]) -> Self {
        // Drop the most significant five bits, so it can be interpreted
        // as a scalar.
        //
        // I don't want to put this inside crh_ivk, but does it belong
        // inside Scalar/Fr::from_bytes()? That seems the better
        // place...
        //
        // https://github.com/zcash/librustzcash/blob/master/zcash_primitives/src/primitives.rs#L86
        bytes[31] &= 0b0000_0111;
        Self {
            // TODO: handle setting the Network better.
            network: Network::default(),
            scalar: Scalar::from_bytes(&bytes).unwrap(),
        }
    }
fn from ( mut bytes : [ u8 ; 32 ] ) -> Self { // Drop the most significant five bits, so it can be interpreted // as a scalar. // // I don't want to put this inside crh_ivk, but does it belong // inside Scalar/Fr::from_bytes()? That seems the better // place... // // https://github.com/zcash/librustzcash/blob/master/zcash_primitives/src/primitives.rs#L86 bytes [ 31 ] &= 0b0000_0111 ; Self { // TODO: handle setting the Network better. network : Network :: default ( ) , scalar : Scalar :: from_bytes ( & bytes ) . unwrap ( ) , } }
Generate an _IncomingViewingKey_ from existing bytes.
Generate an _IncomingViewingKey_ from existing bytes .
bytes
[u8; 32]