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

Consolidate TxContext and TxContextMove #201

Merged
merged 1 commit into from
Jan 18, 2022
Merged

Consolidate TxContext and TxContextMove #201

merged 1 commit into from
Jan 18, 2022

Conversation

lxfind
Copy link
Contributor

@lxfind lxfind commented Jan 18, 2022

This will close #89.
Merge them so that we can properly pass it across Move/FastX boundary.

Copy link
Collaborator

@sblackshear sblackshear left a comment

Choose a reason for hiding this comment

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

Thanks for fixing this!

// for testing
pub fn random() -> Self {
use rand::Rng;
let random_bytes = rand::thread_rng().gen::<[u8; dalek::PUBLIC_KEY_LENGTH]>();
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this a seeded RNG? Want to make sure we get the same keys on every run.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is for testing only though, does that matter?

@lxfind lxfind merged commit 3e7adc1 into MystenLabs:main Jan 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[fastx types] Unify Rust and Move TxContext
2 participants