-
Notifications
You must be signed in to change notification settings - Fork 503
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove sjcl-extended. Use hash.js & lite sjcl build
- Loading branch information
1 parent
6a2a246
commit e7f14e5
Showing
14 changed files
with
53 additions
and
57 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ const BigNumber = require('bignumber.js'); | |
const core = require('../../core'); | ||
const errors = require('./errors'); | ||
const es6promisify = require('es6-promisify'); | ||
const keypairs = require('ripple-keypairs'); | ||
|
||
type Amount = {currency: string, issuer: string, value: string} | ||
|
||
|
@@ -27,6 +28,11 @@ function toRippledAmount(amount: Amount): string|Amount { | |
}; | ||
} | ||
|
||
function generateWallet(options) { | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
clark800
Contributor
|
||
const {accountID, seed} = keypairs.generateWallet(options); | ||
return {secret: seed, address: accountID}; | ||
} | ||
|
||
type AsyncFunction = (...x: any) => void | ||
|
||
function wrapCatch(asyncFunction: AsyncFunction): AsyncFunction { | ||
|
@@ -95,6 +101,7 @@ module.exports = { | |
dropsToXrp, | ||
xrpToDrops, | ||
toRippledAmount, | ||
generateWallet, | ||
composeAsync, | ||
wrapCatch, | ||
convertExceptions, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{ | ||
"address": "ra2d1wnhDFyZGFz62wT3GSRhAEjpLuqfnj", | ||
"secret": "ss4JedFMSQJa4mHQz3VZ58ZG4TYWg" | ||
"address": "rGCkuB7PBr5tNy68tPEABEtcdno4hE6Y7f", | ||
"secret": "sp6JS7f14BuwFY8Mw6bTtLKWauoUs" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@clark800
The second last commit also removes the ripple-wallet-generator module and uses generateWallet from ripple-keypairs for the api.generateWallet.
The flow type check seems to be crying about these changes: