From a4e86be66581a67d06d7371bb9c50c53946ee15d Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Fri, 3 Aug 2018 13:22:35 +0100 Subject: [PATCH] Check ivk in test vectors --- src/lib.rs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/lib.rs b/src/lib.rs index 4a93fdf..4e0b25e 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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[..]);