mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-19 19:55:51 +00:00
s/sublimator/ripple/
This commit is contained in:
@@ -4,7 +4,3 @@ node_js:
|
||||
script:
|
||||
- npm test --coverage
|
||||
- npm run-script lint
|
||||
- npm run-script coveralls
|
||||
env:
|
||||
global:
|
||||
secure: gww4aDA3daCFWxZV6TtGlRpjMpxMBm25vgzFs6eH6S+o+ScJONQNorj7zFJ11XBKJPDOrTwiM1LOu4mW5O9o0MuLHUpUaDDoD6hz0X3//RpGN3dthFnNhpglbCPO9OKNlLCTMaeLkR0BFAPEiJC3fGo8hOfyCBqrlfoAAQKVmlemawyw9yaC5oCTycXW/OoFr12QjqlJsjTHjVvN++wj65Qg4hOQV1XTG4TTvbIYcnA65W/+QMk+GsG5ScPPu0YiriMrqmdTaDRk0VyGEhqGUmRfCuYM4TuUBY+ijK6dOVKXE86A3X9B7/MX0JWQA93/Wn2xONKW4szg8uP1F5tLZf9ZM4MBWmEFdwh7YLP7nC2mzGfbWV4FSxHt46eiZ84EiHissD5FX3o0zUXG9b4g3MJk9mYxfZTpbBvG2oK+XzIHzrdYVSwUrV7rPmPhdwoRZ9bKuBB9Nf1M1WQTSbAM1HtAG1b+z38x3OxresD1Pt0Xfd1PrRHleefi4P4Ihm10ajVXx8motIVnB4quVApRRskPZlyd6sZ6Fy7hm4tZGk+YbXpByNQQtqQFWUb8CvT44RV6FNmVD4mwhi0qMDAn0YfFH0wfVGysNc61dsyeWkkAC66juPkUty4G4/Ogxmob3kzq85COzyIYC2j2ypII2TKf9eyBaQQUG6zPTjhsdAY=
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# ripple-address-codec
|
||||
|
||||
[](https://npmjs.org/package/ripple-address-codec) [](https://travis-ci.org/sublimator/ripple-address-codec) [](https://coveralls.io/github/sublimator/ripple-address-codec?branch=master)
|
||||
[](https://npmjs.org/package/ripple-address-codec) [](https://travis-ci.org/ripple/ripple-address-codec) [](https://coveralls.io/github/ripple/ripple-address-codec?branch=master)
|
||||
|
||||
## API
|
||||
|
||||
@@ -65,15 +65,25 @@ We give you the kitchen sink.
|
||||
encode: [Function: encode],
|
||||
decodeEdSeed: [Function],
|
||||
encodeEdSeed: [Function],
|
||||
isValidEdSeed: [Function],
|
||||
decodeSeed: [Function],
|
||||
encodeSeed: [Function],
|
||||
isValidSeed: [Function],
|
||||
decodeAccountID: [Function],
|
||||
encodeAccountID: [Function],
|
||||
isValidAccountID: [Function],
|
||||
decodeAddress: [Function],
|
||||
encodeAddress: [Function],
|
||||
isValidAddress: [Function],
|
||||
decodeNodePublic: [Function],
|
||||
encodeNodePublic: [Function],
|
||||
isValidNodePublic: [Function],
|
||||
decodeNodePrivate: [Function],
|
||||
encodeNodePrivate: [Function],
|
||||
isValidNodePrivate: [Function],
|
||||
decodeK256Seed: [Function],
|
||||
encodeK256Seed: [Function] }
|
||||
encodeK256Seed: [Function],
|
||||
isValidK256Seed: [Function] }
|
||||
```
|
||||
|
||||
# Decode a bip32 bitcoin public key
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "ripple-address-codec",
|
||||
"version": "2.0.0",
|
||||
"version": "2.0.1",
|
||||
"description": "encodes/decodes base58 encoded ripple identifiers",
|
||||
"main": "src/index.js",
|
||||
"license": "ISC",
|
||||
@@ -8,17 +8,21 @@
|
||||
"hash.js": "^1.0.3",
|
||||
"x-address-codec": "^0.7.0"
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/ripple/ripple-address-codec.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "istanbul test _mocha",
|
||||
"prepublish": "npm test && npm run lint",
|
||||
"coveralls": "cat ./coverage/lcov.info | coveralls",
|
||||
"lint": "if ! [ -f eslintrc ]; then curl -o eslintrc 'https://raw.githubusercontent.com/ripple/javascript-style-guide/master/eslintrc'; fi; eslint --reset -c eslintrc src/*.js test/*.js"
|
||||
"lint": "if ! [ -f eslintrc ]; then curl -o eslintrc 'https://raw.githubusercontent.com/ripple/javascript-style-guide/master/eslintrc'; fi; eslint -c eslintrc src/*.js test/*.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"coveralls": "~2.10.0",
|
||||
"eslint": "^0.24.1",
|
||||
"istanbul": "~0.3.5",
|
||||
"mocha": "^2.2.5"
|
||||
"coveralls": "~2.11.4",
|
||||
"eslint": "^1.4.3",
|
||||
"istanbul": "~0.3.20",
|
||||
"mocha": "^2.3.2"
|
||||
},
|
||||
"readmeFilename": "README.md",
|
||||
"engines": {
|
||||
|
||||
@@ -12,9 +12,7 @@ function toBytes(hex) {
|
||||
}
|
||||
|
||||
describe('ripple-address-codec', function() {
|
||||
function makeTest(type, base58, hex, opts) {
|
||||
opts = opts || {};
|
||||
|
||||
function makeTest(type, base58, hex) {
|
||||
it('can translate between ' + hex + ' and ' + base58, function() {
|
||||
var actual = api['encode' + type](toBytes(hex));
|
||||
assert.equal(actual, base58);
|
||||
|
||||
Reference in New Issue
Block a user