-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Spec. Leader Coin Evolution #65
Conversation
|
||
h = blake2b(digest_size=32) | ||
h.update(b"coin-evolve") | ||
h.update(sk_bytes) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
curious why we include the secret key here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
||
@property | ||
def pk(self): | ||
return self.sk |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is this intentional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, it's just a mock, not really important right now. Do you want something like hash(sk)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to
cryptarchia/messages.abnf
Outdated
@@ -9,7 +9,7 @@ CONTENT-SIZE = U32 | |||
BLOCK-DATE = BLOCK-SLOT | |||
BLOCK-SLOT = U64 | |||
PARENT-ID = HEADER-ID | |||
MOCK-LEADER-PROOF = COMMITMENT NULLIFIER | |||
MOCK-LEADER-PROOF = COMMITMENT NULLIFIER COMMITMENT |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: add a comment explaining which commitment is for what
Coin.evolve()
which evolves the coins nonceevolved_commitment
which are added to the set of eligible commitments.commitments_spend
for commitments that are eligible for spendingcommitments_lead
for commitments that are eligible for leadingcommitments_to_lead
ledger_state