waves_lib 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/.rubocop.yml +22 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +84 -0
- data/LICENSE.txt +19 -0
- data/README.md +39 -0
- data/Rakefile +12 -0
- data/js/node_modules/@protobufjs/aspromise/LICENSE +26 -0
- data/js/node_modules/@protobufjs/aspromise/README.md +13 -0
- data/js/node_modules/@protobufjs/aspromise/index.d.ts +13 -0
- data/js/node_modules/@protobufjs/aspromise/index.js +52 -0
- data/js/node_modules/@protobufjs/aspromise/package.json +21 -0
- data/js/node_modules/@protobufjs/aspromise/tests/index.js +130 -0
- data/js/node_modules/@protobufjs/base64/LICENSE +26 -0
- data/js/node_modules/@protobufjs/base64/README.md +19 -0
- data/js/node_modules/@protobufjs/base64/index.d.ts +32 -0
- data/js/node_modules/@protobufjs/base64/index.js +139 -0
- data/js/node_modules/@protobufjs/base64/package.json +21 -0
- data/js/node_modules/@protobufjs/base64/tests/index.js +46 -0
- data/js/node_modules/@protobufjs/codegen/LICENSE +26 -0
- data/js/node_modules/@protobufjs/codegen/README.md +49 -0
- data/js/node_modules/@protobufjs/codegen/index.d.ts +31 -0
- data/js/node_modules/@protobufjs/codegen/index.js +99 -0
- data/js/node_modules/@protobufjs/codegen/package.json +13 -0
- data/js/node_modules/@protobufjs/codegen/tests/index.js +13 -0
- data/js/node_modules/@protobufjs/eventemitter/LICENSE +26 -0
- data/js/node_modules/@protobufjs/eventemitter/README.md +22 -0
- data/js/node_modules/@protobufjs/eventemitter/index.d.ts +43 -0
- data/js/node_modules/@protobufjs/eventemitter/index.js +76 -0
- data/js/node_modules/@protobufjs/eventemitter/package.json +21 -0
- data/js/node_modules/@protobufjs/eventemitter/tests/index.js +47 -0
- data/js/node_modules/@protobufjs/fetch/LICENSE +26 -0
- data/js/node_modules/@protobufjs/fetch/README.md +13 -0
- data/js/node_modules/@protobufjs/fetch/index.d.ts +56 -0
- data/js/node_modules/@protobufjs/fetch/index.js +115 -0
- data/js/node_modules/@protobufjs/fetch/package.json +25 -0
- data/js/node_modules/@protobufjs/fetch/tests/index.js +16 -0
- data/js/node_modules/@protobufjs/float/LICENSE +26 -0
- data/js/node_modules/@protobufjs/float/README.md +102 -0
- data/js/node_modules/@protobufjs/float/bench/index.js +87 -0
- data/js/node_modules/@protobufjs/float/bench/suite.js +46 -0
- data/js/node_modules/@protobufjs/float/index.d.ts +83 -0
- data/js/node_modules/@protobufjs/float/index.js +335 -0
- data/js/node_modules/@protobufjs/float/package.json +26 -0
- data/js/node_modules/@protobufjs/float/tests/index.js +100 -0
- data/js/node_modules/@protobufjs/inquire/LICENSE +26 -0
- data/js/node_modules/@protobufjs/inquire/README.md +13 -0
- data/js/node_modules/@protobufjs/inquire/index.d.ts +9 -0
- data/js/node_modules/@protobufjs/inquire/index.js +17 -0
- data/js/node_modules/@protobufjs/inquire/package.json +21 -0
- data/js/node_modules/@protobufjs/inquire/tests/data/array.js +1 -0
- data/js/node_modules/@protobufjs/inquire/tests/data/emptyArray.js +1 -0
- data/js/node_modules/@protobufjs/inquire/tests/data/emptyObject.js +1 -0
- data/js/node_modules/@protobufjs/inquire/tests/data/object.js +1 -0
- data/js/node_modules/@protobufjs/inquire/tests/index.js +20 -0
- data/js/node_modules/@protobufjs/path/LICENSE +26 -0
- data/js/node_modules/@protobufjs/path/README.md +19 -0
- data/js/node_modules/@protobufjs/path/index.d.ts +22 -0
- data/js/node_modules/@protobufjs/path/index.js +65 -0
- data/js/node_modules/@protobufjs/path/package.json +21 -0
- data/js/node_modules/@protobufjs/path/tests/index.js +60 -0
- data/js/node_modules/@protobufjs/pool/LICENSE +26 -0
- data/js/node_modules/@protobufjs/pool/README.md +13 -0
- data/js/node_modules/@protobufjs/pool/index.d.ts +32 -0
- data/js/node_modules/@protobufjs/pool/index.js +48 -0
- data/js/node_modules/@protobufjs/pool/package.json +21 -0
- data/js/node_modules/@protobufjs/pool/tests/index.js +33 -0
- data/js/node_modules/@protobufjs/utf8/LICENSE +26 -0
- data/js/node_modules/@protobufjs/utf8/README.md +20 -0
- data/js/node_modules/@protobufjs/utf8/index.d.ts +24 -0
- data/js/node_modules/@protobufjs/utf8/index.js +105 -0
- data/js/node_modules/@protobufjs/utf8/package.json +21 -0
- data/js/node_modules/@protobufjs/utf8/tests/data/utf8.txt +216 -0
- data/js/node_modules/@protobufjs/utf8/tests/index.js +57 -0
- data/js/node_modules/@types/base64-js/LICENSE +21 -0
- data/js/node_modules/@types/base64-js/README.md +16 -0
- data/js/node_modules/@types/base64-js/index.d.ts +23 -0
- data/js/node_modules/@types/base64-js/package.json +29 -0
- data/js/node_modules/@types/long/LICENSE +21 -0
- data/js/node_modules/@types/long/README.md +16 -0
- data/js/node_modules/@types/long/index.d.ts +389 -0
- data/js/node_modules/@types/long/package.json +25 -0
- data/js/node_modules/@types/node/LICENSE +21 -0
- data/js/node_modules/@types/node/README.md +16 -0
- data/js/node_modules/@types/node/assert/strict.d.ts +8 -0
- data/js/node_modules/@types/node/assert.d.ts +972 -0
- data/js/node_modules/@types/node/async_hooks.d.ts +530 -0
- data/js/node_modules/@types/node/buffer.d.ts +2354 -0
- data/js/node_modules/@types/node/child_process.d.ts +1395 -0
- data/js/node_modules/@types/node/cluster.d.ts +414 -0
- data/js/node_modules/@types/node/console.d.ts +412 -0
- data/js/node_modules/@types/node/constants.d.ts +18 -0
- data/js/node_modules/@types/node/crypto.d.ts +3978 -0
- data/js/node_modules/@types/node/dgram.d.ts +545 -0
- data/js/node_modules/@types/node/diagnostics_channel.d.ts +191 -0
- data/js/node_modules/@types/node/dns/promises.d.ts +414 -0
- data/js/node_modules/@types/node/dns.d.ts +668 -0
- data/js/node_modules/@types/node/dom-events.d.ts +126 -0
- data/js/node_modules/@types/node/domain.d.ts +170 -0
- data/js/node_modules/@types/node/events.d.ts +724 -0
- data/js/node_modules/@types/node/fs/promises.d.ts +1190 -0
- data/js/node_modules/@types/node/fs.d.ts +4044 -0
- data/js/node_modules/@types/node/globals.d.ts +303 -0
- data/js/node_modules/@types/node/globals.global.d.ts +1 -0
- data/js/node_modules/@types/node/http.d.ts +1724 -0
- data/js/node_modules/@types/node/http2.d.ts +2129 -0
- data/js/node_modules/@types/node/https.d.ts +441 -0
- data/js/node_modules/@types/node/index.d.ts +134 -0
- data/js/node_modules/@types/node/inspector.d.ts +2748 -0
- data/js/node_modules/@types/node/module.d.ts +129 -0
- data/js/node_modules/@types/node/net.d.ts +888 -0
- data/js/node_modules/@types/node/os.d.ts +477 -0
- data/js/node_modules/@types/node/package.json +237 -0
- data/js/node_modules/@types/node/path.d.ts +191 -0
- data/js/node_modules/@types/node/perf_hooks.d.ts +638 -0
- data/js/node_modules/@types/node/process.d.ts +1494 -0
- data/js/node_modules/@types/node/punycode.d.ts +117 -0
- data/js/node_modules/@types/node/querystring.d.ts +131 -0
- data/js/node_modules/@types/node/readline/promises.d.ts +145 -0
- data/js/node_modules/@types/node/readline.d.ts +526 -0
- data/js/node_modules/@types/node/repl.d.ts +424 -0
- data/js/node_modules/@types/node/stream/consumers.d.ts +12 -0
- data/js/node_modules/@types/node/stream/promises.d.ts +42 -0
- data/js/node_modules/@types/node/stream/web.d.ts +330 -0
- data/js/node_modules/@types/node/stream.d.ts +1421 -0
- data/js/node_modules/@types/node/string_decoder.d.ts +67 -0
- data/js/node_modules/@types/node/test.d.ts +1383 -0
- data/js/node_modules/@types/node/timers/promises.d.ts +93 -0
- data/js/node_modules/@types/node/timers.d.ts +215 -0
- data/js/node_modules/@types/node/tls.d.ts +1130 -0
- data/js/node_modules/@types/node/trace_events.d.ts +182 -0
- data/js/node_modules/@types/node/ts4.8/assert/strict.d.ts +8 -0
- data/js/node_modules/@types/node/ts4.8/assert.d.ts +972 -0
- data/js/node_modules/@types/node/ts4.8/async_hooks.d.ts +530 -0
- data/js/node_modules/@types/node/ts4.8/buffer.d.ts +2354 -0
- data/js/node_modules/@types/node/ts4.8/child_process.d.ts +1395 -0
- data/js/node_modules/@types/node/ts4.8/cluster.d.ts +414 -0
- data/js/node_modules/@types/node/ts4.8/console.d.ts +412 -0
- data/js/node_modules/@types/node/ts4.8/constants.d.ts +18 -0
- data/js/node_modules/@types/node/ts4.8/crypto.d.ts +3977 -0
- data/js/node_modules/@types/node/ts4.8/dgram.d.ts +545 -0
- data/js/node_modules/@types/node/ts4.8/diagnostics_channel.d.ts +191 -0
- data/js/node_modules/@types/node/ts4.8/dns/promises.d.ts +414 -0
- data/js/node_modules/@types/node/ts4.8/dns.d.ts +668 -0
- data/js/node_modules/@types/node/ts4.8/dom-events.d.ts +126 -0
- data/js/node_modules/@types/node/ts4.8/domain.d.ts +170 -0
- data/js/node_modules/@types/node/ts4.8/events.d.ts +724 -0
- data/js/node_modules/@types/node/ts4.8/fs/promises.d.ts +1189 -0
- data/js/node_modules/@types/node/ts4.8/fs.d.ts +4044 -0
- data/js/node_modules/@types/node/ts4.8/globals.d.ts +303 -0
- data/js/node_modules/@types/node/ts4.8/globals.global.d.ts +1 -0
- data/js/node_modules/@types/node/ts4.8/http.d.ts +1724 -0
- data/js/node_modules/@types/node/ts4.8/http2.d.ts +2129 -0
- data/js/node_modules/@types/node/ts4.8/https.d.ts +441 -0
- data/js/node_modules/@types/node/ts4.8/index.d.ts +88 -0
- data/js/node_modules/@types/node/ts4.8/inspector.d.ts +2748 -0
- data/js/node_modules/@types/node/ts4.8/module.d.ts +129 -0
- data/js/node_modules/@types/node/ts4.8/net.d.ts +888 -0
- data/js/node_modules/@types/node/ts4.8/os.d.ts +477 -0
- data/js/node_modules/@types/node/ts4.8/path.d.ts +191 -0
- data/js/node_modules/@types/node/ts4.8/perf_hooks.d.ts +638 -0
- data/js/node_modules/@types/node/ts4.8/process.d.ts +1494 -0
- data/js/node_modules/@types/node/ts4.8/punycode.d.ts +117 -0
- data/js/node_modules/@types/node/ts4.8/querystring.d.ts +131 -0
- data/js/node_modules/@types/node/ts4.8/readline/promises.d.ts +145 -0
- data/js/node_modules/@types/node/ts4.8/readline.d.ts +526 -0
- data/js/node_modules/@types/node/ts4.8/repl.d.ts +424 -0
- data/js/node_modules/@types/node/ts4.8/stream/consumers.d.ts +12 -0
- data/js/node_modules/@types/node/ts4.8/stream/promises.d.ts +42 -0
- data/js/node_modules/@types/node/ts4.8/stream/web.d.ts +330 -0
- data/js/node_modules/@types/node/ts4.8/stream.d.ts +1392 -0
- data/js/node_modules/@types/node/ts4.8/string_decoder.d.ts +67 -0
- data/js/node_modules/@types/node/ts4.8/test.d.ts +1365 -0
- data/js/node_modules/@types/node/ts4.8/timers/promises.d.ts +93 -0
- data/js/node_modules/@types/node/ts4.8/timers.d.ts +215 -0
- data/js/node_modules/@types/node/ts4.8/tls.d.ts +1130 -0
- data/js/node_modules/@types/node/ts4.8/trace_events.d.ts +182 -0
- data/js/node_modules/@types/node/ts4.8/tty.d.ts +208 -0
- data/js/node_modules/@types/node/ts4.8/url.d.ts +901 -0
- data/js/node_modules/@types/node/ts4.8/util.d.ts +2116 -0
- data/js/node_modules/@types/node/ts4.8/v8.d.ts +635 -0
- data/js/node_modules/@types/node/ts4.8/vm.d.ts +894 -0
- data/js/node_modules/@types/node/ts4.8/wasi.d.ts +152 -0
- data/js/node_modules/@types/node/ts4.8/worker_threads.d.ts +693 -0
- data/js/node_modules/@types/node/ts4.8/zlib.d.ts +517 -0
- data/js/node_modules/@types/node/tty.d.ts +208 -0
- data/js/node_modules/@types/node/url.d.ts +901 -0
- data/js/node_modules/@types/node/util.d.ts +2116 -0
- data/js/node_modules/@types/node/v8.d.ts +635 -0
- data/js/node_modules/@types/node/vm.d.ts +894 -0
- data/js/node_modules/@types/node/wasi.d.ts +152 -0
- data/js/node_modules/@types/node/worker_threads.d.ts +693 -0
- data/js/node_modules/@types/node/zlib.d.ts +517 -0
- data/js/node_modules/@types/node-fetch/LICENSE +21 -0
- data/js/node_modules/@types/node-fetch/README.md +16 -0
- data/js/node_modules/@types/node-fetch/externals.d.ts +24 -0
- data/js/node_modules/@types/node-fetch/index.d.ts +224 -0
- data/js/node_modules/@types/node-fetch/package.json +83 -0
- data/js/node_modules/@waves/bignumber/dist/BigNumber.d.ts +74 -0
- data/js/node_modules/@waves/bignumber/dist/BigNumber.js +252 -0
- data/js/node_modules/@waves/bignumber/dist/BigNumber.js.map +1 -0
- data/js/node_modules/@waves/bignumber/dist/Config.d.ts +22 -0
- data/js/node_modules/@waves/bignumber/dist/Config.js +43 -0
- data/js/node_modules/@waves/bignumber/dist/Config.js.map +1 -0
- data/js/node_modules/@waves/bignumber/dist/bignumber.umd.js +3194 -0
- data/js/node_modules/@waves/bignumber/dist/bignumber.umd.min.js +1 -0
- data/js/node_modules/@waves/bignumber/dist/index.d.ts +3 -0
- data/js/node_modules/@waves/bignumber/dist/index.js +9 -0
- data/js/node_modules/@waves/bignumber/dist/index.js.map +1 -0
- data/js/node_modules/@waves/bignumber/package.json +64 -0
- data/js/node_modules/@waves/bignumber/readme.md +285 -0
- data/js/node_modules/@waves/marshall/LICENSE +9 -0
- data/js/node_modules/@waves/marshall/README.md +39 -0
- data/js/node_modules/@waves/marshall/dist/index.d.ts +26 -0
- data/js/node_modules/@waves/marshall/dist/index.js +45 -0
- data/js/node_modules/@waves/marshall/dist/index.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/jsonMethods.d.ts +36 -0
- data/js/node_modules/@waves/marshall/dist/jsonMethods.js +194 -0
- data/js/node_modules/@waves/marshall/dist/jsonMethods.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/libs/Utf8ArrayToStr.d.ts +1 -0
- data/js/node_modules/@waves/marshall/dist/libs/Utf8ArrayToStr.js +35 -0
- data/js/node_modules/@waves/marshall/dist/libs/Utf8ArrayToStr.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/libs/base58.d.ts +5 -0
- data/js/node_modules/@waves/marshall/dist/libs/base58.js +66 -0
- data/js/node_modules/@waves/marshall/dist/libs/base58.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/libs/utils.d.ts +2 -0
- data/js/node_modules/@waves/marshall/dist/libs/utils.js +6 -0
- data/js/node_modules/@waves/marshall/dist/libs/utils.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/min/waves-marshall.min.js +1 -0
- data/js/node_modules/@waves/marshall/dist/parse.d.ts +21 -0
- data/js/node_modules/@waves/marshall/dist/parse.js +142 -0
- data/js/node_modules/@waves/marshall/dist/parse.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/parsePrimitives.d.ts +57 -0
- data/js/node_modules/@waves/marshall/dist/parsePrimitives.js +96 -0
- data/js/node_modules/@waves/marshall/dist/parsePrimitives.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/schemaTypes.d.ts +62 -0
- data/js/node_modules/@waves/marshall/dist/schemaTypes.js +41 -0
- data/js/node_modules/@waves/marshall/dist/schemaTypes.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/schemas.d.ts +128 -0
- data/js/node_modules/@waves/marshall/dist/schemas.js +542 -0
- data/js/node_modules/@waves/marshall/dist/schemas.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/serialize.d.ts +11 -0
- data/js/node_modules/@waves/marshall/dist/serialize.js +102 -0
- data/js/node_modules/@waves/marshall/dist/serialize.js.map +1 -0
- data/js/node_modules/@waves/marshall/dist/serializePrimitives.d.ts +21 -0
- data/js/node_modules/@waves/marshall/dist/serializePrimitives.js +63 -0
- data/js/node_modules/@waves/marshall/dist/serializePrimitives.js.map +1 -0
- data/js/node_modules/@waves/marshall/package.json +45 -0
- data/js/node_modules/@waves/marshall/src/index.ts +51 -0
- data/js/node_modules/@waves/marshall/src/jsonMethods.ts +231 -0
- data/js/node_modules/@waves/marshall/src/libs/Utf8ArrayToStr.ts +35 -0
- data/js/node_modules/@waves/marshall/src/libs/base58.ts +88 -0
- data/js/node_modules/@waves/marshall/src/libs/utils.ts +6 -0
- data/js/node_modules/@waves/marshall/src/parse.ts +157 -0
- data/js/node_modules/@waves/marshall/src/parsePrimitives.ts +118 -0
- data/js/node_modules/@waves/marshall/src/schemaTypes.ts +91 -0
- data/js/node_modules/@waves/marshall/src/schemas.ts +630 -0
- data/js/node_modules/@waves/marshall/src/serialize.ts +110 -0
- data/js/node_modules/@waves/marshall/src/serializePrimitives.ts +80 -0
- data/js/node_modules/@waves/node-api-js/README.md +2 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/activation/index.d.ts +21 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/activation/index.js +20 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/activation/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/addresses/index.d.ts +81 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/addresses/index.js +174 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/addresses/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/alias/index.d.ts +6 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/alias/index.js +22 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/alias/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/assets/index.d.ts +79 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/assets/index.js +172 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/assets/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/blocks/index.d.ts +131 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/blocks/index.js +210 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/blocks/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/consensus/index.d.ts +39 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/consensus/index.js +37 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/consensus/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/debug/index.d.ts +189 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/debug/index.js +245 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/debug/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/eth/index.d.ts +3 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/eth/index.js +15 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/eth/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/leasing/index.d.ts +22 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/leasing/index.js +42 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/leasing/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/node/index.d.ts +11 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/node/index.js +20 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/node/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/peers/index.d.ts +46 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/peers/index.js +60 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/peers/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/rewards/index.d.ts +21 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/rewards/index.js +21 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/rewards/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/transactions/index.d.ts +73 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/transactions/index.js +193 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/transactions/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/utils/index.d.ts +110 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/utils/index.js +211 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/utils/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/wallet/index.d.ts +5 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/wallet/index.js +7 -0
- data/js/node_modules/@waves/node-api-js/cjs/api-node/wallet/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/constants.d.ts +40 -0
- data/js/node_modules/@waves/node-api-js/cjs/constants.js +43 -0
- data/js/node_modules/@waves/node-api-js/cjs/constants.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/create.d.ts +1240 -0
- data/js/node_modules/@waves/node-api-js/cjs/create.js +119 -0
- data/js/node_modules/@waves/node-api-js/cjs/create.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/index.d.ts +9 -0
- data/js/node_modules/@waves/node-api-js/cjs/index.js +18 -0
- data/js/node_modules/@waves/node-api-js/cjs/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/interface.d.ts +44 -0
- data/js/node_modules/@waves/node-api-js/cjs/interface.js +10 -0
- data/js/node_modules/@waves/node-api-js/cjs/interface.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/availableSponsoredBalances.d.ts +7 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/availableSponsoredBalances.js +30 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/availableSponsoredBalances.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/ethAddress2waves.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/ethAddress2waves.js +47 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/ethAddress2waves.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetIdListByTx.d.ts +2 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetIdListByTx.js +48 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetIdListByTx.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetsByTransaction.d.ts +3 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetsByTransaction.js +14 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getAssetsByTransaction.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getTransactionsWithAssets.d.ts +6 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getTransactionsWithAssets.js +13 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/getTransactionsWithAssets.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/watch.d.ts +24 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/watch.js +168 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/watch.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/wavesAddress2eth.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/wavesAddress2eth.js +10 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/adresses/wavesAddress2eth.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/assets/wavesAsset2eth.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/assets/wavesAsset2eth.js +10 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/assets/wavesAsset2eth.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/detectInterval.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/detectInterval.js +12 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/detectInterval.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkByte.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkByte.js +54 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkByte.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkCode.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkCode.js +11 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/getNetworkCode.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/waitHeight.d.ts +3 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/waitHeight.js +65 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/blocks/waitHeight.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/parse.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/parse.js +8 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/parse.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/query.d.ts +4 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/query.js +41 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/query.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/request.d.ts +64 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/request.js +42 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/request.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/resolve.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/resolve.js +7 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/resolve.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/stringify.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/stringify.js +21 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/stringify.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/broadcast.d.ts +14 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/broadcast.js +60 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/broadcast.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/ethTxId2waves.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/ethTxId2waves.js +11 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/ethTxId2waves.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/transactions.d.ts +0 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/transactions.js +2 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/transactions.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/wait.d.ts +10 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/wait.js +42 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/transactions/wait.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/utils.d.ts +32 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/utils.js +118 -0
- data/js/node_modules/@waves/node-api-js/cjs/tools/utils.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/dist/0.node-api.js +467 -0
- data/js/node_modules/@waves/node-api-js/dist/node-api.js +30544 -0
- data/js/node_modules/@waves/node-api-js/dist/node-api.min.js +26 -0
- data/js/node_modules/@waves/node-api-js/dist/node-api.min.js.LICENSE.txt +17 -0
- data/js/node_modules/@waves/node-api-js/dist/node_fs-node_path.node-api.js +23 -0
- data/js/node_modules/@waves/node-api-js/dist/vendors-node_modules_node-fetch_src_utils_multipart-parser_js.node-api.js +599 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/activation/index.d.ts +21 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/activation/index.js +13 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/activation/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/addresses/index.d.ts +81 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/addresses/index.js +111 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/addresses/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/alias/index.d.ts +6 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/alias/index.js +14 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/alias/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/assets/index.d.ts +79 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/assets/index.js +103 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/assets/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/blocks/index.d.ts +131 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/blocks/index.js +179 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/blocks/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/consensus/index.d.ts +39 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/consensus/index.js +27 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/consensus/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/debug/index.d.ts +189 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/debug/index.js +201 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/debug/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/eth/index.d.ts +3 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/eth/index.js +8 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/eth/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/leasing/index.d.ts +22 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/leasing/index.js +22 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/leasing/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/node/index.d.ts +11 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/node/index.js +10 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/node/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/peers/index.d.ts +46 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/peers/index.js +46 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/peers/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/rewards/index.d.ts +21 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/rewards/index.js +13 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/rewards/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/transactions/index.d.ts +73 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/transactions/index.js +137 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/transactions/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/utils/index.d.ts +110 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/utils/index.js +193 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/utils/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/wallet/index.d.ts +5 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/wallet/index.js +7 -0
- data/js/node_modules/@waves/node-api-js/es/api-node/wallet/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/constants.d.ts +40 -0
- data/js/node_modules/@waves/node-api-js/es/constants.js +40 -0
- data/js/node_modules/@waves/node-api-js/es/constants.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/create.d.ts +1240 -0
- data/js/node_modules/@waves/node-api-js/es/create.js +93 -0
- data/js/node_modules/@waves/node-api-js/es/create.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/index.d.ts +9 -0
- data/js/node_modules/@waves/node-api-js/es/index.js +9 -0
- data/js/node_modules/@waves/node-api-js/es/index.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/interface.d.ts +44 -0
- data/js/node_modules/@waves/node-api-js/es/interface.js +3 -0
- data/js/node_modules/@waves/node-api-js/es/interface.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/availableSponsoredBalances.d.ts +7 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/availableSponsoredBalances.js +27 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/availableSponsoredBalances.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/ethAddress2waves.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/ethAddress2waves.js +31 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/ethAddress2waves.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetIdListByTx.d.ts +2 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetIdListByTx.js +24 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetIdListByTx.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetsByTransaction.d.ts +3 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetsByTransaction.js +8 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getAssetsByTransaction.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getTransactionsWithAssets.d.ts +6 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getTransactionsWithAssets.js +7 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/getTransactionsWithAssets.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/watch.d.ts +24 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/watch.js +134 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/watch.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/wavesAddress2eth.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/wavesAddress2eth.js +7 -0
- data/js/node_modules/@waves/node-api-js/es/tools/adresses/wavesAddress2eth.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/assets/wavesAsset2eth.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/assets/wavesAsset2eth.js +7 -0
- data/js/node_modules/@waves/node-api-js/es/tools/assets/wavesAsset2eth.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/detectInterval.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/detectInterval.js +9 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/detectInterval.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkByte.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkByte.js +51 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkByte.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkCode.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkCode.js +5 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/getNetworkCode.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/waitHeight.d.ts +3 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/waitHeight.js +36 -0
- data/js/node_modules/@waves/node-api-js/es/tools/blocks/waitHeight.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/parse.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/parse.js +5 -0
- data/js/node_modules/@waves/node-api-js/es/tools/parse.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/query.d.ts +4 -0
- data/js/node_modules/@waves/node-api-js/es/tools/query.js +12 -0
- data/js/node_modules/@waves/node-api-js/es/tools/query.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/request.d.ts +64 -0
- data/js/node_modules/@waves/node-api-js/es/tools/request.js +22 -0
- data/js/node_modules/@waves/node-api-js/es/tools/request.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/resolve.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/resolve.js +4 -0
- data/js/node_modules/@waves/node-api-js/es/tools/resolve.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/stringify.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/stringify.js +18 -0
- data/js/node_modules/@waves/node-api-js/es/tools/stringify.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/broadcast.d.ts +14 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/broadcast.js +43 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/broadcast.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/ethTxId2waves.d.ts +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/ethTxId2waves.js +8 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/ethTxId2waves.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/transactions.d.ts +0 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/transactions.js +2 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/transactions.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/wait.d.ts +10 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/wait.js +39 -0
- data/js/node_modules/@waves/node-api-js/es/tools/transactions/wait.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/es/tools/utils.d.ts +32 -0
- data/js/node_modules/@waves/node-api-js/es/tools/utils.js +73 -0
- data/js/node_modules/@waves/node-api-js/es/tools/utils.js.map +1 -0
- data/js/node_modules/@waves/node-api-js/package.json +66 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/clover.xml +225 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/coverage-final.json +2 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/base.css +212 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/index.html +93 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/parse-json-bignumber.ts.html +1598 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/prettify.css +1 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/prettify.js +1 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov-report/sorter.js +158 -0
- data/js/node_modules/@waves/parse-json-bignumber/coverage/lcov.info +415 -0
- data/js/node_modules/@waves/parse-json-bignumber/dist/parse-json-bignumber.d.ts +11 -0
- data/js/node_modules/@waves/parse-json-bignumber/dist/parse-json-bignumber.js +412 -0
- data/js/node_modules/@waves/parse-json-bignumber/dist/parse-json-bignumber.min.js +1 -0
- data/js/node_modules/@waves/parse-json-bignumber/package.json +40 -0
- data/js/node_modules/@waves/parse-json-bignumber/src/parse-json-bignumber.ts +511 -0
- data/js/node_modules/@waves/parse-json-bignumber/test/index.ts +130 -0
- data/js/node_modules/@waves/parse-json-bignumber/test/tsconfig.json +14 -0
- data/js/node_modules/@waves/parse-json-bignumber/tsconfig.json +15 -0
- data/js/node_modules/@waves/protobuf-serialization/README.MD +116 -0
- data/js/node_modules/@waves/protobuf-serialization/dist/index.d.ts +2005 -0
- data/js/node_modules/@waves/protobuf-serialization/dist/index.js +6636 -0
- data/js/node_modules/@waves/protobuf-serialization/package.json +30 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/amount.proto +10 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/block.proto +40 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/events/events.proto +213 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/events/grpc/blockchain_updates.proto +42 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/invoke_script_result.proto +98 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/lang/dapp_meta.proto +21 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/accounts_api.proto +68 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/assets_api.proto +41 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/blockchain_api.proto +54 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/blocks_api.proto +41 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/node/grpc/transactions_api.proto +73 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/order.proto +43 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/recipient.proto +13 -0
- data/js/node_modules/@waves/protobuf-serialization/proto/waves/transaction.proto +156 -0
- data/js/node_modules/@waves/ts-lib-crypto/README.md +492 -0
- data/js/node_modules/@waves/ts-lib-crypto/bytes.d.ts +10 -0
- data/js/node_modules/@waves/ts-lib-crypto/bytes.js +21 -0
- data/js/node_modules/@waves/ts-lib-crypto/bytes.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/base-xx.d.ts +7 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/base-xx.js +27 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/base-xx.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/param.d.ts +3 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/param.js +24 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/param.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/string-bytes.d.ts +11 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/string-bytes.js +65 -0
- data/js/node_modules/@waves/ts-lib-crypto/conversions/string-bytes.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/address-keys-seed.d.ts +7 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/address-keys-seed.js +58 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/address-keys-seed.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/concat-split.d.ts +3 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/concat-split.js +39 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/concat-split.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/crypto.d.ts +13 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/crypto.js +117 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/crypto.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/encryption.d.ts +6 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/encryption.js +89 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/encryption.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/hashing.d.ts +7 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/hashing.js +39 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/hashing.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/interface.d.ts +98 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/interface.js +9 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/interface.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/merkle-verify.d.ts +7 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/merkle-verify.js +51 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/merkle-verify.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/random.d.ts +4 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/random.js +51 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/random.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/rsa.d.ts +7 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/rsa.js +159 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/rsa.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-ecryption.d.ts +9 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-ecryption.js +62 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-ecryption.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-words-list.d.ts +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-words-list.js +189 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/seed-words-list.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/sign.d.ts +2 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/sign.js +16 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/sign.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/util.d.ts +3 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/util.js +9 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/util.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/verification.d.ts +7 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/verification.js +49 -0
- data/js/node_modules/@waves/ts-lib-crypto/crypto/verification.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/extensions/chain-id.d.ts +5 -0
- data/js/node_modules/@waves/ts-lib-crypto/extensions/chain-id.js +16 -0
- data/js/node_modules/@waves/ts-lib-crypto/extensions/chain-id.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/extensions/seed.d.ts +6 -0
- data/js/node_modules/@waves/ts-lib-crypto/extensions/seed.js +18 -0
- data/js/node_modules/@waves/ts-lib-crypto/extensions/seed.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/index.d.ts +10 -0
- data/js/node_modules/@waves/ts-lib-crypto/index.js +21 -0
- data/js/node_modules/@waves/ts-lib-crypto/index.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/Utf8.d.ts +2 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/Utf8.js +61 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/Utf8.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/axlsign.js +1374 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/base58.d.ts +5 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/base58.js +66 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/base58.js.map +1 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/blake2b.js +308 -0
- data/js/node_modules/@waves/ts-lib-crypto/libs/sha3.js +441 -0
- data/js/node_modules/@waves/ts-lib-crypto/min/waves-lib-crypto.js +33 -0
- data/js/node_modules/@waves/ts-lib-crypto/package.json +31 -0
- data/js/node_modules/@waves/ts-types/dist/src/common.d.ts +59 -0
- data/js/node_modules/@waves/ts-types/dist/src/common.js +53 -0
- data/js/node_modules/@waves/ts-types/dist/src/exchange.d.ts +47 -0
- data/js/node_modules/@waves/ts-types/dist/src/exchange.js +2 -0
- data/js/node_modules/@waves/ts-types/dist/src/index.d.ts +52 -0
- data/js/node_modules/@waves/ts-types/dist/src/index.js +63 -0
- data/js/node_modules/@waves/ts-types/dist/src/invoke.d.ts +22 -0
- data/js/node_modules/@waves/ts-types/dist/src/invoke.js +2 -0
- data/js/node_modules/@waves/ts-types/dist/src/network.d.ts +6 -0
- data/js/node_modules/@waves/ts-types/dist/src/network.js +10 -0
- data/js/node_modules/@waves/ts-types/dist/src/parts.d.ts +159 -0
- data/js/node_modules/@waves/ts-types/dist/src/parts.js +2 -0
- data/js/node_modules/@waves/ts-types/dist/transactions/index.d.ts +363 -0
- data/js/node_modules/@waves/ts-types/dist/transactions/index.js +3 -0
- data/js/node_modules/@waves/ts-types/index.ts +1 -0
- data/js/node_modules/@waves/ts-types/package.json +41 -0
- data/js/node_modules/@waves/ts-types/src/index.ts +57 -0
- data/js/node_modules/@waves/ts-types/src/parts.ts +247 -0
- data/js/node_modules/@waves/ts-types/transactions/index.ts +789 -0
- data/js/node_modules/@waves/ts-types/tsconfig.json +16 -0
- data/js/node_modules/@waves/waves-transactions/README.md +432 -0
- data/js/node_modules/@waves/waves-transactions/dist/defaultVersions.d.ts +18 -0
- data/js/node_modules/@waves/waves-transactions/dist/defaultVersions.js +22 -0
- data/js/node_modules/@waves/waves-transactions/dist/defaultVersions.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/general.d.ts +68 -0
- data/js/node_modules/@waves/waves-transactions/dist/general.js +135 -0
- data/js/node_modules/@waves/waves-transactions/dist/general.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/generic.d.ts +28 -0
- data/js/node_modules/@waves/waves-transactions/dist/generic.js +88 -0
- data/js/node_modules/@waves/waves-transactions/dist/generic.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/index.d.ts +37 -0
- data/js/node_modules/@waves/waves-transactions/dist/index.js +98 -0
- data/js/node_modules/@waves/waves-transactions/dist/index.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/make-tx.d.ts +50 -0
- data/js/node_modules/@waves/waves-transactions/dist/make-tx.js +106 -0
- data/js/node_modules/@waves/waves-transactions/dist/make-tx.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/min/waves-transactions.min.js +26 -0
- data/js/node_modules/@waves/waves-transactions/dist/nodeInteraction.d.ts +116 -0
- data/js/node_modules/@waves/waves-transactions/dist/nodeInteraction.js +277 -0
- data/js/node_modules/@waves/waves-transactions/dist/nodeInteraction.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/proto-serialize.d.ts +62 -0
- data/js/node_modules/@waves/waves-transactions/dist/proto-serialize.js +514 -0
- data/js/node_modules/@waves/waves-transactions/dist/proto-serialize.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/auth.d.ts +7 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/auth.js +31 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/auth.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/cancel-order.d.ts +7 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/cancel-order.js +29 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/cancel-order.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/custom-data.d.ts +40 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/custom-data.js +37 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/custom-data.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/order.d.ts +50 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/order.js +62 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/order.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/wavesAuth.d.ts +7 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/wavesAuth.js +31 -0
- data/js/node_modules/@waves/waves-transactions/dist/requests/wavesAuth.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/seedUtils/index.d.ts +21 -0
- data/js/node_modules/@waves/waves-transactions/dist/seedUtils/index.js +85 -0
- data/js/node_modules/@waves/waves-transactions/dist/seedUtils/index.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/alias.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/alias.js +35 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/alias.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/burn.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/burn.js +35 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/burn.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/cancel-lease.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/cancel-lease.js +34 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/cancel-lease.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/data.d.ts +5 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/data.js +112 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/data.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/exchange.d.ts +7 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/exchange.js +39 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/exchange.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-expression.d.ts +0 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-expression.js +52 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-expression.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-script.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-script.js +43 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/invoke-script.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/issue.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/issue.js +42 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/issue.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/lease.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/lease.js +35 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/lease.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/mass-transfer.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/mass-transfer.js +39 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/mass-transfer.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/reissue.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/reissue.js +36 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/reissue.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/set-asset-script.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/set-asset-script.js +37 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/set-asset-script.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/set-script.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/set-script.js +38 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/set-script.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/sponsorship.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/sponsorship.js +35 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/sponsorship.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/transfer.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/transfer.js +38 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/transfer.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/update-asset-info.d.ts +8 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/update-asset-info.js +35 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions/update-asset-info.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions.d.ts +277 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions.js +3 -0
- data/js/node_modules/@waves/waves-transactions/dist/transactions.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/types.d.ts +11 -0
- data/js/node_modules/@waves/waves-transactions/dist/types.js +6 -0
- data/js/node_modules/@waves/waves-transactions/dist/types.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/alias.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/alias.js +17 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/alias.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/auth.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/auth.js +10 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/auth.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/burn.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/burn.js +18 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/burn.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-lease.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-lease.js +17 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-lease.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-order.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-order.js +12 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/cancel-order.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/custom-data.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/custom-data.js +16 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/custom-data.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/data.d.ts +2 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/data.js +18 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/data.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/exchange.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/exchange.js +22 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/exchange.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/index.d.ts +24 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/index.js +60 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/index.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-expression.d.ts +0 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-expression.js +33 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-expression.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-script.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-script.js +20 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/invoke-script.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/issue.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/issue.js +22 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/issue.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/lease.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/lease.js +17 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/lease.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/mass-transfer.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/mass-transfer.js +18 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/mass-transfer.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/order.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/order.js +34 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/order.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/reissue.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/reissue.js +19 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/reissue.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/set-asset-script.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/set-asset-script.js +18 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/set-asset-script.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/set-script.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/set-script.js +17 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/set-script.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/sponsorship.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/sponsorship.js +17 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/sponsorship.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/transfer.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/transfer.js +20 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/transfer.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/update-asset-info.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/update-asset-info.js +18 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/update-asset-info.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/validators.d.ts +52 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/validators.js +160 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/validators.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/wavesAuth.d.ts +1 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/wavesAuth.js +10 -0
- data/js/node_modules/@waves/waves-transactions/dist/validators/wavesAuth.js.map +1 -0
- data/js/node_modules/@waves/waves-transactions/package.json +83 -0
- data/js/node_modules/@waves/waves-transactions/src/defaultVersions.ts +18 -0
- data/js/node_modules/@waves/waves-transactions/src/general.ts +165 -0
- data/js/node_modules/@waves/waves-transactions/src/generic.ts +88 -0
- data/js/node_modules/@waves/waves-transactions/src/index.ts +87 -0
- data/js/node_modules/@waves/waves-transactions/src/make-tx.ts +179 -0
- data/js/node_modules/@waves/waves-transactions/src/nodeInteraction.ts +297 -0
- data/js/node_modules/@waves/waves-transactions/src/proto-serialize.ts +571 -0
- data/js/node_modules/@waves/waves-transactions/src/requests/auth.ts +42 -0
- data/js/node_modules/@waves/waves-transactions/src/requests/cancel-order.ts +37 -0
- data/js/node_modules/@waves/waves-transactions/src/requests/custom-data.ts +73 -0
- data/js/node_modules/@waves/waves-transactions/src/requests/order.ts +121 -0
- data/js/node_modules/@waves/waves-transactions/src/requests/wavesAuth.ts +40 -0
- data/js/node_modules/@waves/waves-transactions/src/seedUtils/index.ts +124 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/alias.ts +46 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/burn.ts +45 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/cancel-lease.ts +44 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/data.ts +122 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/exchange.ts +47 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/invoke-expression.ts +50 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/invoke-script.ts +54 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/issue.ts +52 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/lease.ts +45 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/mass-transfer.ts +55 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/reissue.ts +46 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/set-asset-script.ts +57 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/set-script.ts +54 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/sponsorship.ts +45 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/transfer.ts +55 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions/update-asset-info.ts +44 -0
- data/js/node_modules/@waves/waves-transactions/src/transactions.ts +352 -0
- data/js/node_modules/@waves/waves-transactions/src/types.ts +12 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/alias.ts +28 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/auth.ts +14 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/burn.ts +29 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/cancel-lease.ts +27 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/cancel-order.ts +17 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/custom-data.ts +40 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/data.ts +33 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/exchange.ts +36 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/index.ts +50 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/invoke-expression.ts +31 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/invoke-script.ts +64 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/issue.ts +41 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/lease.ts +29 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/mass-transfer.ts +47 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/order.ts +68 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/reissue.ts +31 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/set-asset-script.ts +28 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/set-script.ts +28 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/sponsorship.ts +28 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/transfer.ts +32 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/update-asset-info.ts +32 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/validators.ts +306 -0
- data/js/node_modules/@waves/waves-transactions/src/validators/wavesAuth.ts +15 -0
- data/js/node_modules/asynckit/LICENSE +21 -0
- data/js/node_modules/asynckit/README.md +233 -0
- data/js/node_modules/asynckit/bench.js +76 -0
- data/js/node_modules/asynckit/index.js +6 -0
- data/js/node_modules/asynckit/lib/abort.js +29 -0
- data/js/node_modules/asynckit/lib/async.js +34 -0
- data/js/node_modules/asynckit/lib/defer.js +26 -0
- data/js/node_modules/asynckit/lib/iterate.js +75 -0
- data/js/node_modules/asynckit/lib/readable_asynckit.js +91 -0
- data/js/node_modules/asynckit/lib/readable_parallel.js +25 -0
- data/js/node_modules/asynckit/lib/readable_serial.js +25 -0
- data/js/node_modules/asynckit/lib/readable_serial_ordered.js +29 -0
- data/js/node_modules/asynckit/lib/state.js +37 -0
- data/js/node_modules/asynckit/lib/streamify.js +141 -0
- data/js/node_modules/asynckit/lib/terminator.js +29 -0
- data/js/node_modules/asynckit/package.json +63 -0
- data/js/node_modules/asynckit/parallel.js +43 -0
- data/js/node_modules/asynckit/serial.js +17 -0
- data/js/node_modules/asynckit/serialOrdered.js +75 -0
- data/js/node_modules/asynckit/stream.js +21 -0
- data/js/node_modules/axios/CHANGELOG.md +413 -0
- data/js/node_modules/axios/LICENSE +19 -0
- data/js/node_modules/axios/README.md +709 -0
- data/js/node_modules/axios/UPGRADE_GUIDE.md +162 -0
- data/js/node_modules/axios/dist/axios.js +1715 -0
- data/js/node_modules/axios/dist/axios.map +1 -0
- data/js/node_modules/axios/dist/axios.min.js +3 -0
- data/js/node_modules/axios/dist/axios.min.map +1 -0
- data/js/node_modules/axios/index.d.ts +157 -0
- data/js/node_modules/axios/index.js +1 -0
- data/js/node_modules/axios/lib/adapters/README.md +37 -0
- data/js/node_modules/axios/lib/adapters/http.js +279 -0
- data/js/node_modules/axios/lib/adapters/xhr.js +180 -0
- data/js/node_modules/axios/lib/axios.js +53 -0
- data/js/node_modules/axios/lib/cancel/Cancel.js +19 -0
- data/js/node_modules/axios/lib/cancel/CancelToken.js +57 -0
- data/js/node_modules/axios/lib/cancel/isCancel.js +5 -0
- data/js/node_modules/axios/lib/core/Axios.js +94 -0
- data/js/node_modules/axios/lib/core/InterceptorManager.js +52 -0
- data/js/node_modules/axios/lib/core/README.md +7 -0
- data/js/node_modules/axios/lib/core/buildFullPath.js +20 -0
- data/js/node_modules/axios/lib/core/createError.js +18 -0
- data/js/node_modules/axios/lib/core/dispatchRequest.js +79 -0
- data/js/node_modules/axios/lib/core/enhanceError.js +42 -0
- data/js/node_modules/axios/lib/core/mergeConfig.js +73 -0
- data/js/node_modules/axios/lib/core/settle.js +25 -0
- data/js/node_modules/axios/lib/core/transformData.js +20 -0
- data/js/node_modules/axios/lib/defaults.js +97 -0
- data/js/node_modules/axios/lib/helpers/README.md +7 -0
- data/js/node_modules/axios/lib/helpers/bind.js +11 -0
- data/js/node_modules/axios/lib/helpers/buildURL.js +71 -0
- data/js/node_modules/axios/lib/helpers/combineURLs.js +14 -0
- data/js/node_modules/axios/lib/helpers/cookies.js +53 -0
- data/js/node_modules/axios/lib/helpers/deprecatedMethod.js +24 -0
- data/js/node_modules/axios/lib/helpers/isAbsoluteURL.js +14 -0
- data/js/node_modules/axios/lib/helpers/isURLSameOrigin.js +68 -0
- data/js/node_modules/axios/lib/helpers/normalizeHeaderName.js +12 -0
- data/js/node_modules/axios/lib/helpers/parseHeaders.js +53 -0
- data/js/node_modules/axios/lib/helpers/spread.js +27 -0
- data/js/node_modules/axios/lib/utils.js +344 -0
- data/js/node_modules/axios/package.json +84 -0
- data/js/node_modules/base64-js/LICENSE +21 -0
- data/js/node_modules/base64-js/README.md +34 -0
- data/js/node_modules/base64-js/base64js.min.js +1 -0
- data/js/node_modules/base64-js/index.d.ts +3 -0
- data/js/node_modules/base64-js/index.js +150 -0
- data/js/node_modules/base64-js/package.json +47 -0
- data/js/node_modules/bignumber.js/CHANGELOG.md +290 -0
- data/js/node_modules/bignumber.js/LICENCE.md +26 -0
- data/js/node_modules/bignumber.js/README.md +286 -0
- data/js/node_modules/bignumber.js/bignumber.d.ts +1831 -0
- data/js/node_modules/bignumber.js/bignumber.js +2926 -0
- data/js/node_modules/bignumber.js/bignumber.mjs +2889 -0
- data/js/node_modules/bignumber.js/doc/API.html +2249 -0
- data/js/node_modules/bignumber.js/package.json +50 -0
- data/js/node_modules/combined-stream/License +19 -0
- data/js/node_modules/combined-stream/Readme.md +138 -0
- data/js/node_modules/combined-stream/lib/combined_stream.js +208 -0
- data/js/node_modules/combined-stream/package.json +25 -0
- data/js/node_modules/combined-stream/yarn.lock +17 -0
- data/js/node_modules/debug/CHANGELOG.md +395 -0
- data/js/node_modules/debug/LICENSE +19 -0
- data/js/node_modules/debug/Makefile +58 -0
- data/js/node_modules/debug/README.md +368 -0
- data/js/node_modules/debug/karma.conf.js +70 -0
- data/js/node_modules/debug/node.js +1 -0
- data/js/node_modules/debug/package.json +43 -0
- data/js/node_modules/debug/src/browser.js +195 -0
- data/js/node_modules/debug/src/debug.js +225 -0
- data/js/node_modules/debug/src/index.js +10 -0
- data/js/node_modules/debug/src/node.js +186 -0
- data/js/node_modules/delayed-stream/License +19 -0
- data/js/node_modules/delayed-stream/Makefile +7 -0
- data/js/node_modules/delayed-stream/Readme.md +141 -0
- data/js/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- data/js/node_modules/delayed-stream/package.json +27 -0
- data/js/node_modules/follow-redirects/LICENSE +18 -0
- data/js/node_modules/follow-redirects/README.md +155 -0
- data/js/node_modules/follow-redirects/http.js +1 -0
- data/js/node_modules/follow-redirects/https.js +1 -0
- data/js/node_modules/follow-redirects/index.js +322 -0
- data/js/node_modules/follow-redirects/package.json +60 -0
- data/js/node_modules/form-data/License +19 -0
- data/js/node_modules/form-data/README.md.bak +356 -0
- data/js/node_modules/form-data/Readme.md +356 -0
- data/js/node_modules/form-data/index.d.ts +62 -0
- data/js/node_modules/form-data/lib/browser.js +2 -0
- data/js/node_modules/form-data/lib/form_data.js +498 -0
- data/js/node_modules/form-data/lib/populate.js +10 -0
- data/js/node_modules/form-data/package.json +68 -0
- data/js/node_modules/js-sha3/CHANGELOG.md +106 -0
- data/js/node_modules/js-sha3/LICENSE.txt +20 -0
- data/js/node_modules/js-sha3/README.md +241 -0
- data/js/node_modules/js-sha3/build/sha3.min.js +9 -0
- data/js/node_modules/js-sha3/index.d.ts +317 -0
- data/js/node_modules/js-sha3/package.json +45 -0
- data/js/node_modules/js-sha3/src/sha3.js +656 -0
- data/js/node_modules/long/LICENSE +202 -0
- data/js/node_modules/long/README.md +246 -0
- data/js/node_modules/long/dist/long.js +2 -0
- data/js/node_modules/long/dist/long.js.map +1 -0
- data/js/node_modules/long/index.js +1 -0
- data/js/node_modules/long/package.json +34 -0
- data/js/node_modules/long/src/long.js +1323 -0
- data/js/node_modules/mime-db/HISTORY.md +507 -0
- data/js/node_modules/mime-db/LICENSE +23 -0
- data/js/node_modules/mime-db/README.md +100 -0
- data/js/node_modules/mime-db/db.json +8519 -0
- data/js/node_modules/mime-db/index.js +12 -0
- data/js/node_modules/mime-db/package.json +60 -0
- data/js/node_modules/mime-types/HISTORY.md +397 -0
- data/js/node_modules/mime-types/LICENSE +23 -0
- data/js/node_modules/mime-types/README.md +113 -0
- data/js/node_modules/mime-types/index.js +188 -0
- data/js/node_modules/mime-types/package.json +44 -0
- data/js/node_modules/ms/index.js +152 -0
- data/js/node_modules/ms/license.md +21 -0
- data/js/node_modules/ms/package.json +37 -0
- data/js/node_modules/ms/readme.md +51 -0
- data/js/node_modules/node-fetch/LICENSE.md +22 -0
- data/js/node_modules/node-fetch/README.md +633 -0
- data/js/node_modules/node-fetch/browser.js +25 -0
- data/js/node_modules/node-fetch/lib/index.es.js +1781 -0
- data/js/node_modules/node-fetch/lib/index.js +1790 -0
- data/js/node_modules/node-fetch/lib/index.mjs +1779 -0
- data/js/node_modules/node-fetch/package.json +89 -0
- data/js/node_modules/node-forge/CHANGELOG.md +211 -0
- data/js/node_modules/node-forge/LICENSE +331 -0
- data/js/node_modules/node-forge/README.md +2097 -0
- data/js/node_modules/node-forge/dist/forge.all.min.js +2 -0
- data/js/node_modules/node-forge/dist/forge.all.min.js.map +1 -0
- data/js/node_modules/node-forge/dist/forge.min.js +2 -0
- data/js/node_modules/node-forge/dist/forge.min.js.map +1 -0
- data/js/node_modules/node-forge/dist/prime.worker.min.js +2 -0
- data/js/node_modules/node-forge/dist/prime.worker.min.js.map +1 -0
- data/js/node_modules/node-forge/flash/README.md +48 -0
- data/js/node_modules/node-forge/flash/package.json +28 -0
- data/js/node_modules/node-forge/flash/swf/SocketPool.swf +0 -0
- data/js/node_modules/node-forge/lib/aes.js +1091 -0
- data/js/node_modules/node-forge/lib/aesCipherSuites.js +282 -0
- data/js/node_modules/node-forge/lib/asn1.js +1408 -0
- data/js/node_modules/node-forge/lib/baseN.js +186 -0
- data/js/node_modules/node-forge/lib/cipher.js +230 -0
- data/js/node_modules/node-forge/lib/cipherModes.js +987 -0
- data/js/node_modules/node-forge/lib/debug.js +78 -0
- data/js/node_modules/node-forge/lib/des.js +496 -0
- data/js/node_modules/node-forge/lib/ed25519.js +996 -0
- data/js/node_modules/node-forge/lib/forge.js +13 -0
- data/js/node_modules/node-forge/lib/form.js +149 -0
- data/js/node_modules/node-forge/lib/hmac.js +146 -0
- data/js/node_modules/node-forge/lib/http.js +1364 -0
- data/js/node_modules/node-forge/lib/index.all.js +16 -0
- data/js/node_modules/node-forge/lib/index.js +35 -0
- data/js/node_modules/node-forge/lib/jsbn.js +1264 -0
- data/js/node_modules/node-forge/lib/kem.js +168 -0
- data/js/node_modules/node-forge/lib/log.js +317 -0
- data/js/node_modules/node-forge/lib/md.all.js +13 -0
- data/js/node_modules/node-forge/lib/md.js +11 -0
- data/js/node_modules/node-forge/lib/md5.js +289 -0
- data/js/node_modules/node-forge/lib/mgf.js +12 -0
- data/js/node_modules/node-forge/lib/mgf1.js +57 -0
- data/js/node_modules/node-forge/lib/oids.js +163 -0
- data/js/node_modules/node-forge/lib/pbe.js +1023 -0
- data/js/node_modules/node-forge/lib/pbkdf2.js +211 -0
- data/js/node_modules/node-forge/lib/pem.js +230 -0
- data/js/node_modules/node-forge/lib/pkcs1.js +276 -0
- data/js/node_modules/node-forge/lib/pkcs12.js +1074 -0
- data/js/node_modules/node-forge/lib/pkcs7.js +1257 -0
- data/js/node_modules/node-forge/lib/pkcs7asn1.js +409 -0
- data/js/node_modules/node-forge/lib/pki.js +102 -0
- data/js/node_modules/node-forge/lib/prime.js +297 -0
- data/js/node_modules/node-forge/lib/prime.worker.js +168 -0
- data/js/node_modules/node-forge/lib/prng.js +419 -0
- data/js/node_modules/node-forge/lib/pss.js +241 -0
- data/js/node_modules/node-forge/lib/random.js +191 -0
- data/js/node_modules/node-forge/lib/rc2.js +410 -0
- data/js/node_modules/node-forge/lib/rsa.js +1858 -0
- data/js/node_modules/node-forge/lib/sha1.js +319 -0
- data/js/node_modules/node-forge/lib/sha256.js +327 -0
- data/js/node_modules/node-forge/lib/sha512.js +561 -0
- data/js/node_modules/node-forge/lib/socket.js +287 -0
- data/js/node_modules/node-forge/lib/ssh.js +236 -0
- data/js/node_modules/node-forge/lib/task.js +725 -0
- data/js/node_modules/node-forge/lib/tls.js +4282 -0
- data/js/node_modules/node-forge/lib/tlssocket.js +249 -0
- data/js/node_modules/node-forge/lib/util.js +2993 -0
- data/js/node_modules/node-forge/lib/x509.js +3333 -0
- data/js/node_modules/node-forge/lib/xhr.js +736 -0
- data/js/node_modules/node-forge/package.json +120 -0
- data/js/node_modules/protobufjs/CHANGELOG.md +1027 -0
- data/js/node_modules/protobufjs/LICENSE +39 -0
- data/js/node_modules/protobufjs/README.md +905 -0
- data/js/node_modules/protobufjs/bin/pbjs +6 -0
- data/js/node_modules/protobufjs/bin/pbts +6 -0
- data/js/node_modules/protobufjs/cli/LICENSE +33 -0
- data/js/node_modules/protobufjs/cli/README.md +174 -0
- data/js/node_modules/protobufjs/cli/bin/pbjs +6 -0
- data/js/node_modules/protobufjs/cli/bin/pbts +6 -0
- data/js/node_modules/protobufjs/cli/index.d.ts +3 -0
- data/js/node_modules/protobufjs/cli/index.js +3 -0
- data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/LICENSE +21 -0
- data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/README.md +23 -0
- data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/plugin.js +21 -0
- data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc/publish.js +705 -0
- data/js/node_modules/protobufjs/cli/lib/tsd-jsdoc.json +18 -0
- data/js/node_modules/protobufjs/cli/package.json +8 -0
- data/js/node_modules/protobufjs/cli/package.standalone.json +32 -0
- data/js/node_modules/protobufjs/cli/pbjs.d.ts +9 -0
- data/js/node_modules/protobufjs/cli/pbjs.js +330 -0
- data/js/node_modules/protobufjs/cli/pbts.d.ts +9 -0
- data/js/node_modules/protobufjs/cli/pbts.js +197 -0
- data/js/node_modules/protobufjs/cli/targets/json-module.js +38 -0
- data/js/node_modules/protobufjs/cli/targets/json.js +8 -0
- data/js/node_modules/protobufjs/cli/targets/proto.js +326 -0
- data/js/node_modules/protobufjs/cli/targets/proto2.js +10 -0
- data/js/node_modules/protobufjs/cli/targets/proto3.js +10 -0
- data/js/node_modules/protobufjs/cli/targets/static-module.js +29 -0
- data/js/node_modules/protobufjs/cli/targets/static.js +711 -0
- data/js/node_modules/protobufjs/cli/util.js +183 -0
- data/js/node_modules/protobufjs/cli/wrappers/amd.js +7 -0
- data/js/node_modules/protobufjs/cli/wrappers/closure.js +7 -0
- data/js/node_modules/protobufjs/cli/wrappers/commonjs.js +7 -0
- data/js/node_modules/protobufjs/cli/wrappers/default.js +15 -0
- data/js/node_modules/protobufjs/cli/wrappers/es6.js +5 -0
- data/js/node_modules/protobufjs/dist/README.md +31 -0
- data/js/node_modules/protobufjs/dist/light/README.md +31 -0
- data/js/node_modules/protobufjs/dist/light/protobuf.js +7322 -0
- data/js/node_modules/protobufjs/dist/light/protobuf.js.map +1 -0
- data/js/node_modules/protobufjs/dist/light/protobuf.min.js +8 -0
- data/js/node_modules/protobufjs/dist/light/protobuf.min.js.map +1 -0
- data/js/node_modules/protobufjs/dist/minimal/README.md +31 -0
- data/js/node_modules/protobufjs/dist/minimal/protobuf.js +2714 -0
- data/js/node_modules/protobufjs/dist/minimal/protobuf.js.map +1 -0
- data/js/node_modules/protobufjs/dist/minimal/protobuf.min.js +8 -0
- data/js/node_modules/protobufjs/dist/minimal/protobuf.min.js.map +1 -0
- data/js/node_modules/protobufjs/dist/protobuf.js +8964 -0
- data/js/node_modules/protobufjs/dist/protobuf.js.map +1 -0
- data/js/node_modules/protobufjs/dist/protobuf.min.js +8 -0
- data/js/node_modules/protobufjs/dist/protobuf.min.js.map +1 -0
- data/js/node_modules/protobufjs/ext/debug/README.md +4 -0
- data/js/node_modules/protobufjs/ext/debug/index.js +71 -0
- data/js/node_modules/protobufjs/ext/descriptor/README.md +72 -0
- data/js/node_modules/protobufjs/ext/descriptor/index.d.ts +191 -0
- data/js/node_modules/protobufjs/ext/descriptor/index.js +1052 -0
- data/js/node_modules/protobufjs/ext/descriptor/test.js +54 -0
- data/js/node_modules/protobufjs/google/LICENSE +27 -0
- data/js/node_modules/protobufjs/google/README.md +1 -0
- data/js/node_modules/protobufjs/google/api/annotations.json +83 -0
- data/js/node_modules/protobufjs/google/api/annotations.proto +11 -0
- data/js/node_modules/protobufjs/google/api/http.json +86 -0
- data/js/node_modules/protobufjs/google/api/http.proto +31 -0
- data/js/node_modules/protobufjs/google/protobuf/api.json +118 -0
- data/js/node_modules/protobufjs/google/protobuf/api.proto +34 -0
- data/js/node_modules/protobufjs/google/protobuf/descriptor.json +739 -0
- data/js/node_modules/protobufjs/google/protobuf/descriptor.proto +286 -0
- data/js/node_modules/protobufjs/google/protobuf/source_context.json +20 -0
- data/js/node_modules/protobufjs/google/protobuf/source_context.proto +7 -0
- data/js/node_modules/protobufjs/google/protobuf/type.json +202 -0
- data/js/node_modules/protobufjs/google/protobuf/type.proto +89 -0
- data/js/node_modules/protobufjs/index.d.ts +2739 -0
- data/js/node_modules/protobufjs/index.js +4 -0
- data/js/node_modules/protobufjs/light.d.ts +2 -0
- data/js/node_modules/protobufjs/light.js +4 -0
- data/js/node_modules/protobufjs/minimal.d.ts +2 -0
- data/js/node_modules/protobufjs/minimal.js +4 -0
- data/js/node_modules/protobufjs/package-lock.json +7870 -0
- data/js/node_modules/protobufjs/package.json +122 -0
- data/js/node_modules/protobufjs/scripts/changelog.js +150 -0
- data/js/node_modules/protobufjs/scripts/postinstall.js +35 -0
- data/js/node_modules/protobufjs/src/common.js +399 -0
- data/js/node_modules/protobufjs/src/converter.js +293 -0
- data/js/node_modules/protobufjs/src/decoder.js +128 -0
- data/js/node_modules/protobufjs/src/encoder.js +100 -0
- data/js/node_modules/protobufjs/src/enum.js +181 -0
- data/js/node_modules/protobufjs/src/field.js +374 -0
- data/js/node_modules/protobufjs/src/index-light.js +104 -0
- data/js/node_modules/protobufjs/src/index-minimal.js +36 -0
- data/js/node_modules/protobufjs/src/index.js +12 -0
- data/js/node_modules/protobufjs/src/mapfield.js +126 -0
- data/js/node_modules/protobufjs/src/message.js +139 -0
- data/js/node_modules/protobufjs/src/method.js +160 -0
- data/js/node_modules/protobufjs/src/namespace.js +434 -0
- data/js/node_modules/protobufjs/src/object.js +243 -0
- data/js/node_modules/protobufjs/src/oneof.js +203 -0
- data/js/node_modules/protobufjs/src/parse.js +820 -0
- data/js/node_modules/protobufjs/src/reader.js +411 -0
- data/js/node_modules/protobufjs/src/reader_buffer.js +51 -0
- data/js/node_modules/protobufjs/src/root.js +363 -0
- data/js/node_modules/protobufjs/src/roots.js +18 -0
- data/js/node_modules/protobufjs/src/rpc/service.js +142 -0
- data/js/node_modules/protobufjs/src/rpc.js +36 -0
- data/js/node_modules/protobufjs/src/service.js +167 -0
- data/js/node_modules/protobufjs/src/tokenize.js +403 -0
- data/js/node_modules/protobufjs/src/type.js +589 -0
- data/js/node_modules/protobufjs/src/types.js +196 -0
- data/js/node_modules/protobufjs/src/typescript.jsdoc +15 -0
- data/js/node_modules/protobufjs/src/util/longbits.js +200 -0
- data/js/node_modules/protobufjs/src/util/minimal.js +421 -0
- data/js/node_modules/protobufjs/src/util.js +212 -0
- data/js/node_modules/protobufjs/src/verifier.js +177 -0
- data/js/node_modules/protobufjs/src/wrappers.js +102 -0
- data/js/node_modules/protobufjs/src/writer.js +465 -0
- data/js/node_modules/protobufjs/src/writer_buffer.js +85 -0
- data/js/node_modules/protobufjs/tsconfig.json +7 -0
- data/js/node_modules/tr46/index.js +193 -0
- data/js/node_modules/tr46/lib/mappingTable.json +1 -0
- data/js/node_modules/tr46/package.json +31 -0
- data/js/node_modules/typed-ts-events/dist/EventEmitter.d.ts +23 -0
- data/js/node_modules/typed-ts-events/dist/events.js +145 -0
- data/js/node_modules/typed-ts-events/dist/events.js.map +1 -0
- data/js/node_modules/typed-ts-events/dist/events.min.js +2 -0
- data/js/node_modules/typed-ts-events/dist/events.min.js.map +1 -0
- data/js/node_modules/typed-ts-events/dist/index.d.ts +3 -0
- data/js/node_modules/typed-ts-events/package.json +64 -0
- data/js/node_modules/typed-ts-events/readme.md +77 -0
- data/js/node_modules/webidl-conversions/LICENSE.md +12 -0
- data/js/node_modules/webidl-conversions/README.md +53 -0
- data/js/node_modules/webidl-conversions/lib/index.js +189 -0
- data/js/node_modules/webidl-conversions/package.json +23 -0
- data/js/node_modules/whatwg-url/LICENSE.txt +21 -0
- data/js/node_modules/whatwg-url/README.md +67 -0
- data/js/node_modules/whatwg-url/lib/URL-impl.js +200 -0
- data/js/node_modules/whatwg-url/lib/URL.js +196 -0
- data/js/node_modules/whatwg-url/lib/public-api.js +11 -0
- data/js/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
- data/js/node_modules/whatwg-url/lib/utils.js +20 -0
- data/js/node_modules/whatwg-url/package.json +32 -0
- data/js/package-lock.json +706 -0
- data/js/package.json +15 -0
- data/js/worker.js +109 -0
- data/js/yarn.lock +285 -0
- data/lib/waves_lib/map.rb +211 -0
- data/lib/waves_lib/root_wrapper.rb +85 -0
- data/lib/waves_lib/version.rb +6 -0
- data/lib/waves_lib/wrapped_buffer.rb +26 -0
- data/lib/waves_lib/wrapper.rb +82 -0
- data/lib/waves_lib.rb +10 -0
- metadata +1264 -0
@@ -0,0 +1,987 @@
|
|
1
|
+
/**
|
2
|
+
* Supported cipher modes.
|
3
|
+
*
|
4
|
+
* @author Dave Longley
|
5
|
+
*
|
6
|
+
* Copyright (c) 2010-2014 Digital Bazaar, Inc.
|
7
|
+
*/
|
8
|
+
var forge = require('./forge');
|
9
|
+
require('./util');
|
10
|
+
|
11
|
+
forge.cipher = forge.cipher || {};
|
12
|
+
|
13
|
+
// supported cipher modes
|
14
|
+
var modes = module.exports = forge.cipher.modes = forge.cipher.modes || {};
|
15
|
+
|
16
|
+
/** Electronic codebook (ECB) (Don't use this; it's not secure) **/
|
17
|
+
|
18
|
+
modes.ecb = function(options) {
|
19
|
+
options = options || {};
|
20
|
+
this.name = 'ECB';
|
21
|
+
this.cipher = options.cipher;
|
22
|
+
this.blockSize = options.blockSize || 16;
|
23
|
+
this._ints = this.blockSize / 4;
|
24
|
+
this._inBlock = new Array(this._ints);
|
25
|
+
this._outBlock = new Array(this._ints);
|
26
|
+
};
|
27
|
+
|
28
|
+
modes.ecb.prototype.start = function(options) {};
|
29
|
+
|
30
|
+
modes.ecb.prototype.encrypt = function(input, output, finish) {
|
31
|
+
// not enough input to encrypt
|
32
|
+
if(input.length() < this.blockSize && !(finish && input.length() > 0)) {
|
33
|
+
return true;
|
34
|
+
}
|
35
|
+
|
36
|
+
// get next block
|
37
|
+
for(var i = 0; i < this._ints; ++i) {
|
38
|
+
this._inBlock[i] = input.getInt32();
|
39
|
+
}
|
40
|
+
|
41
|
+
// encrypt block
|
42
|
+
this.cipher.encrypt(this._inBlock, this._outBlock);
|
43
|
+
|
44
|
+
// write output
|
45
|
+
for(var i = 0; i < this._ints; ++i) {
|
46
|
+
output.putInt32(this._outBlock[i]);
|
47
|
+
}
|
48
|
+
};
|
49
|
+
|
50
|
+
modes.ecb.prototype.decrypt = function(input, output, finish) {
|
51
|
+
// not enough input to decrypt
|
52
|
+
if(input.length() < this.blockSize && !(finish && input.length() > 0)) {
|
53
|
+
return true;
|
54
|
+
}
|
55
|
+
|
56
|
+
// get next block
|
57
|
+
for(var i = 0; i < this._ints; ++i) {
|
58
|
+
this._inBlock[i] = input.getInt32();
|
59
|
+
}
|
60
|
+
|
61
|
+
// decrypt block
|
62
|
+
this.cipher.decrypt(this._inBlock, this._outBlock);
|
63
|
+
|
64
|
+
// write output
|
65
|
+
for(var i = 0; i < this._ints; ++i) {
|
66
|
+
output.putInt32(this._outBlock[i]);
|
67
|
+
}
|
68
|
+
};
|
69
|
+
|
70
|
+
modes.ecb.prototype.pad = function(input, options) {
|
71
|
+
// add PKCS#7 padding to block (each pad byte is the
|
72
|
+
// value of the number of pad bytes)
|
73
|
+
var padding = (input.length() === this.blockSize ?
|
74
|
+
this.blockSize : (this.blockSize - input.length()));
|
75
|
+
input.fillWithByte(padding, padding);
|
76
|
+
return true;
|
77
|
+
};
|
78
|
+
|
79
|
+
modes.ecb.prototype.unpad = function(output, options) {
|
80
|
+
// check for error: input data not a multiple of blockSize
|
81
|
+
if(options.overflow > 0) {
|
82
|
+
return false;
|
83
|
+
}
|
84
|
+
|
85
|
+
// ensure padding byte count is valid
|
86
|
+
var len = output.length();
|
87
|
+
var count = output.at(len - 1);
|
88
|
+
if(count > (this.blockSize << 2)) {
|
89
|
+
return false;
|
90
|
+
}
|
91
|
+
|
92
|
+
// trim off padding bytes
|
93
|
+
output.truncate(count);
|
94
|
+
return true;
|
95
|
+
};
|
96
|
+
|
97
|
+
/** Cipher-block Chaining (CBC) **/
|
98
|
+
|
99
|
+
modes.cbc = function(options) {
|
100
|
+
options = options || {};
|
101
|
+
this.name = 'CBC';
|
102
|
+
this.cipher = options.cipher;
|
103
|
+
this.blockSize = options.blockSize || 16;
|
104
|
+
this._ints = this.blockSize / 4;
|
105
|
+
this._inBlock = new Array(this._ints);
|
106
|
+
this._outBlock = new Array(this._ints);
|
107
|
+
};
|
108
|
+
|
109
|
+
modes.cbc.prototype.start = function(options) {
|
110
|
+
// Note: legacy support for using IV residue (has security flaws)
|
111
|
+
// if IV is null, reuse block from previous processing
|
112
|
+
if(options.iv === null) {
|
113
|
+
// must have a previous block
|
114
|
+
if(!this._prev) {
|
115
|
+
throw new Error('Invalid IV parameter.');
|
116
|
+
}
|
117
|
+
this._iv = this._prev.slice(0);
|
118
|
+
} else if(!('iv' in options)) {
|
119
|
+
throw new Error('Invalid IV parameter.');
|
120
|
+
} else {
|
121
|
+
// save IV as "previous" block
|
122
|
+
this._iv = transformIV(options.iv);
|
123
|
+
this._prev = this._iv.slice(0);
|
124
|
+
}
|
125
|
+
};
|
126
|
+
|
127
|
+
modes.cbc.prototype.encrypt = function(input, output, finish) {
|
128
|
+
// not enough input to encrypt
|
129
|
+
if(input.length() < this.blockSize && !(finish && input.length() > 0)) {
|
130
|
+
return true;
|
131
|
+
}
|
132
|
+
|
133
|
+
// get next block
|
134
|
+
// CBC XOR's IV (or previous block) with plaintext
|
135
|
+
for(var i = 0; i < this._ints; ++i) {
|
136
|
+
this._inBlock[i] = this._prev[i] ^ input.getInt32();
|
137
|
+
}
|
138
|
+
|
139
|
+
// encrypt block
|
140
|
+
this.cipher.encrypt(this._inBlock, this._outBlock);
|
141
|
+
|
142
|
+
// write output, save previous block
|
143
|
+
for(var i = 0; i < this._ints; ++i) {
|
144
|
+
output.putInt32(this._outBlock[i]);
|
145
|
+
}
|
146
|
+
this._prev = this._outBlock;
|
147
|
+
};
|
148
|
+
|
149
|
+
modes.cbc.prototype.decrypt = function(input, output, finish) {
|
150
|
+
// not enough input to decrypt
|
151
|
+
if(input.length() < this.blockSize && !(finish && input.length() > 0)) {
|
152
|
+
return true;
|
153
|
+
}
|
154
|
+
|
155
|
+
// get next block
|
156
|
+
for(var i = 0; i < this._ints; ++i) {
|
157
|
+
this._inBlock[i] = input.getInt32();
|
158
|
+
}
|
159
|
+
|
160
|
+
// decrypt block
|
161
|
+
this.cipher.decrypt(this._inBlock, this._outBlock);
|
162
|
+
|
163
|
+
// write output, save previous ciphered block
|
164
|
+
// CBC XOR's IV (or previous block) with ciphertext
|
165
|
+
for(var i = 0; i < this._ints; ++i) {
|
166
|
+
output.putInt32(this._prev[i] ^ this._outBlock[i]);
|
167
|
+
}
|
168
|
+
this._prev = this._inBlock.slice(0);
|
169
|
+
};
|
170
|
+
|
171
|
+
modes.cbc.prototype.pad = function(input, options) {
|
172
|
+
// add PKCS#7 padding to block (each pad byte is the
|
173
|
+
// value of the number of pad bytes)
|
174
|
+
var padding = (input.length() === this.blockSize ?
|
175
|
+
this.blockSize : (this.blockSize - input.length()));
|
176
|
+
input.fillWithByte(padding, padding);
|
177
|
+
return true;
|
178
|
+
};
|
179
|
+
|
180
|
+
modes.cbc.prototype.unpad = function(output, options) {
|
181
|
+
// check for error: input data not a multiple of blockSize
|
182
|
+
if(options.overflow > 0) {
|
183
|
+
return false;
|
184
|
+
}
|
185
|
+
|
186
|
+
// ensure padding byte count is valid
|
187
|
+
var len = output.length();
|
188
|
+
var count = output.at(len - 1);
|
189
|
+
if(count > (this.blockSize << 2)) {
|
190
|
+
return false;
|
191
|
+
}
|
192
|
+
|
193
|
+
// trim off padding bytes
|
194
|
+
output.truncate(count);
|
195
|
+
return true;
|
196
|
+
};
|
197
|
+
|
198
|
+
/** Cipher feedback (CFB) **/
|
199
|
+
|
200
|
+
modes.cfb = function(options) {
|
201
|
+
options = options || {};
|
202
|
+
this.name = 'CFB';
|
203
|
+
this.cipher = options.cipher;
|
204
|
+
this.blockSize = options.blockSize || 16;
|
205
|
+
this._ints = this.blockSize / 4;
|
206
|
+
this._inBlock = null;
|
207
|
+
this._outBlock = new Array(this._ints);
|
208
|
+
this._partialBlock = new Array(this._ints);
|
209
|
+
this._partialOutput = forge.util.createBuffer();
|
210
|
+
this._partialBytes = 0;
|
211
|
+
};
|
212
|
+
|
213
|
+
modes.cfb.prototype.start = function(options) {
|
214
|
+
if(!('iv' in options)) {
|
215
|
+
throw new Error('Invalid IV parameter.');
|
216
|
+
}
|
217
|
+
// use IV as first input
|
218
|
+
this._iv = transformIV(options.iv);
|
219
|
+
this._inBlock = this._iv.slice(0);
|
220
|
+
this._partialBytes = 0;
|
221
|
+
};
|
222
|
+
|
223
|
+
modes.cfb.prototype.encrypt = function(input, output, finish) {
|
224
|
+
// not enough input to encrypt
|
225
|
+
var inputLength = input.length();
|
226
|
+
if(inputLength === 0) {
|
227
|
+
return true;
|
228
|
+
}
|
229
|
+
|
230
|
+
// encrypt block
|
231
|
+
this.cipher.encrypt(this._inBlock, this._outBlock);
|
232
|
+
|
233
|
+
// handle full block
|
234
|
+
if(this._partialBytes === 0 && inputLength >= this.blockSize) {
|
235
|
+
// XOR input with output, write input as output
|
236
|
+
for(var i = 0; i < this._ints; ++i) {
|
237
|
+
this._inBlock[i] = input.getInt32() ^ this._outBlock[i];
|
238
|
+
output.putInt32(this._inBlock[i]);
|
239
|
+
}
|
240
|
+
return;
|
241
|
+
}
|
242
|
+
|
243
|
+
// handle partial block
|
244
|
+
var partialBytes = (this.blockSize - inputLength) % this.blockSize;
|
245
|
+
if(partialBytes > 0) {
|
246
|
+
partialBytes = this.blockSize - partialBytes;
|
247
|
+
}
|
248
|
+
|
249
|
+
// XOR input with output, write input as partial output
|
250
|
+
this._partialOutput.clear();
|
251
|
+
for(var i = 0; i < this._ints; ++i) {
|
252
|
+
this._partialBlock[i] = input.getInt32() ^ this._outBlock[i];
|
253
|
+
this._partialOutput.putInt32(this._partialBlock[i]);
|
254
|
+
}
|
255
|
+
|
256
|
+
if(partialBytes > 0) {
|
257
|
+
// block still incomplete, restore input buffer
|
258
|
+
input.read -= this.blockSize;
|
259
|
+
} else {
|
260
|
+
// block complete, update input block
|
261
|
+
for(var i = 0; i < this._ints; ++i) {
|
262
|
+
this._inBlock[i] = this._partialBlock[i];
|
263
|
+
}
|
264
|
+
}
|
265
|
+
|
266
|
+
// skip any previous partial bytes
|
267
|
+
if(this._partialBytes > 0) {
|
268
|
+
this._partialOutput.getBytes(this._partialBytes);
|
269
|
+
}
|
270
|
+
|
271
|
+
if(partialBytes > 0 && !finish) {
|
272
|
+
output.putBytes(this._partialOutput.getBytes(
|
273
|
+
partialBytes - this._partialBytes));
|
274
|
+
this._partialBytes = partialBytes;
|
275
|
+
return true;
|
276
|
+
}
|
277
|
+
|
278
|
+
output.putBytes(this._partialOutput.getBytes(
|
279
|
+
inputLength - this._partialBytes));
|
280
|
+
this._partialBytes = 0;
|
281
|
+
};
|
282
|
+
|
283
|
+
modes.cfb.prototype.decrypt = function(input, output, finish) {
|
284
|
+
// not enough input to decrypt
|
285
|
+
var inputLength = input.length();
|
286
|
+
if(inputLength === 0) {
|
287
|
+
return true;
|
288
|
+
}
|
289
|
+
|
290
|
+
// encrypt block (CFB always uses encryption mode)
|
291
|
+
this.cipher.encrypt(this._inBlock, this._outBlock);
|
292
|
+
|
293
|
+
// handle full block
|
294
|
+
if(this._partialBytes === 0 && inputLength >= this.blockSize) {
|
295
|
+
// XOR input with output, write input as output
|
296
|
+
for(var i = 0; i < this._ints; ++i) {
|
297
|
+
this._inBlock[i] = input.getInt32();
|
298
|
+
output.putInt32(this._inBlock[i] ^ this._outBlock[i]);
|
299
|
+
}
|
300
|
+
return;
|
301
|
+
}
|
302
|
+
|
303
|
+
// handle partial block
|
304
|
+
var partialBytes = (this.blockSize - inputLength) % this.blockSize;
|
305
|
+
if(partialBytes > 0) {
|
306
|
+
partialBytes = this.blockSize - partialBytes;
|
307
|
+
}
|
308
|
+
|
309
|
+
// XOR input with output, write input as partial output
|
310
|
+
this._partialOutput.clear();
|
311
|
+
for(var i = 0; i < this._ints; ++i) {
|
312
|
+
this._partialBlock[i] = input.getInt32();
|
313
|
+
this._partialOutput.putInt32(this._partialBlock[i] ^ this._outBlock[i]);
|
314
|
+
}
|
315
|
+
|
316
|
+
if(partialBytes > 0) {
|
317
|
+
// block still incomplete, restore input buffer
|
318
|
+
input.read -= this.blockSize;
|
319
|
+
} else {
|
320
|
+
// block complete, update input block
|
321
|
+
for(var i = 0; i < this._ints; ++i) {
|
322
|
+
this._inBlock[i] = this._partialBlock[i];
|
323
|
+
}
|
324
|
+
}
|
325
|
+
|
326
|
+
// skip any previous partial bytes
|
327
|
+
if(this._partialBytes > 0) {
|
328
|
+
this._partialOutput.getBytes(this._partialBytes);
|
329
|
+
}
|
330
|
+
|
331
|
+
if(partialBytes > 0 && !finish) {
|
332
|
+
output.putBytes(this._partialOutput.getBytes(
|
333
|
+
partialBytes - this._partialBytes));
|
334
|
+
this._partialBytes = partialBytes;
|
335
|
+
return true;
|
336
|
+
}
|
337
|
+
|
338
|
+
output.putBytes(this._partialOutput.getBytes(
|
339
|
+
inputLength - this._partialBytes));
|
340
|
+
this._partialBytes = 0;
|
341
|
+
};
|
342
|
+
|
343
|
+
/** Output feedback (OFB) **/
|
344
|
+
|
345
|
+
modes.ofb = function(options) {
|
346
|
+
options = options || {};
|
347
|
+
this.name = 'OFB';
|
348
|
+
this.cipher = options.cipher;
|
349
|
+
this.blockSize = options.blockSize || 16;
|
350
|
+
this._ints = this.blockSize / 4;
|
351
|
+
this._inBlock = null;
|
352
|
+
this._outBlock = new Array(this._ints);
|
353
|
+
this._partialOutput = forge.util.createBuffer();
|
354
|
+
this._partialBytes = 0;
|
355
|
+
};
|
356
|
+
|
357
|
+
modes.ofb.prototype.start = function(options) {
|
358
|
+
if(!('iv' in options)) {
|
359
|
+
throw new Error('Invalid IV parameter.');
|
360
|
+
}
|
361
|
+
// use IV as first input
|
362
|
+
this._iv = transformIV(options.iv);
|
363
|
+
this._inBlock = this._iv.slice(0);
|
364
|
+
this._partialBytes = 0;
|
365
|
+
};
|
366
|
+
|
367
|
+
modes.ofb.prototype.encrypt = function(input, output, finish) {
|
368
|
+
// not enough input to encrypt
|
369
|
+
var inputLength = input.length();
|
370
|
+
if(input.length() === 0) {
|
371
|
+
return true;
|
372
|
+
}
|
373
|
+
|
374
|
+
// encrypt block (OFB always uses encryption mode)
|
375
|
+
this.cipher.encrypt(this._inBlock, this._outBlock);
|
376
|
+
|
377
|
+
// handle full block
|
378
|
+
if(this._partialBytes === 0 && inputLength >= this.blockSize) {
|
379
|
+
// XOR input with output and update next input
|
380
|
+
for(var i = 0; i < this._ints; ++i) {
|
381
|
+
output.putInt32(input.getInt32() ^ this._outBlock[i]);
|
382
|
+
this._inBlock[i] = this._outBlock[i];
|
383
|
+
}
|
384
|
+
return;
|
385
|
+
}
|
386
|
+
|
387
|
+
// handle partial block
|
388
|
+
var partialBytes = (this.blockSize - inputLength) % this.blockSize;
|
389
|
+
if(partialBytes > 0) {
|
390
|
+
partialBytes = this.blockSize - partialBytes;
|
391
|
+
}
|
392
|
+
|
393
|
+
// XOR input with output
|
394
|
+
this._partialOutput.clear();
|
395
|
+
for(var i = 0; i < this._ints; ++i) {
|
396
|
+
this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]);
|
397
|
+
}
|
398
|
+
|
399
|
+
if(partialBytes > 0) {
|
400
|
+
// block still incomplete, restore input buffer
|
401
|
+
input.read -= this.blockSize;
|
402
|
+
} else {
|
403
|
+
// block complete, update input block
|
404
|
+
for(var i = 0; i < this._ints; ++i) {
|
405
|
+
this._inBlock[i] = this._outBlock[i];
|
406
|
+
}
|
407
|
+
}
|
408
|
+
|
409
|
+
// skip any previous partial bytes
|
410
|
+
if(this._partialBytes > 0) {
|
411
|
+
this._partialOutput.getBytes(this._partialBytes);
|
412
|
+
}
|
413
|
+
|
414
|
+
if(partialBytes > 0 && !finish) {
|
415
|
+
output.putBytes(this._partialOutput.getBytes(
|
416
|
+
partialBytes - this._partialBytes));
|
417
|
+
this._partialBytes = partialBytes;
|
418
|
+
return true;
|
419
|
+
}
|
420
|
+
|
421
|
+
output.putBytes(this._partialOutput.getBytes(
|
422
|
+
inputLength - this._partialBytes));
|
423
|
+
this._partialBytes = 0;
|
424
|
+
};
|
425
|
+
|
426
|
+
modes.ofb.prototype.decrypt = modes.ofb.prototype.encrypt;
|
427
|
+
|
428
|
+
/** Counter (CTR) **/
|
429
|
+
|
430
|
+
modes.ctr = function(options) {
|
431
|
+
options = options || {};
|
432
|
+
this.name = 'CTR';
|
433
|
+
this.cipher = options.cipher;
|
434
|
+
this.blockSize = options.blockSize || 16;
|
435
|
+
this._ints = this.blockSize / 4;
|
436
|
+
this._inBlock = null;
|
437
|
+
this._outBlock = new Array(this._ints);
|
438
|
+
this._partialOutput = forge.util.createBuffer();
|
439
|
+
this._partialBytes = 0;
|
440
|
+
};
|
441
|
+
|
442
|
+
modes.ctr.prototype.start = function(options) {
|
443
|
+
if(!('iv' in options)) {
|
444
|
+
throw new Error('Invalid IV parameter.');
|
445
|
+
}
|
446
|
+
// use IV as first input
|
447
|
+
this._iv = transformIV(options.iv);
|
448
|
+
this._inBlock = this._iv.slice(0);
|
449
|
+
this._partialBytes = 0;
|
450
|
+
};
|
451
|
+
|
452
|
+
modes.ctr.prototype.encrypt = function(input, output, finish) {
|
453
|
+
// not enough input to encrypt
|
454
|
+
var inputLength = input.length();
|
455
|
+
if(inputLength === 0) {
|
456
|
+
return true;
|
457
|
+
}
|
458
|
+
|
459
|
+
// encrypt block (CTR always uses encryption mode)
|
460
|
+
this.cipher.encrypt(this._inBlock, this._outBlock);
|
461
|
+
|
462
|
+
// handle full block
|
463
|
+
if(this._partialBytes === 0 && inputLength >= this.blockSize) {
|
464
|
+
// XOR input with output
|
465
|
+
for(var i = 0; i < this._ints; ++i) {
|
466
|
+
output.putInt32(input.getInt32() ^ this._outBlock[i]);
|
467
|
+
}
|
468
|
+
} else {
|
469
|
+
// handle partial block
|
470
|
+
var partialBytes = (this.blockSize - inputLength) % this.blockSize;
|
471
|
+
if(partialBytes > 0) {
|
472
|
+
partialBytes = this.blockSize - partialBytes;
|
473
|
+
}
|
474
|
+
|
475
|
+
// XOR input with output
|
476
|
+
this._partialOutput.clear();
|
477
|
+
for(var i = 0; i < this._ints; ++i) {
|
478
|
+
this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]);
|
479
|
+
}
|
480
|
+
|
481
|
+
if(partialBytes > 0) {
|
482
|
+
// block still incomplete, restore input buffer
|
483
|
+
input.read -= this.blockSize;
|
484
|
+
}
|
485
|
+
|
486
|
+
// skip any previous partial bytes
|
487
|
+
if(this._partialBytes > 0) {
|
488
|
+
this._partialOutput.getBytes(this._partialBytes);
|
489
|
+
}
|
490
|
+
|
491
|
+
if(partialBytes > 0 && !finish) {
|
492
|
+
output.putBytes(this._partialOutput.getBytes(
|
493
|
+
partialBytes - this._partialBytes));
|
494
|
+
this._partialBytes = partialBytes;
|
495
|
+
return true;
|
496
|
+
}
|
497
|
+
|
498
|
+
output.putBytes(this._partialOutput.getBytes(
|
499
|
+
inputLength - this._partialBytes));
|
500
|
+
this._partialBytes = 0;
|
501
|
+
}
|
502
|
+
|
503
|
+
// block complete, increment counter (input block)
|
504
|
+
inc32(this._inBlock);
|
505
|
+
};
|
506
|
+
|
507
|
+
modes.ctr.prototype.decrypt = modes.ctr.prototype.encrypt;
|
508
|
+
|
509
|
+
/** Galois/Counter Mode (GCM) **/
|
510
|
+
|
511
|
+
modes.gcm = function(options) {
|
512
|
+
options = options || {};
|
513
|
+
this.name = 'GCM';
|
514
|
+
this.cipher = options.cipher;
|
515
|
+
this.blockSize = options.blockSize || 16;
|
516
|
+
this._ints = this.blockSize / 4;
|
517
|
+
this._inBlock = new Array(this._ints);
|
518
|
+
this._outBlock = new Array(this._ints);
|
519
|
+
this._partialOutput = forge.util.createBuffer();
|
520
|
+
this._partialBytes = 0;
|
521
|
+
|
522
|
+
// R is actually this value concatenated with 120 more zero bits, but
|
523
|
+
// we only XOR against R so the other zeros have no effect -- we just
|
524
|
+
// apply this value to the first integer in a block
|
525
|
+
this._R = 0xE1000000;
|
526
|
+
};
|
527
|
+
|
528
|
+
modes.gcm.prototype.start = function(options) {
|
529
|
+
if(!('iv' in options)) {
|
530
|
+
throw new Error('Invalid IV parameter.');
|
531
|
+
}
|
532
|
+
// ensure IV is a byte buffer
|
533
|
+
var iv = forge.util.createBuffer(options.iv);
|
534
|
+
|
535
|
+
// no ciphered data processed yet
|
536
|
+
this._cipherLength = 0;
|
537
|
+
|
538
|
+
// default additional data is none
|
539
|
+
var additionalData;
|
540
|
+
if('additionalData' in options) {
|
541
|
+
additionalData = forge.util.createBuffer(options.additionalData);
|
542
|
+
} else {
|
543
|
+
additionalData = forge.util.createBuffer();
|
544
|
+
}
|
545
|
+
|
546
|
+
// default tag length is 128 bits
|
547
|
+
if('tagLength' in options) {
|
548
|
+
this._tagLength = options.tagLength;
|
549
|
+
} else {
|
550
|
+
this._tagLength = 128;
|
551
|
+
}
|
552
|
+
|
553
|
+
// if tag is given, ensure tag matches tag length
|
554
|
+
this._tag = null;
|
555
|
+
if(options.decrypt) {
|
556
|
+
// save tag to check later
|
557
|
+
this._tag = forge.util.createBuffer(options.tag).getBytes();
|
558
|
+
if(this._tag.length !== (this._tagLength / 8)) {
|
559
|
+
throw new Error('Authentication tag does not match tag length.');
|
560
|
+
}
|
561
|
+
}
|
562
|
+
|
563
|
+
// create tmp storage for hash calculation
|
564
|
+
this._hashBlock = new Array(this._ints);
|
565
|
+
|
566
|
+
// no tag generated yet
|
567
|
+
this.tag = null;
|
568
|
+
|
569
|
+
// generate hash subkey
|
570
|
+
// (apply block cipher to "zero" block)
|
571
|
+
this._hashSubkey = new Array(this._ints);
|
572
|
+
this.cipher.encrypt([0, 0, 0, 0], this._hashSubkey);
|
573
|
+
|
574
|
+
// generate table M
|
575
|
+
// use 4-bit tables (32 component decomposition of a 16 byte value)
|
576
|
+
// 8-bit tables take more space and are known to have security
|
577
|
+
// vulnerabilities (in native implementations)
|
578
|
+
this.componentBits = 4;
|
579
|
+
this._m = this.generateHashTable(this._hashSubkey, this.componentBits);
|
580
|
+
|
581
|
+
// Note: support IV length different from 96 bits? (only supporting
|
582
|
+
// 96 bits is recommended by NIST SP-800-38D)
|
583
|
+
// generate J_0
|
584
|
+
var ivLength = iv.length();
|
585
|
+
if(ivLength === 12) {
|
586
|
+
// 96-bit IV
|
587
|
+
this._j0 = [iv.getInt32(), iv.getInt32(), iv.getInt32(), 1];
|
588
|
+
} else {
|
589
|
+
// IV is NOT 96-bits
|
590
|
+
this._j0 = [0, 0, 0, 0];
|
591
|
+
while(iv.length() > 0) {
|
592
|
+
this._j0 = this.ghash(
|
593
|
+
this._hashSubkey, this._j0,
|
594
|
+
[iv.getInt32(), iv.getInt32(), iv.getInt32(), iv.getInt32()]);
|
595
|
+
}
|
596
|
+
this._j0 = this.ghash(
|
597
|
+
this._hashSubkey, this._j0, [0, 0].concat(from64To32(ivLength * 8)));
|
598
|
+
}
|
599
|
+
|
600
|
+
// generate ICB (initial counter block)
|
601
|
+
this._inBlock = this._j0.slice(0);
|
602
|
+
inc32(this._inBlock);
|
603
|
+
this._partialBytes = 0;
|
604
|
+
|
605
|
+
// consume authentication data
|
606
|
+
additionalData = forge.util.createBuffer(additionalData);
|
607
|
+
// save additional data length as a BE 64-bit number
|
608
|
+
this._aDataLength = from64To32(additionalData.length() * 8);
|
609
|
+
// pad additional data to 128 bit (16 byte) block size
|
610
|
+
var overflow = additionalData.length() % this.blockSize;
|
611
|
+
if(overflow) {
|
612
|
+
additionalData.fillWithByte(0, this.blockSize - overflow);
|
613
|
+
}
|
614
|
+
this._s = [0, 0, 0, 0];
|
615
|
+
while(additionalData.length() > 0) {
|
616
|
+
this._s = this.ghash(this._hashSubkey, this._s, [
|
617
|
+
additionalData.getInt32(),
|
618
|
+
additionalData.getInt32(),
|
619
|
+
additionalData.getInt32(),
|
620
|
+
additionalData.getInt32()
|
621
|
+
]);
|
622
|
+
}
|
623
|
+
};
|
624
|
+
|
625
|
+
modes.gcm.prototype.encrypt = function(input, output, finish) {
|
626
|
+
// not enough input to encrypt
|
627
|
+
var inputLength = input.length();
|
628
|
+
if(inputLength === 0) {
|
629
|
+
return true;
|
630
|
+
}
|
631
|
+
|
632
|
+
// encrypt block
|
633
|
+
this.cipher.encrypt(this._inBlock, this._outBlock);
|
634
|
+
|
635
|
+
// handle full block
|
636
|
+
if(this._partialBytes === 0 && inputLength >= this.blockSize) {
|
637
|
+
// XOR input with output
|
638
|
+
for(var i = 0; i < this._ints; ++i) {
|
639
|
+
output.putInt32(this._outBlock[i] ^= input.getInt32());
|
640
|
+
}
|
641
|
+
this._cipherLength += this.blockSize;
|
642
|
+
} else {
|
643
|
+
// handle partial block
|
644
|
+
var partialBytes = (this.blockSize - inputLength) % this.blockSize;
|
645
|
+
if(partialBytes > 0) {
|
646
|
+
partialBytes = this.blockSize - partialBytes;
|
647
|
+
}
|
648
|
+
|
649
|
+
// XOR input with output
|
650
|
+
this._partialOutput.clear();
|
651
|
+
for(var i = 0; i < this._ints; ++i) {
|
652
|
+
this._partialOutput.putInt32(input.getInt32() ^ this._outBlock[i]);
|
653
|
+
}
|
654
|
+
|
655
|
+
if(partialBytes <= 0 || finish) {
|
656
|
+
// handle overflow prior to hashing
|
657
|
+
if(finish) {
|
658
|
+
// get block overflow
|
659
|
+
var overflow = inputLength % this.blockSize;
|
660
|
+
this._cipherLength += overflow;
|
661
|
+
// truncate for hash function
|
662
|
+
this._partialOutput.truncate(this.blockSize - overflow);
|
663
|
+
} else {
|
664
|
+
this._cipherLength += this.blockSize;
|
665
|
+
}
|
666
|
+
|
667
|
+
// get output block for hashing
|
668
|
+
for(var i = 0; i < this._ints; ++i) {
|
669
|
+
this._outBlock[i] = this._partialOutput.getInt32();
|
670
|
+
}
|
671
|
+
this._partialOutput.read -= this.blockSize;
|
672
|
+
}
|
673
|
+
|
674
|
+
// skip any previous partial bytes
|
675
|
+
if(this._partialBytes > 0) {
|
676
|
+
this._partialOutput.getBytes(this._partialBytes);
|
677
|
+
}
|
678
|
+
|
679
|
+
if(partialBytes > 0 && !finish) {
|
680
|
+
// block still incomplete, restore input buffer, get partial output,
|
681
|
+
// and return early
|
682
|
+
input.read -= this.blockSize;
|
683
|
+
output.putBytes(this._partialOutput.getBytes(
|
684
|
+
partialBytes - this._partialBytes));
|
685
|
+
this._partialBytes = partialBytes;
|
686
|
+
return true;
|
687
|
+
}
|
688
|
+
|
689
|
+
output.putBytes(this._partialOutput.getBytes(
|
690
|
+
inputLength - this._partialBytes));
|
691
|
+
this._partialBytes = 0;
|
692
|
+
}
|
693
|
+
|
694
|
+
// update hash block S
|
695
|
+
this._s = this.ghash(this._hashSubkey, this._s, this._outBlock);
|
696
|
+
|
697
|
+
// increment counter (input block)
|
698
|
+
inc32(this._inBlock);
|
699
|
+
};
|
700
|
+
|
701
|
+
modes.gcm.prototype.decrypt = function(input, output, finish) {
|
702
|
+
// not enough input to decrypt
|
703
|
+
var inputLength = input.length();
|
704
|
+
if(inputLength < this.blockSize && !(finish && inputLength > 0)) {
|
705
|
+
return true;
|
706
|
+
}
|
707
|
+
|
708
|
+
// encrypt block (GCM always uses encryption mode)
|
709
|
+
this.cipher.encrypt(this._inBlock, this._outBlock);
|
710
|
+
|
711
|
+
// increment counter (input block)
|
712
|
+
inc32(this._inBlock);
|
713
|
+
|
714
|
+
// update hash block S
|
715
|
+
this._hashBlock[0] = input.getInt32();
|
716
|
+
this._hashBlock[1] = input.getInt32();
|
717
|
+
this._hashBlock[2] = input.getInt32();
|
718
|
+
this._hashBlock[3] = input.getInt32();
|
719
|
+
this._s = this.ghash(this._hashSubkey, this._s, this._hashBlock);
|
720
|
+
|
721
|
+
// XOR hash input with output
|
722
|
+
for(var i = 0; i < this._ints; ++i) {
|
723
|
+
output.putInt32(this._outBlock[i] ^ this._hashBlock[i]);
|
724
|
+
}
|
725
|
+
|
726
|
+
// increment cipher data length
|
727
|
+
if(inputLength < this.blockSize) {
|
728
|
+
this._cipherLength += inputLength % this.blockSize;
|
729
|
+
} else {
|
730
|
+
this._cipherLength += this.blockSize;
|
731
|
+
}
|
732
|
+
};
|
733
|
+
|
734
|
+
modes.gcm.prototype.afterFinish = function(output, options) {
|
735
|
+
var rval = true;
|
736
|
+
|
737
|
+
// handle overflow
|
738
|
+
if(options.decrypt && options.overflow) {
|
739
|
+
output.truncate(this.blockSize - options.overflow);
|
740
|
+
}
|
741
|
+
|
742
|
+
// handle authentication tag
|
743
|
+
this.tag = forge.util.createBuffer();
|
744
|
+
|
745
|
+
// concatenate additional data length with cipher length
|
746
|
+
var lengths = this._aDataLength.concat(from64To32(this._cipherLength * 8));
|
747
|
+
|
748
|
+
// include lengths in hash
|
749
|
+
this._s = this.ghash(this._hashSubkey, this._s, lengths);
|
750
|
+
|
751
|
+
// do GCTR(J_0, S)
|
752
|
+
var tag = [];
|
753
|
+
this.cipher.encrypt(this._j0, tag);
|
754
|
+
for(var i = 0; i < this._ints; ++i) {
|
755
|
+
this.tag.putInt32(this._s[i] ^ tag[i]);
|
756
|
+
}
|
757
|
+
|
758
|
+
// trim tag to length
|
759
|
+
this.tag.truncate(this.tag.length() % (this._tagLength / 8));
|
760
|
+
|
761
|
+
// check authentication tag
|
762
|
+
if(options.decrypt && this.tag.bytes() !== this._tag) {
|
763
|
+
rval = false;
|
764
|
+
}
|
765
|
+
|
766
|
+
return rval;
|
767
|
+
};
|
768
|
+
|
769
|
+
/**
|
770
|
+
* See NIST SP-800-38D 6.3 (Algorithm 1). This function performs Galois
|
771
|
+
* field multiplication. The field, GF(2^128), is defined by the polynomial:
|
772
|
+
*
|
773
|
+
* x^128 + x^7 + x^2 + x + 1
|
774
|
+
*
|
775
|
+
* Which is represented in little-endian binary form as: 11100001 (0xe1). When
|
776
|
+
* the value of a coefficient is 1, a bit is set. The value R, is the
|
777
|
+
* concatenation of this value and 120 zero bits, yielding a 128-bit value
|
778
|
+
* which matches the block size.
|
779
|
+
*
|
780
|
+
* This function will multiply two elements (vectors of bytes), X and Y, in
|
781
|
+
* the field GF(2^128). The result is initialized to zero. For each bit of
|
782
|
+
* X (out of 128), x_i, if x_i is set, then the result is multiplied (XOR'd)
|
783
|
+
* by the current value of Y. For each bit, the value of Y will be raised by
|
784
|
+
* a power of x (multiplied by the polynomial x). This can be achieved by
|
785
|
+
* shifting Y once to the right. If the current value of Y, prior to being
|
786
|
+
* multiplied by x, has 0 as its LSB, then it is a 127th degree polynomial.
|
787
|
+
* Otherwise, we must divide by R after shifting to find the remainder.
|
788
|
+
*
|
789
|
+
* @param x the first block to multiply by the second.
|
790
|
+
* @param y the second block to multiply by the first.
|
791
|
+
*
|
792
|
+
* @return the block result of the multiplication.
|
793
|
+
*/
|
794
|
+
modes.gcm.prototype.multiply = function(x, y) {
|
795
|
+
var z_i = [0, 0, 0, 0];
|
796
|
+
var v_i = y.slice(0);
|
797
|
+
|
798
|
+
// calculate Z_128 (block has 128 bits)
|
799
|
+
for(var i = 0; i < 128; ++i) {
|
800
|
+
// if x_i is 0, Z_{i+1} = Z_i (unchanged)
|
801
|
+
// else Z_{i+1} = Z_i ^ V_i
|
802
|
+
// get x_i by finding 32-bit int position, then left shift 1 by remainder
|
803
|
+
var x_i = x[(i / 32) | 0] & (1 << (31 - i % 32));
|
804
|
+
if(x_i) {
|
805
|
+
z_i[0] ^= v_i[0];
|
806
|
+
z_i[1] ^= v_i[1];
|
807
|
+
z_i[2] ^= v_i[2];
|
808
|
+
z_i[3] ^= v_i[3];
|
809
|
+
}
|
810
|
+
|
811
|
+
// if LSB(V_i) is 1, V_i = V_i >> 1
|
812
|
+
// else V_i = (V_i >> 1) ^ R
|
813
|
+
this.pow(v_i, v_i);
|
814
|
+
}
|
815
|
+
|
816
|
+
return z_i;
|
817
|
+
};
|
818
|
+
|
819
|
+
modes.gcm.prototype.pow = function(x, out) {
|
820
|
+
// if LSB(x) is 1, x = x >>> 1
|
821
|
+
// else x = (x >>> 1) ^ R
|
822
|
+
var lsb = x[3] & 1;
|
823
|
+
|
824
|
+
// always do x >>> 1:
|
825
|
+
// starting with the rightmost integer, shift each integer to the right
|
826
|
+
// one bit, pulling in the bit from the integer to the left as its top
|
827
|
+
// most bit (do this for the last 3 integers)
|
828
|
+
for(var i = 3; i > 0; --i) {
|
829
|
+
out[i] = (x[i] >>> 1) | ((x[i - 1] & 1) << 31);
|
830
|
+
}
|
831
|
+
// shift the first integer normally
|
832
|
+
out[0] = x[0] >>> 1;
|
833
|
+
|
834
|
+
// if lsb was not set, then polynomial had a degree of 127 and doesn't
|
835
|
+
// need to divided; otherwise, XOR with R to find the remainder; we only
|
836
|
+
// need to XOR the first integer since R technically ends w/120 zero bits
|
837
|
+
if(lsb) {
|
838
|
+
out[0] ^= this._R;
|
839
|
+
}
|
840
|
+
};
|
841
|
+
|
842
|
+
modes.gcm.prototype.tableMultiply = function(x) {
|
843
|
+
// assumes 4-bit tables are used
|
844
|
+
var z = [0, 0, 0, 0];
|
845
|
+
for(var i = 0; i < 32; ++i) {
|
846
|
+
var idx = (i / 8) | 0;
|
847
|
+
var x_i = (x[idx] >>> ((7 - (i % 8)) * 4)) & 0xF;
|
848
|
+
var ah = this._m[i][x_i];
|
849
|
+
z[0] ^= ah[0];
|
850
|
+
z[1] ^= ah[1];
|
851
|
+
z[2] ^= ah[2];
|
852
|
+
z[3] ^= ah[3];
|
853
|
+
}
|
854
|
+
return z;
|
855
|
+
};
|
856
|
+
|
857
|
+
/**
|
858
|
+
* A continuing version of the GHASH algorithm that operates on a single
|
859
|
+
* block. The hash block, last hash value (Ym) and the new block to hash
|
860
|
+
* are given.
|
861
|
+
*
|
862
|
+
* @param h the hash block.
|
863
|
+
* @param y the previous value for Ym, use [0, 0, 0, 0] for a new hash.
|
864
|
+
* @param x the block to hash.
|
865
|
+
*
|
866
|
+
* @return the hashed value (Ym).
|
867
|
+
*/
|
868
|
+
modes.gcm.prototype.ghash = function(h, y, x) {
|
869
|
+
y[0] ^= x[0];
|
870
|
+
y[1] ^= x[1];
|
871
|
+
y[2] ^= x[2];
|
872
|
+
y[3] ^= x[3];
|
873
|
+
return this.tableMultiply(y);
|
874
|
+
//return this.multiply(y, h);
|
875
|
+
};
|
876
|
+
|
877
|
+
/**
|
878
|
+
* Precomputes a table for multiplying against the hash subkey. This
|
879
|
+
* mechanism provides a substantial speed increase over multiplication
|
880
|
+
* performed without a table. The table-based multiplication this table is
|
881
|
+
* for solves X * H by multiplying each component of X by H and then
|
882
|
+
* composing the results together using XOR.
|
883
|
+
*
|
884
|
+
* This function can be used to generate tables with different bit sizes
|
885
|
+
* for the components, however, this implementation assumes there are
|
886
|
+
* 32 components of X (which is a 16 byte vector), therefore each component
|
887
|
+
* takes 4-bits (so the table is constructed with bits=4).
|
888
|
+
*
|
889
|
+
* @param h the hash subkey.
|
890
|
+
* @param bits the bit size for a component.
|
891
|
+
*/
|
892
|
+
modes.gcm.prototype.generateHashTable = function(h, bits) {
|
893
|
+
// TODO: There are further optimizations that would use only the
|
894
|
+
// first table M_0 (or some variant) along with a remainder table;
|
895
|
+
// this can be explored in the future
|
896
|
+
var multiplier = 8 / bits;
|
897
|
+
var perInt = 4 * multiplier;
|
898
|
+
var size = 16 * multiplier;
|
899
|
+
var m = new Array(size);
|
900
|
+
for(var i = 0; i < size; ++i) {
|
901
|
+
var tmp = [0, 0, 0, 0];
|
902
|
+
var idx = (i / perInt) | 0;
|
903
|
+
var shft = ((perInt - 1 - (i % perInt)) * bits);
|
904
|
+
tmp[idx] = (1 << (bits - 1)) << shft;
|
905
|
+
m[i] = this.generateSubHashTable(this.multiply(tmp, h), bits);
|
906
|
+
}
|
907
|
+
return m;
|
908
|
+
};
|
909
|
+
|
910
|
+
/**
|
911
|
+
* Generates a table for multiplying against the hash subkey for one
|
912
|
+
* particular component (out of all possible component values).
|
913
|
+
*
|
914
|
+
* @param mid the pre-multiplied value for the middle key of the table.
|
915
|
+
* @param bits the bit size for a component.
|
916
|
+
*/
|
917
|
+
modes.gcm.prototype.generateSubHashTable = function(mid, bits) {
|
918
|
+
// compute the table quickly by minimizing the number of
|
919
|
+
// POW operations -- they only need to be performed for powers of 2,
|
920
|
+
// all other entries can be composed from those powers using XOR
|
921
|
+
var size = 1 << bits;
|
922
|
+
var half = size >>> 1;
|
923
|
+
var m = new Array(size);
|
924
|
+
m[half] = mid.slice(0);
|
925
|
+
var i = half >>> 1;
|
926
|
+
while(i > 0) {
|
927
|
+
// raise m0[2 * i] and store in m0[i]
|
928
|
+
this.pow(m[2 * i], m[i] = []);
|
929
|
+
i >>= 1;
|
930
|
+
}
|
931
|
+
i = 2;
|
932
|
+
while(i < half) {
|
933
|
+
for(var j = 1; j < i; ++j) {
|
934
|
+
var m_i = m[i];
|
935
|
+
var m_j = m[j];
|
936
|
+
m[i + j] = [
|
937
|
+
m_i[0] ^ m_j[0],
|
938
|
+
m_i[1] ^ m_j[1],
|
939
|
+
m_i[2] ^ m_j[2],
|
940
|
+
m_i[3] ^ m_j[3]
|
941
|
+
];
|
942
|
+
}
|
943
|
+
i *= 2;
|
944
|
+
}
|
945
|
+
m[0] = [0, 0, 0, 0];
|
946
|
+
/* Note: We could avoid storing these by doing composition during multiply
|
947
|
+
calculate top half using composition by speed is preferred. */
|
948
|
+
for(i = half + 1; i < size; ++i) {
|
949
|
+
var c = m[i ^ half];
|
950
|
+
m[i] = [mid[0] ^ c[0], mid[1] ^ c[1], mid[2] ^ c[2], mid[3] ^ c[3]];
|
951
|
+
}
|
952
|
+
return m;
|
953
|
+
};
|
954
|
+
|
955
|
+
/** Utility functions */
|
956
|
+
|
957
|
+
function transformIV(iv) {
|
958
|
+
if(typeof iv === 'string') {
|
959
|
+
// convert iv string into byte buffer
|
960
|
+
iv = forge.util.createBuffer(iv);
|
961
|
+
}
|
962
|
+
|
963
|
+
if(forge.util.isArray(iv) && iv.length > 4) {
|
964
|
+
// convert iv byte array into byte buffer
|
965
|
+
var tmp = iv;
|
966
|
+
iv = forge.util.createBuffer();
|
967
|
+
for(var i = 0; i < tmp.length; ++i) {
|
968
|
+
iv.putByte(tmp[i]);
|
969
|
+
}
|
970
|
+
}
|
971
|
+
if(!forge.util.isArray(iv)) {
|
972
|
+
// convert iv byte buffer into 32-bit integer array
|
973
|
+
iv = [iv.getInt32(), iv.getInt32(), iv.getInt32(), iv.getInt32()];
|
974
|
+
}
|
975
|
+
|
976
|
+
return iv;
|
977
|
+
}
|
978
|
+
|
979
|
+
function inc32(block) {
|
980
|
+
// increment last 32 bits of block only
|
981
|
+
block[block.length - 1] = (block[block.length - 1] + 1) & 0xFFFFFFFF;
|
982
|
+
}
|
983
|
+
|
984
|
+
function from64To32(num) {
|
985
|
+
// convert 64-bit number to two BE Int32s
|
986
|
+
return [(num / 0x100000000) | 0, num & 0xFFFFFFFF];
|
987
|
+
}
|