Correct the encoding of depth.

Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
Daira Hopwood 2018-07-31 19:22:25 +01:00
parent 45a21dc05c
commit d7228cc68f
1 changed files with 2 additions and 2 deletions

View File

@ -83,7 +83,7 @@ class ExtendedSpendingKey(DerivedAkNk, DerivedIvk, ExtendedBase):
return True
def __bytes__(self):
return (i2leosp(32, self.depth()) +
return (i2leosp(8, self.depth()) +
self.parent_tag() +
i2leosp(32, self.i()) +
self.c() +
@ -137,7 +137,7 @@ class ExtendedFullViewingKey(DerivedIvk, ExtendedBase):
return False
def __bytes__(self):
return (i2leosp(32, self.depth()) +
return (i2leosp(8, self.depth()) +
self.parent_tag() +
i2leosp(32, self.i()) +
self.c() +