Skip to content
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

Improve Metagraph interface in terms of drand commitments #2783

Closed
basfroman opened this issue Apr 1, 2025 · 2 comments
Closed

Improve Metagraph interface in terms of drand commitments #2783

basfroman opened this issue Apr 1, 2025 · 2 comments
Assignees
Labels
feature new feature added

Comments

@basfroman
Copy link
Contributor

basfroman commented Apr 1, 2025

Requested by Jake

meta = bt.metagraph()

meta.commitments
[
 ( block, value) ,
 ( block, value) 
] 

meta.commitments
[
 ( block, decrypted_value) ,
 ( block, value) 
]

sub.get_commitment(netuid, uid, block )
(block, data, False) 

sub.get_commitment(netuid, uid, block)
(block, decrypted_data, True) 

sub.get_all_commitments(netuid, block )
[
 ( block, decrypted_value) ,
 ( block, value) 
]
@basfroman basfroman added the feature new feature added label Apr 1, 2025
@basfroman basfroman self-assigned this Apr 1, 2025
@basfroman
Copy link
Contributor Author

basfroman commented Apr 4, 2025

Fix bug #2787

@basfroman
Copy link
Contributor Author

It was decided not to combine the classic and drand based methods of commitments, so as not to complicate the logic and not to confuse users.
Keeping the methods separate is a more transparent and explicit approach.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature new feature added
Projects
None yet
Development

No branches or pull requests

1 participant