Remove spurious rng argument to encode_unified.

This commit is contained in:
Kris Nuttycombe 2022-10-07 18:19:17 -06:00
parent 97f9fbb44c
commit e454065250
4 changed files with 4 additions and 4 deletions

View File

@ -91,7 +91,7 @@ def main():
else: else:
unknown_bytes = None unknown_bytes = None
ua = encode_unified(rng, receivers, "u") ua = encode_unified(receivers, "u")
expected_lengths = { expected_lengths = {
ORCHARD_ITEM: 43, ORCHARD_ITEM: 43,

View File

@ -18,7 +18,7 @@ def padding(hrp):
assert(len(hrp) <= 16) assert(len(hrp) <= 16)
return bytes(hrp, "utf8") + bytes(16 - len(hrp)) return bytes(hrp, "utf8") + bytes(16 - len(hrp))
def encode_unified(rng, items, hrp): def encode_unified(items, hrp):
encoded_items = [] encoded_items = []
has_p2pkh = False has_p2pkh = False

View File

@ -90,7 +90,7 @@ def main():
(P2PKH_ITEM, t_key_bytes), (P2PKH_ITEM, t_key_bytes),
(unknown_tc, unknown_bytes), (unknown_tc, unknown_bytes),
] ]
ufvk = encode_unified(rng, receivers, "uview") ufvk = encode_unified(receivers, "uview")
expected_lengths = { expected_lengths = {
P2PKH_ITEM: 65, P2PKH_ITEM: 65,

View File

@ -86,7 +86,7 @@ def main():
(P2PKH_ITEM, t_key_bytes), (P2PKH_ITEM, t_key_bytes),
(unknown_tc, unknown_bytes), (unknown_tc, unknown_bytes),
] ]
uivk = encode_unified(rng, receivers, "uivk") uivk = encode_unified(receivers, "uivk")
expected_lengths = { expected_lengths = {
P2PKH_ITEM: 65, P2PKH_ITEM: 65,