updated derive for note_type

This commit is contained in:
Paul 2022-05-22 14:23:43 +03:00
parent 100b644a25
commit 91466fe33f
1 changed files with 2 additions and 2 deletions

View File

@ -37,8 +37,8 @@ impl NoteType {
pub(super) fn derive(ak: &SpendValidatingKey, assetDesc: &[u8; 64]) -> Self {
let mut s = vec![];
s.extend_from_slice(&ak.to_bytes());
s.extend_from_slice(assetDesc);
s.extend(&ak.to_bytes());
s.extend(assetDesc);
NoteType(assetID_hasher(s))
}