Merge pull request #222 from adityapk00/zecwallet_compat

Expose the `hash` and `n` fields of Transparent Outputs
This commit is contained in:
str4d 2020-05-23 14:13:31 +12:00 committed by GitHub
commit 5ff8562744
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 0 deletions

View File

@ -43,6 +43,14 @@ impl OutPoint {
writer.write_all(&self.hash)?;
writer.write_u32::<LittleEndian>(self.n)
}
pub fn n(&self) -> u32 {
self.n
}
pub fn hash(&self) -> &[u8; 32] {
&self.hash
}
}
#[derive(Debug)]