def test_kfrag_roundtrip(d, b0, p0, p1, sig_proxy, sig_bob): k = KFrag(identifier=d, bn_key=b0, point_commitment=p0, point_precursor=p1, signature_for_proxy=sig_proxy, signature_for_bob=sig_bob) assert_kfrag_eq(k, KFrag.from_bytes(k.to_bytes()))
def test_kfrag_roundtrip(d, b0, p0, p1, p2, sig): k = KFrag(d, b0, p0, p1, p2, sig) assert_kfrag_eq(k, KFrag.from_bytes(k.to_bytes()))