diff options
author | RaindropsSys <raindrops@equestria.dev> | 2023-11-18 11:34:36 +0100 |
---|---|---|
committer | RaindropsSys <raindrops@equestria.dev> | 2023-11-18 11:34:36 +0100 |
commit | 9337aae8b1c87fad34884dacd5cd79d9591c60db (patch) | |
tree | 5340f9fa67cd6236e4c879f0057d51d0b1e21361 /includes/external/signal/node_modules/bs58 | |
parent | 953ddd82e48dd206cef5ac94456549aed13b3ad5 (diff) | |
download | pluralconnect-9337aae8b1c87fad34884dacd5cd79d9591c60db.tar.gz pluralconnect-9337aae8b1c87fad34884dacd5cd79d9591c60db.tar.bz2 pluralconnect-9337aae8b1c87fad34884dacd5cd79d9591c60db.zip |
Updated 39 files, added 86 files, deleted 40 files and renamed 2 files (automated)
Diffstat (limited to 'includes/external/signal/node_modules/bs58')
6 files changed, 225 insertions, 0 deletions
diff --git a/includes/external/signal/node_modules/bs58/CHANGELOG.md b/includes/external/signal/node_modules/bs58/CHANGELOG.md new file mode 100644 index 0000000..369f77f --- /dev/null +++ b/includes/external/signal/node_modules/bs58/CHANGELOG.md @@ -0,0 +1,65 @@ +5.0.0 / 2022-02-17 +------------------ +- `decode` and `decodeUnsafe` now return a Uint8Array. + +4.0.0 / 2016-12-3 +------------------ +- `decode` now returns a `Buffer` again, to avoid potential cryptographic errors. [Daniel Cousens / #21](https://github.com/cryptocoinjs/bs58/pull/21) + +3.0.0 / 2015-08-18 +------------------ +- refactored module into generic [`base-x`](https://github.com/cryptocoinjs/base-x). + +2.0.1 / 2014-12-23 +------------------ +- performance boost in `encode()` [#10](https://github.com/cryptocoinjs/bs58/pull/10) + +2.0.0 / 2014-10-03 +------------------ +- `decode` now returns an `Array` instead of `Buffer` to keep things simple. [Daniel Cousens / #9](https://github.com/cryptocoinjs/bs58/pull/9) + +1.2.1 / 2014-07-24 +------------------ +* speed optimizations [Daniel Cousens / #8](https://github.com/cryptocoinjs/bs58/pull/8) + +1.2.0 / 2014-06-29 +------------------ +* removed `bigi` dep, implemented direct byte conversion [Jared Deckard / #6](https://github.com/cryptocoinjs/bs58/pull/6) + +1.1.0 / 2014-06-26 +------------------ +* user `Buffer` internally for calculations, providing cleaner code and a performance increase. [Daniel Cousens](https://github.com/cryptocoinjs/bs58/commit/129c71de8bc1e36f113bce06da0616066f41c5ca) + +1.0.0 / 2014-05-27 +------------------ +* removed `binstring` dep, `Buffer` now only input to `encode()` and output of `decode()` +* update `bigi` from `~0.3.0` to `^1.1.0` +* added travis-ci support +* added coveralls support +* modified tests and library to handle fixture style testing (thanks to bitcoinjs-lib devs and [Daniel Cousens](https://github.com/dcousens)) + + +0.3.0 / 2014-02-24 +------------------ +* duck type input to `encode` and change output of `decode` to `Buffer`. + + +0.2.1 / 2014-02-24 +------------------ +* removed bower and component support. Closes #1 +* convert from 4 spaces to 2 + + +0.2.0 / 2013-12-07 +------------------ +* renamed from `cryptocoin-base58` to `bs58` + + +0.1.0 / 2013-11-20 +------------------ +* removed AMD support + + +0.0.1 / 2013-11-04 +------------------ +* initial release diff --git a/includes/external/signal/node_modules/bs58/LICENSE b/includes/external/signal/node_modules/bs58/LICENSE new file mode 100644 index 0000000..4d5f7a1 --- /dev/null +++ b/includes/external/signal/node_modules/bs58/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2018 cryptocoinjs + +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. diff --git a/includes/external/signal/node_modules/bs58/README.md b/includes/external/signal/node_modules/bs58/README.md new file mode 100644 index 0000000..ca0aa19 --- /dev/null +++ b/includes/external/signal/node_modules/bs58/README.md @@ -0,0 +1,91 @@ +bs58 +==== + +[![build status](https://travis-ci.org/cryptocoinjs/bs58.svg)](https://travis-ci.org/cryptocoinjs/bs58) + +JavaScript component to compute base 58 encoding. This encoding is typically used for crypto currencies such as Bitcoin. + +**Note:** If you're looking for **base 58 check** encoding, see: [https://github.com/bitcoinjs/bs58check](https://github.com/bitcoinjs/bs58check), which depends upon this library. + + +Install +------- + + npm i --save bs58 + + +API +--- + +### encode(input) + +`input` must be a `Uint8Array`, `Buffer`, or an `Array`. It returns a `string`. + +**example**: + +```js +const bs58 = require('bs58') + +const bytes = Uint8Array.from([ + 0, 60, 23, 110, 101, 155, 234, + 15, 41, 163, 233, 191, 120, 128, + 193, 18, 177, 179, 27, 77, 200, + 38, 38, 129, 135 +]) +const address = bs58.encode(bytes) +console.log(address) +// => 16UjcYNBG9GTK4uq2f7yYEbuifqCzoLMGS +``` + + +### decode(input) + +`input` must be a base 58 encoded string. Returns a Uint8Array. + +**example**: + +```js +const bs58 = require('bs58') + +const address = '16UjcYNBG9GTK4uq2f7yYEbuifqCzoLMGS' +const bytes = bs58.decode(address) +// See uint8array-tools package for helpful hex encoding/decoding/compare tools +console.log(Buffer.from(bytes).toString('hex')) +// => 003c176e659bea0f29a3e9bf7880c112b1b31b4dc826268187 +``` + +Browser +----------- +You can use this module in the browser. Install Browserify: + +```bash +npm install -g browserify +``` + +then run: + +```bash +browserify node_modules/bs58/index.js -o bs58.bundle.js --standalone bs58 +``` + +Hack / Test +----------- + +Uses JavaScript standard style. Read more: + +[![js-standard-style](https://cdn.rawgit.com/feross/standard/master/badge.svg)](https://github.com/feross/standard) + + +Credits +------- +- [Mike Hearn](https://github.com/mikehearn) for original Java implementation +- [Stefan Thomas](https://github.com/justmoon) for porting to JavaScript +- [Stephan Pair](https://github.com/gasteve) for buffer improvements +- [Daniel Cousens](https://github.com/dcousens) for cleanup and merging improvements from bitcoinjs-lib +- [Jared Deckard](https://github.com/deckar01) for killing `bigi` as a dependency + + +License +------- + +MIT diff --git a/includes/external/signal/node_modules/bs58/index.d.ts b/includes/external/signal/node_modules/bs58/index.d.ts new file mode 100644 index 0000000..72d0ab8 --- /dev/null +++ b/includes/external/signal/node_modules/bs58/index.d.ts @@ -0,0 +1,5 @@ +import { BaseConverter } from 'base-x'; + +declare const base58: BaseConverter; + +export = base58; diff --git a/includes/external/signal/node_modules/bs58/index.js b/includes/external/signal/node_modules/bs58/index.js new file mode 100644 index 0000000..3d02b0c --- /dev/null +++ b/includes/external/signal/node_modules/bs58/index.js @@ -0,0 +1,4 @@ +const basex = require('base-x') +const ALPHABET = '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' + +module.exports = basex(ALPHABET) diff --git a/includes/external/signal/node_modules/bs58/package.json b/includes/external/signal/node_modules/bs58/package.json new file mode 100644 index 0000000..6e53086 --- /dev/null +++ b/includes/external/signal/node_modules/bs58/package.json @@ -0,0 +1,39 @@ +{ + "name": "bs58", + "version": "5.0.0", + "description": "Base 58 encoding / decoding", + "keywords": [ + "base58", + "bitcoin", + "crypto", + "crytography", + "decode", + "decoding", + "encode", + "encoding", + "litecoin" + ], + "license": "MIT", + "devDependencies": { + "standard": "^16.0.4", + "tape": "^4.6.3" + }, + "repository": { + "url": "https://github.com/cryptocoinjs/bs58", + "type": "git" + }, + "files": [ + "index.js", + "index.d.ts" + ], + "main": "index.js", + "types": "index.d.ts", + "scripts": { + "standard": "standard", + "test": "npm run standard && npm run unit", + "unit": "tape test/index.js" + }, + "dependencies": { + "base-x": "^4.0.0" + } +} |