pub const HKDF_SALT: [u8; 32];
Expand description

We salt the HKDF for deriving the account keys to provide application separation.

Note: modifying this salt is a backwards-incompatible protocol change.

For readers, the HKDF salt is equal to the following hex string: "7ffda2ae982a2ebfab2a4da62f76fe33592c85e02445b875f02ded51a520ba2a" which is also equal to the hash value SHA3-256(b"DIEM_ENCRYPTED_NETWORK_ADDRESS_SALT").

use diem_types::network_address::encrypted::HKDF_SALT;
use diem_crypto::hash::HashValue;

let derived_salt = HashValue::sha3_256_of(b"DIEM_ENCRYPTED_NETWORK_ADDRESS_SALT");
assert_eq!(HKDF_SALT.as_ref(), derived_salt.as_ref());