Skip to content
This repository was archived by the owner on Mar 12, 2020. It is now read-only.

ciri: Support Milestones of higher security level and different hashing function #975

Closed
2 tasks done
alon-e opened this issue Mar 17, 2019 · 1 comment
Closed
2 tasks done
Labels
A-ciri Area - cIRI C-enhancement Category - Enhancement E-high Experience - High P-high Priority - High

Comments

@alon-e
Copy link

alon-e commented Mar 17, 2019

In cIRI you track milestones of security level 1 w/ Curl-P-27.
IRI supports also different hashing functions and higher security level:

This is needed for transitioning to the new Milestone structure supported by Compass.

Curl curl;
*valid = false;
flex_trits_to_trits(signature_trits, NUM_TRITS_SIGNATURE,
transaction_signature(tx1), NUM_TRITS_SIGNATURE,
NUM_TRITS_SIGNATURE);
flex_trits_to_trits(siblings_trits, NUM_TRITS_SIGNATURE,
transaction_signature(tx2), NUM_TRITS_SIGNATURE,
NUM_TRITS_SIGNATURE);
curl.type = CURL_P_27;
init_curl(&curl);
normalize_flex_hash_to_trits(transaction_trunk(tx1), normalized_trunk_trits);
iss_curl_sig_digest(sig_digest, normalized_trunk_trits, signature_trits,
NUM_TRITS_SIGNATURE, &curl);
curl_reset(&curl);
iss_curl_address(sig_digest, root, HASH_LENGTH_TRIT, &curl);
merkle_root(root, siblings_trits, mt->conf->num_keys_in_milestone,
candidate->index, &curl);
flex_trits_from_trits(coo, HASH_LENGTH_TRIT, root, HASH_LENGTH_TRIT,
HASH_LENGTH_TRIT);

@thibault-martinez thibault-martinez added E-high Experience - High C-enhancement Category - Enhancement P-medium Priority - Medium A-ciri Area - cIRI labels Mar 17, 2019
@alon-e alon-e changed the title Support Milestones of higher security level and different hashing function ciri: Support Milestones of higher security level and different hashing function Mar 17, 2019
@thibault-martinez thibault-martinez added P-high Priority - High and removed P-medium Priority - Medium labels Mar 18, 2019
@thibault-martinez
Copy link
Member

Implemented by #996 and #999

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A-ciri Area - cIRI C-enhancement Category - Enhancement E-high Experience - High P-high Priority - High
Projects
None yet
Development

No branches or pull requests

2 participants