Nicholas Dudfield
dee3a24739
fix: add type of discriminator ( #74 )
2020-01-22 00:19:20 +07:00
Hans Bergren
a6b4308a49
Replace TSLint with ESLint + Prettier ( #71 )
...
* Replace TSLint with ESLint + Prettier
TSLint is deprecated, and ESLint is now officially supported by
TypeScript.
Additionally, Prettier is the industry standard for auto-formatting
JS/TS code. That lets code reviews be about content rather than style.
The `.eslintrc.js` file contains comments for the reasoning behind every
configuration, so feel free to take a look at that as well.
* Run src/ through Prettier
* Add Mocha support for ESLint
We do not actually lint Mocha files right now because they aren't in TS,
but moving forward, this will give us better linting rules for our tests
2020-01-17 15:55:05 -05:00
Justin Kook
5229342fc4
Remove src/ripple-address-codec and use npm published ( #58 )
...
* Remove src/ripple-address-codec and use npm published
* Remove 4 failing old dist/ripple-address-codec tests
* Update yarn.lock with npm ripple-address-codec package
2020-01-14 15:24:48 -05:00
Elliot Lee
e9a3e1ab35
Refactor and use TypeScript:
...
- Migrate to TypeScript and TSLint
- Vendor ripple-address-codec (move dependency into this project)
- Add support for Travis CI (.travis.yml)
- Use "dist/*" for distribution files
- Bump version to 1.0.0-beta.0
- Add yarn.lock
2019-01-22 23:23:13 -08:00
Elliot Lee
d22ca7f263
Remove extra semicolon
2017-11-10 15:06:15 -08:00
Elliot Lee
119dfa8d9f
Verify that generated keypair correctly signs message
2017-09-20 10:15:09 -07:00
Elliot Lee
30400e6e92
Fix eslint errors
...
This was done by:
- updating some devDependencies
- running:
node_modules/.bin/eslint -c ./eslintrc --fix src/ test/
- adding where necessary:
// eslint-disable-line strict
2017-09-08 11:38:44 -07:00
Chris Clark
98c42c200b
Specify messages as hex and fix bug in ed25519 signing
2015-10-14 12:17:55 -07:00
Chris Clark
de8ea104d9
Switch to new API
2015-09-21 15:09:54 -07:00
Chris Clark
7308a84c52
Add simplified API
2015-08-24 13:34:42 -07:00
Nicholas Dudfield
aca6cb96b7
Update to eslint 1.2.1
2015-08-24 13:40:01 +07:00
Nicholas Dudfield
84bca71328
Rename randGen param to random
2015-08-14 08:47:59 +07:00
Nicholas Dudfield
f38011340a
Allow KeyPair.fromSeed/walletFromSeed to accept arrays for seed
2015-08-11 16:32:34 +07:00
Nicholas Dudfield
05240e143b
Add (wallet|validatorKeys)FromPhrase functions
2015-08-11 15:54:49 +07:00
Nicholas Dudfield
abe8d54401
Bump version: 0.7.3
2015-08-08 12:03:34 +07:00
Nicholas Dudfield
443d8a3b18
Update eslint to version 1.1
2015-08-08 09:07:25 +07:00
Nicholas Dudfield
fc12114830
Remove stale comment
2015-08-07 08:36:40 +07:00
Nicholas Dudfield
d26bca3208
Use es7 decorator syntax for cached methods
2015-08-05 19:07:18 +07:00
Nicholas Dudfield
828737f3bc
Extract Sha512 to own file
2015-08-04 13:54:26 +07:00
Nicholas Dudfield
71d62fd58c
Tweak method definition order
2015-08-04 13:49:31 +07:00
Nicholas Dudfield
1cad004359
Use cleaner syntax for cachedProperty
2015-08-04 09:04:46 +07:00
Nicholas Dudfield
bf64b6fbe0
Tweak README and accountPublicFromPublicGenerator
2015-07-31 17:49:21 +07:00
Nicholas Dudfield
09be6e372e
Add nodePublicAccountID
2015-07-31 17:39:50 +07:00
Nicholas Dudfield
a68a2e50e6
Move assert to correct place
2015-07-31 17:18:21 +07:00
Nicholas Dudfield
4b36832b5a
Update ripple-address-codec dependency
2015-07-31 16:46:55 +07:00
Nicholas Dudfield
4ff18d28d8
Misc cleanups
2015-07-31 11:36:33 +07:00
Nicholas Dudfield
c6c92b18cc
Break up index.js into logical files
2015-07-31 11:23:34 +07:00
Nicholas Dudfield
848c65e43a
Updates: * Add Pair#fromPublic(canonicalPubBytes) enabling verification only * Add generateValidatorKeys, validatorKeysFromSeed * Add seedBytes member to Pair
2015-07-22 14:20:00 +07:00
Nicholas Dudfield
205682235a
Add generateWallet, walletFromSeed
2015-07-20 11:17:48 +07:00
Nicholas Dudfield
7fbd83ceaa
Update ripple-address-codec dependency
2015-07-20 10:57:41 +07:00
Nicholas Dudfield
e6a278f0f6
Use elliptic Point#encodeCompressed api
2015-07-20 10:50:17 +07:00
Nicholas Dudfield
fd6df49f55
Updates: * Expose abstract KeyPair * Update ripple-address-codec dependency * Add keyPairFromSeed method, which can handle ed25519 seeds
2015-07-16 20:23:19 +08:00
Nicholas Dudfield
770d292543
User better name
2015-06-29 18:06:41 +07:00
Nicholas Dudfield
e2e0be689e
Update dependencies/tests
2015-06-25 15:33:14 +07:00
Nicholas Dudfield
b9c8fefc87
Fix signature tests
2015-06-19 17:04:32 +08:00