Skip to content
This repository was archived by the owner on Sep 8, 2022. It is now read-only.
This repository was archived by the owner on Sep 8, 2022. It is now read-only.

PublicShares in DKG result #65

Description

@mvrshvl

Hello, dear developers. I hope you are well-doing. I'm using Kryptology functions in my research and it works well. I'm really enjoy your product.

I ran into a problem while using DKG results. The PublicShares returned after round 4 does not match the PublicShare generated from the ShamirShare.

PublicShares []*curves.EcPoint

	field := curves.NewField(curve.Params().N)
	share1 := v1.NewShamirShare(1, dkgR4Out[1].SigningKeyShare.Bytes(), field)

	publicShare1, err := curves.NewScalarBaseMult(curve, share1.Value.BigInt())
	require.NoError(t, err)

	ok := reflect.DeepEqual(publicShare1, dkgR4Out[1].PublicShares[0]) // ok = false

I assume they should be equal, otherwise round3(GG20) will return an error "e != eHat".

How should I use the PublicShares returned from the DKG to create a Signer object?

To reproduce, run a test that passes the result of DKG to gg20.

https://github.com/youricorocks/kryptology/blob/5f8afd0811a0e40dac543e9959a2998b20a9861c/pkg/tecdsa/gg20/participant/dkg_rounds_test.go#L900

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions