Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

crypto-addr-codec

Package Overview
Dependencies
Maintainers
5
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

crypto-addr-codec - npm Package Compare versions

Comparing version 0.1.4 to 0.1.5

lib/bs58/bs58.js

6

lib/eos/hash.js
"use strict";
var { SHA3 } = require('sha3');
var RIPEMD160 = require('./ripemd160');
var RIPEMD160 = require('ripemd160-min').RIPEMD160;

@@ -11,3 +11,3 @@ function sha256(data, resultEncoding) {

function ripemd160(data) {
return new RIPEMD160().update(data).digest()
return Buffer.from(new RIPEMD160().update(data).digest())
}

@@ -17,2 +17,2 @@ module.exports = {

ripemd160: ripemd160 // hash160: hash160,
};
};

@@ -0,1 +1,27 @@

/*!
eosjs-ecc - Elliptic curve cryptography functions (ECC).
MIT License
Copyright (c) EOSIO
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
"use strict";

@@ -2,0 +28,0 @@

'use strict';
const { b32decode, b32encode, hex2a, ua2hex, isValid } = require('./nem-sdk/convert');
const { bs58Decode, bs58Encode } = require('./bs58/bs58');
const { cashaddrDecode, cashaddrEncode } = require('./cashaddr/cashaddr');
const { codec } = require('./ripple/xrp-codec');

@@ -13,5 +15,9 @@ const { isValidChecksumAddress, stripHexPrefix, toChecksumAddress } = require('./rskjs/rsk');

b32encode,
isValid,
bs58Decode,
bs58Encode,
cashaddrEncode,
cashaddrDecode,
hex2a,
ua2hex,
isValid,
isValidChecksumAddress,

@@ -18,0 +24,0 @@ stripHexPrefix,

@@ -0,1 +1,27 @@

/*!
NEM-sdk - NEM Developer Kit for Node.js and the browser
MIT License
Copyright (c) 2017 QuantumMachine
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
*/
const { Keccak } = require('sha3')

@@ -2,0 +28,0 @@ var alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZ234567";

@@ -0,1 +1,20 @@

/*!
ripple-address-codec - encodes/decodes base58 encoded XRP Ledger identifiers.
Copyright (c) Ripple
Permission to use, copy, modify, and/or distribute this software for any purpose
with or without fee is hereby granted, provided that the above copyright notice
and this permission notice appear in all copies.
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD
TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS.
IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN
AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
"use strict";

@@ -40,3 +59,3 @@

const checkHash = require('sha.js');
const checkHash = require('../sha256/index');
const codecOptions = {

@@ -43,0 +62,0 @@ sha256: function (bytes) {

@@ -0,1 +1,27 @@

/*!
rskjs-util - A collection of utility functions for RSK.
Copyright (c) 2018 RSK Smart.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN T
HE SOFTWARE.
*/
const { Keccak } = require('sha3')

@@ -2,0 +28,0 @@

@@ -0,1 +1,16 @@

/*! Copyright (c) 2019 Parity Tech
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// modified https://github.com/paritytech/oo7/blob/master/packages/oo7-substrate/src/ss58.js

@@ -2,0 +17,0 @@ // to make it work with kusama addresses and compacted it a bit by only using what its needed

@@ -0,1 +1,44 @@

/*!
Copyright 2015 Stellar Development Foundation
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
----
Included code for base58 encoding is licensed under the MIT license:
Copyright (c) 2011 Google Inc
Copyright (c) 2013 BitPay Inc
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
var _isString = require('lodash/isString');

@@ -2,0 +45,0 @@ var _base = require('base32.js');

{
"name": "crypto-addr-codec",
"version": "0.1.4",
"version": "0.1.5",
"description": "Light weight package for serializing different crypto addresses",

@@ -11,9 +11,9 @@ "main": "./lib/index.js",

"type": "git",
"url": "git+https://github.com/ens-domains/crypto-addr-serialize.git"
"url": "git+https://github.com/jay-dee7/crypto-addr-serialize.git"
},
"author": "Jasdeep Singh <jasdeepsingh.uppal@gmail.com>",
"bugs": {
"url": "https://github.com/ensdomains/crypto-addr-serialize/issues"
"url": "https://github.com/jay-dee7/crypto-addr-serialize/issues"
},
"homepage": "https://github.com/ensdomains/crypto-addr-serialize#readme",
"homepage": "https://github.com/jay-dee7/crypto-addr-serialize#readme",
"license": "MIT",

@@ -30,6 +30,5 @@ "dependencies": {

"lodash": "^4.17.15",
"ripemd160": "latest",
"sha.js": "^2.4.11",
"ripemd160-min": "0.0.6",
"sha3": "^2.1.1"
}
}

@@ -5,2 +5,5 @@ # crypto-codec is a minimal npm package for encoding and decoding different cyrpto addresses

* [bcoin](https://www.npmjs.com/package/bcoin)
` allows reuse and modifications under the MIT license present here`
[MIT License](https://github.com/bcoin-org/bcoin/blob/4e7df6ef875e5936bea5139d922871498b4d9586/LICENSE)
* [eosjs-ecc](https://www.npmjs.com/package/eosjs-ecc)

@@ -12,2 +15,5 @@ `allows reuse and modifications under the MIT license present here`

[MIT License](https://github.com/QuantumMechanics/NEM-sdk/blob/acf5dc1aaf0166820914d7cd7f1ffb2269f27e88/LICENSE)
* [oo7](https://www.npmjs.com/package/oo7)
` allows reuse and modifications under the MIT license present here`
[Apache License 2.0](https://github.com/paritytech/oo7/blob/ed16ceb11a9b98783902684482502245aa1a872d/packages/oo7-substrate/LICENSE)
* [ripple-address-codec](https://www.npmjs.com/package/ripple-utils)

@@ -19,2 +25,5 @@ `allows reuse and modifications under the ISC license present here`

[MIT License](https://github.com/rsksmart/rskjs-util/blob/d494ff1c586db6e5d395a18c12ac274e9c616a13/LICENSE)
* [sha.js](https://www.npmjs.com/package/sha.js)
` allows reuse and modifications under the MIT license present here`
[MIT License](https://github.com/crypto-browserify/sha.js/blob/3851b4667b548a1c5e82dd8d8406bc871d417088/LICENSE)
* [stellar-base](https://www.npmjs.com/package/stellar-base)

@@ -24,4 +33,5 @@ ` allows reuse and modifications under the MIT license present here`

```
this package does not implement any features. All the work credit goes to above mentioned teams
```
```
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc