Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Conversation

@davxy
Copy link
Member

@davxy davxy commented May 13, 2023

Partially Addresses paritytech/polkadot-sdk#41

Delivers:

  • ticket structures close to the final form
  • experimental integration with bandersnatch-vrfs
  • ticket ownership claiming via ed25519 challenge

Flows into main Sassafras PR #11879

@davxy davxy requested a review from a team May 13, 2023 19:21
/// Typically, the implementers of this trait are its associated types themselves.
/// This provides a convenient way to access generic information about the scheme
/// given any of the associated types.
pub trait AppCrypto: 'static + Send + Sync + Sized + CryptoType + Clone {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Member Author

@davxy davxy May 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

AppCrypto is required to be implemented by any Pair and thus for the new bandersnatch::Pair as well.

Unfortunately bandersnatch_vrf::SecretKey embeds the SecretScalar (here) AND SecretScalar is defined to contain an UnsafeCell (here). Thus can't be Sync.

Nevertheless, Sync is not a hard requirement for our internals. So far, Send seems sufficient for all our use cases

@davxy davxy requested a review from a team May 15, 2023 16:52
@davxy davxy requested a review from acatangiu as a code owner May 15, 2023 16:52
@davxy davxy requested review from a team and andresilva as code owners May 15, 2023 16:52
@davxy davxy removed request for a team, acatangiu and andresilva May 15, 2023 16:53
@davxy
Copy link
Member Author

davxy commented May 15, 2023

(Not ready. Ignore the bogus review request...)

@davxy davxy marked this pull request as draft May 15, 2023 17:27
@paritytech paritytech deleted a comment from paritytech-cicd-pr May 16, 2023
@paritytech paritytech deleted a comment from paritytech-cicd-pr May 16, 2023
@davxy davxy marked this pull request as ready for review May 16, 2023 18:00
@davxy davxy self-assigned this May 18, 2023
@davxy davxy merged commit 5e7d6c5 into paritytech:davxy-sassafras-protocol May 18, 2023
@paritytech-cicd-pr
Copy link

The CI pipeline was cancelled due to failure one of the required jobs.
Job name: test-linux-stable
Logs: https://gitlab.parity.io/parity/mirrors/substrate/-/jobs/2857929

@davxy davxy deleted the sassafras-protocol-v32 branch June 12, 2023 13:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants