-
Notifications
You must be signed in to change notification settings - Fork 73
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
Conversation
destinationDirectory: File, | ||
config: ScryptConfig) = createWallet(password, config).let { wallet -> | ||
fun ECKeyPair.generateWalletFile( | ||
password: String, |
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.
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) |
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.
all unit tests are green, just a small variable extraction to make it more readable
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.
Thanks! Just minor nits
Co-authored-by: ligi <ligi@ligi.de>
Co-authored-by: ligi <ligi@ligi.de>
@ligi feel free to merge. |
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