Skip to content

Commit 775d20f

Browse files
Merge pull request #76 from siv2r/fix-encsecshare-deser
2 parents 6780889 + 38c4141 commit 775d20f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: python/chilldkg_ref/chilldkg.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from secp256k1proto.secp256k1 import Scalar, GE
1515
from secp256k1proto.bip340 import schnorr_sign, schnorr_verify
1616
from secp256k1proto.keys import pubkey_gen_plain
17-
from secp256k1proto.util import int_from_bytes, bytes_from_int
17+
from secp256k1proto.util import bytes_from_int
1818

1919
from .vss import VSSCommitment
2020
from . import encpedpop
@@ -392,7 +392,7 @@ def deserialize_recovery_data(
392392
if len(rest) < 32 * n:
393393
raise ValueError
394394
enc_secshares, rest = (
395-
[Scalar(int_from_bytes(rest[i : i + 32])) for i in range(0, 32 * n, 32)],
395+
[Scalar.from_bytes(rest[i : i + 32]) for i in range(0, 32 * n, 32)],
396396
rest[32 * n :],
397397
)
398398

0 commit comments

Comments
 (0)