w3f / bls

Aggregatable BLS sigantures
65 stars 15 forks source link

Make ValidatorSet generic over public key type #55

Closed drskalman closed 1 year ago

drskalman commented 2 years ago

ValidatorSet is a set of authority ids, of type of primitive::beefy::crypto:Public which is currently hard wired to ECDSA public key. We need to change primitives::beefy::crypto:Public to primitives::beefy::crypto:ECDSAPublic and then make primitives::beefy::crypto:Public generic to be either ECDSA or ECDSA,BLS pair. that way the whole code of beefy validator can be generic over type of the public key.

drskalman commented 1 year ago

substrate primitives compiles and passes test again at 4c905a8e7c

drskalman commented 1 year ago

DONE in https://github.com/drskalman/substrate/commit/a147238c3a5ac63519aba337a146093ce7641c59

drskalman commented 1 year ago

DONE in https://github.com/drskalman/substrate/commit/a147238c3a5ac63519aba337a146093ce7641c59