Check ivk in test vectors

This commit is contained in:
Jack Grigg 2018-08-03 13:22:35 +01:00
parent 80130f5656
commit a4e86be665
No known key found for this signature in database
GPG Key ID: 1B8D649257DB0829
1 changed files with 8 additions and 0 deletions

View File

@ -1193,6 +1193,14 @@ mod tests {
assert_eq!(xfvk.dk.0, tv.dk);
assert_eq!(xfvk.chain_code.0, tv.c);
xfvk.fvk
.vk
.ivk()
.into_repr()
.write_le(&mut buf[..])
.unwrap();
assert_eq!(buf, tv.ivk);
let mut ser = vec![];
xfvk.write(&mut ser).unwrap();
assert_eq!(&ser[..], &tv.xfvk[..]);