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

Add ECKeypair doc for :model module #155

Merged
merged 4 commits into from
Oct 13, 2023
Merged

Conversation

bigman212
Copy link
Contributor

@bigman212 bigman212 commented Oct 8, 2023

I've decided to help and write some documentation on how to use this lib.
I haven't done much here - I want to ensure this is what you want.

https://dillinger.io/ - to preview readme

destinationDirectory: File,
config: ScryptConfig) = createWallet(password, config).let { wallet ->
fun ECKeyPair.generateWalletFile(
password: String,
Copy link
Contributor Author

Choose a reason for hiding this comment

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

sorry, but these indents were something else :)

val walletFile = load(SCRYPT_TEST_JSON)
val (privateKey) = walletFile.toTypedWallet().decrypt(PASSWORD)
assertThat(privateKey.key.toHexStringNoPrefix()).isEqualTo(PRIVATE_KEY_STRING)
val walletFile = loadWalletFile(SCRYPT_TEST_JSON)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

all unit tests are green, just a small variable extraction to make it more readable

Copy link
Member

@ligi ligi left a comment

Choose a reason for hiding this comment

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

Thanks! Just minor nits

model/README.md Outdated Show resolved Hide resolved
model/README.md Outdated Show resolved Hide resolved
bigman212 and others added 2 commits October 8, 2023 18:24
Co-authored-by: ligi <ligi@ligi.de>
Co-authored-by: ligi <ligi@ligi.de>
@bigman212
Copy link
Contributor Author

@ligi feel free to merge.

@bigman212 bigman212 requested a review from ligi October 8, 2023 15:25
@ligi ligi merged commit 5d2912d into komputing:master Oct 13, 2023
1 check passed
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.

2 participants