We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6780889 + 38c4141 commit 775d20fCopy full SHA for 775d20f
python/chilldkg_ref/chilldkg.py
@@ -14,7 +14,7 @@
14
from secp256k1proto.secp256k1 import Scalar, GE
15
from secp256k1proto.bip340 import schnorr_sign, schnorr_verify
16
from secp256k1proto.keys import pubkey_gen_plain
17
-from secp256k1proto.util import int_from_bytes, bytes_from_int
+from secp256k1proto.util import bytes_from_int
18
19
from .vss import VSSCommitment
20
from . import encpedpop
@@ -392,7 +392,7 @@ def deserialize_recovery_data(
392
if len(rest) < 32 * n:
393
raise ValueError
394
enc_secshares, rest = (
395
- [Scalar(int_from_bytes(rest[i : i + 32])) for i in range(0, 32 * n, 32)],
+ [Scalar.from_bytes(rest[i : i + 32]) for i in range(0, 32 * n, 32)],
396
rest[32 * n :],
397
)
398
0 commit comments