# crypto-codec is a minimal npm package for encoding and decoding different cyrpto addresses

# all of the work is derived from the following packages.

* [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)
 `allows reuse and modifications under the MIT license present here`
    [MIT License](https://github.com/EOSIO/eosjs-ecc/blob/971f51396b36bf8560d5da4915c184033b3c7823/package.json)
* [nem-sdk](https://www.npmjs.com/package/nem-sdk)
`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)
`allows reuse and modifications under the ISC license present here`
    [ISC License](https://github.com/ripple/ripple-address-codec/blob/e2abc5820daef2cc60e592988d9ec4c1a5aa72a2/package.json)
* [rskjs-util](https://www.npmjs.com/package/rskjs-util)
`allows reuse and modifications under the MIT 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)
` allows reuse and modifications under the MIT license present here`
    [Apache License 2.0](https://github.com/stellar/js-stellar-base/blob/4ae811643e535be70d5250aa807fd107f2346eb6/LICENSE)


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

# Fork
This fork fixes an issue appearing with its use alongside vite:
```
[ERROR] [plugin vite:dep-pre-bundle] Failed to resolve entry for package "crypto-addr-codec". The package may have incorrect main/module/exports specified in its package.json: Failed to resolve entry for package "crypto-addr-codec". The package may have incorrect main/module/exports specified in its package.json
```

To use the fix with packages such as `@keplr-wallet/stores` with yarn, add it to the `resolutions` section of the `package.json`:
```
  "resolutions": {
    "crypto-addr-codec": "npm:@abstract/crypto-addr-codec-vite@0.1.5"
  }
```
