mirror of https://github.com/zcash/orchard.git
updated derive for note_type
This commit is contained in:
parent
100b644a25
commit
91466fe33f
|
@ -37,8 +37,8 @@ impl NoteType {
|
||||||
pub(super) fn derive(ak: &SpendValidatingKey, assetDesc: &[u8; 64]) -> Self {
|
pub(super) fn derive(ak: &SpendValidatingKey, assetDesc: &[u8; 64]) -> Self {
|
||||||
let mut s = vec![];
|
let mut s = vec![];
|
||||||
|
|
||||||
s.extend_from_slice(&ak.to_bytes());
|
s.extend(&ak.to_bytes());
|
||||||
s.extend_from_slice(assetDesc);
|
s.extend(assetDesc);
|
||||||
|
|
||||||
NoteType(assetID_hasher(s))
|
NoteType(assetID_hasher(s))
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue