Commit Graph

4 Commits

Author SHA1 Message Date
Jack Grigg 2a08204b62 Add ZIP 32 arbitrary key derivation test vector to ZIP 32 account 2024-11-13 10:43:05 +00:00
Jack Grigg 4505cb8438 Improve the ZIP 32 arbitrary key derivation test vectors
When using them, I forgot that `bytes(range(32))` doesn't generate an
all-zeroes seed of length 32, so I was using the wrong seed with the
test vectors and they were failing. We now embed that seed in the test
vectors, along with the context string (to make it clear that there is
no trailing null byte) and the IKM (which is what clued me into the seed
being wrong).
2024-11-13 07:14:35 +00:00
Jack Grigg f80ca40016 Add test vectors for ZIP 32 arbitrary key derivation 2024-11-02 05:15:28 +00:00
Jack Grigg ff8eb510c7 Extract ZIP 32 hardened-only key derivation from Orchard 2024-11-02 05:00:38 +00:00