@airgap/coinlib-core 0.13.11-beta.0 → 0.13.11-beta.1
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.
- package/package.json +6 -3
- package/actions/Action.d.ts +0 -24
- package/actions/Action.js +0 -119
- package/actions/Action.js.map +0 -1
- package/actions/LinkedAction.d.ts +0 -10
- package/actions/LinkedAction.js +0 -95
- package/actions/LinkedAction.js.map +0 -1
- package/actions/RepeatableAction.d.ts +0 -8
- package/actions/RepeatableAction.js +0 -92
- package/actions/RepeatableAction.js.map +0 -1
- package/actions/SimpleAction.d.ts +0 -7
- package/actions/SimpleAction.js +0 -80
- package/actions/SimpleAction.js.map +0 -1
- package/actions/StateMachine.d.ts +0 -9
- package/actions/StateMachine.js +0 -42
- package/actions/StateMachine.js.map +0 -1
- package/airgap-coinlib-core.min.js +0 -31685
- package/data/KeyPair.d.ts +0 -5
- package/data/KeyPair.js +0 -3
- package/data/KeyPair.js.map +0 -1
- package/data/Lazy.d.ts +0 -14
- package/data/Lazy.js +0 -83
- package/data/Lazy.js.map +0 -1
- package/data/RPCBody.d.ts +0 -7
- package/data/RPCBody.js +0 -16
- package/data/RPCBody.js.map +0 -1
- package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.d.ts +0 -230
- package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.js +0 -471
- package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.js.map +0 -1
- package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.d.ts +0 -76
- package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.js +0 -455
- package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.js.map +0 -1
- package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.d.ts +0 -27
- package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.js +0 -848
- package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.js.map +0 -1
- package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.d.ts +0 -22
- package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.js +0 -14
- package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.js.map +0 -1
- package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.d.ts +0 -29
- package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.js +0 -63
- package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.js.map +0 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.d.ts +0 -36
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.js +0 -87
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.js.map +0 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.d.ts +0 -8
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.js +0 -33
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.js.map +0 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/index.d.ts +0 -11
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/index.js +0 -5
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/index.js.map +0 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.d.ts +0 -8
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.js +0 -43
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.js.map +0 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.d.ts +0 -8
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.js +0 -37
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.js.map +0 -1
- package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.d.ts +0 -73
- package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.js +0 -552
- package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.js.map +0 -1
- package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.d.ts +0 -73
- package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.js +0 -552
- package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.js.map +0 -1
- package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.d.ts +0 -18
- package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.js +0 -29
- package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.d.ts +0 -57
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.js +0 -384
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/constants.d.ts +0 -63
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/constants.js +0 -264
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/constants.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.d.ts +0 -5
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.js +0 -82
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.d.ts +0 -4
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.js +0 -67
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.d.ts +0 -89
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.js +0 -169
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/interface.d.ts +0 -9
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/interface.js +0 -3
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/interface.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.d.ts +0 -42
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.js +0 -270
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.d.ts +0 -15
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.js +0 -80
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.d.ts +0 -12
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.js +0 -184
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.d.ts +0 -5
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.js +0 -81
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.d.ts +0 -4
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.js +0 -76
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.d.ts +0 -14
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.js +0 -150
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.d.ts +0 -17
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.js +0 -41
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.d.ts +0 -150
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.js +0 -217
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.d.ts +0 -26
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.js +0 -115
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/uint8array-consumer.d.ts +0 -9
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/uint8array-consumer.js +0 -35
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/uint8array-consumer.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.d.ts +0 -3
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.js +0 -26
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.d.ts +0 -13
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.js +0 -52
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/version.d.ts +0 -4
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/version.js +0 -9
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/version.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.d.ts +0 -34
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.js +0 -39
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.js.map +0 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.d.ts +0 -1590
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.js +0 -35
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.js.map +0 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.d.ts +0 -91
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.js +0 -127
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.js.map +0 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.d.ts +0 -145
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.js +0 -270
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.js.map +0 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.d.ts +0 -4
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.js +0 -33
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.js.map +0 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.d.ts +0 -163
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.js +0 -438
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.js.map +0 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.d.ts +0 -158
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.js +0 -254
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.js.map +0 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.d.ts +0 -24
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js +0 -126
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js.map +0 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/version.d.ts +0 -4
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/version.js +0 -9
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/version.js.map +0 -1
- package/dependencies/src/axios-0.19.0/index.d.ts +0 -152
- package/dependencies/src/axios-0.19.0/index.js +0 -1
- package/dependencies/src/axios-0.19.0/lib/adapters/http.js +0 -275
- package/dependencies/src/axios-0.19.0/lib/adapters/xhr.js +0 -174
- package/dependencies/src/axios-0.19.0/lib/axios.js +0 -53
- package/dependencies/src/axios-0.19.0/lib/cancel/Cancel.js +0 -19
- package/dependencies/src/axios-0.19.0/lib/cancel/CancelToken.js +0 -57
- package/dependencies/src/axios-0.19.0/lib/cancel/isCancel.js +0 -5
- package/dependencies/src/axios-0.19.0/lib/core/Axios.js +0 -86
- package/dependencies/src/axios-0.19.0/lib/core/InterceptorManager.js +0 -52
- package/dependencies/src/axios-0.19.0/lib/core/createError.js +0 -18
- package/dependencies/src/axios-0.19.0/lib/core/dispatchRequest.js +0 -86
- package/dependencies/src/axios-0.19.0/lib/core/enhanceError.js +0 -42
- package/dependencies/src/axios-0.19.0/lib/core/mergeConfig.js +0 -51
- package/dependencies/src/axios-0.19.0/lib/core/settle.js +0 -25
- package/dependencies/src/axios-0.19.0/lib/core/transformData.js +0 -20
- package/dependencies/src/axios-0.19.0/lib/defaults.js +0 -98
- package/dependencies/src/axios-0.19.0/lib/helpers/bind.js +0 -11
- package/dependencies/src/axios-0.19.0/lib/helpers/buildURL.js +0 -71
- package/dependencies/src/axios-0.19.0/lib/helpers/combineURLs.js +0 -14
- package/dependencies/src/axios-0.19.0/lib/helpers/cookies.js +0 -53
- package/dependencies/src/axios-0.19.0/lib/helpers/deprecatedMethod.js +0 -24
- package/dependencies/src/axios-0.19.0/lib/helpers/isAbsoluteURL.js +0 -14
- package/dependencies/src/axios-0.19.0/lib/helpers/isURLSameOrigin.js +0 -68
- package/dependencies/src/axios-0.19.0/lib/helpers/normalizeHeaderName.js +0 -12
- package/dependencies/src/axios-0.19.0/lib/helpers/parseHeaders.js +0 -53
- package/dependencies/src/axios-0.19.0/lib/helpers/spread.js +0 -27
- package/dependencies/src/axios-0.19.0/lib/utils.js +0 -334
- package/dependencies/src/axios-0.19.0/package.json +0 -85
- package/dependencies/src/base-x-3.0.7/src/index.d.ts +0 -10
- package/dependencies/src/base-x-3.0.7/src/index.js +0 -120
- package/dependencies/src/base64-js-1.3.1/index.js +0 -152
- package/dependencies/src/bech32-0.0.3/index.js +0 -139
- package/dependencies/src/bech32-1.1.3/index.js +0 -147
- package/dependencies/src/big-integer-1.6.45/BigInteger.d.ts +0 -2393
- package/dependencies/src/big-integer-1.6.45/BigInteger.js +0 -1452
- package/dependencies/src/bigi-1.4.2/lib/bigi.js +0 -1509
- package/dependencies/src/bigi-1.4.2/lib/convert.js +0 -91
- package/dependencies/src/bigi-1.4.2/lib/index.js +0 -6
- package/dependencies/src/bigi-1.4.2/package.json +0 -55
- package/dependencies/src/bignumber.js-9.0.0/bignumber.d.ts +0 -1829
- package/dependencies/src/bignumber.js-9.0.0/bignumber.js +0 -2902
- package/dependencies/src/bip32-2.0.4/src/bip32.js +0 -290
- package/dependencies/src/bip32-2.0.4/src/crypto.js +0 -26
- package/dependencies/src/bip32-2.0.4/src/index.js +0 -7
- package/dependencies/src/bip32-path-0.4.2/index.js +0 -96
- package/dependencies/src/bip39-2.5.0/index.js +0 -153
- package/dependencies/src/bip39-2.5.0/wordlists/chinese_simplified.json +0 -2050
- package/dependencies/src/bip39-2.5.0/wordlists/chinese_traditional.json +0 -2050
- package/dependencies/src/bip39-2.5.0/wordlists/english.json +0 -2050
- package/dependencies/src/bip39-2.5.0/wordlists/french.json +0 -2050
- package/dependencies/src/bip39-2.5.0/wordlists/italian.json +0 -2050
- package/dependencies/src/bip39-2.5.0/wordlists/japanese.json +0 -2050
- package/dependencies/src/bip39-2.5.0/wordlists/korean.json +0 -2050
- package/dependencies/src/bip39-2.5.0/wordlists/spanish.json +0 -2050
- package/dependencies/src/bip66-1.1.5/index.js +0 -113
- package/dependencies/src/bitcoin-ops-1.4.1/index.json +0 -120
- package/dependencies/src/bitcoin-ops-1.4.1/map.js +0 -9
- package/dependencies/src/bitcoinjs-message-2.1.1/index.js +0 -157
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/address.js +0 -109
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/block.js +0 -234
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/bufferWriter.js +0 -40
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/bufferutils.js +0 -65
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/coins.js +0 -53
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/crypto.js +0 -43
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/ecdsa.js +0 -161
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/ecpair.js +0 -155
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/ecsignature.js +0 -97
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/fastcurve.js +0 -92
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/hdnode.js +0 -363
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/index.js +0 -24
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/networks.js +0 -214
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/script.js +0 -214
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/script_number.js +0 -68
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/index.js +0 -74
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/multisig/index.js +0 -4
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/multisig/input.js +0 -71
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/multisig/output.js +0 -64
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/nulldata.js +0 -39
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/pubkey/index.js +0 -4
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/pubkey/input.js +0 -39
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/pubkey/output.js +0 -33
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/pubkeyhash/index.js +0 -4
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/pubkeyhash/input.js +0 -51
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/pubkeyhash/output.js +0 -42
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/scripthash/index.js +0 -4
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/scripthash/input.js +0 -84
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/scripthash/output.js +0 -34
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/witnesscommitment/index.js +0 -3
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/witnesscommitment/output.js +0 -42
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/witnesspubkeyhash/index.js +0 -4
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/witnesspubkeyhash/input.js +0 -44
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/witnesspubkeyhash/output.js +0 -33
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/witnessscripthash/index.js +0 -4
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/witnessscripthash/input.js +0 -63
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/templates/witnessscripthash/output.js +0 -33
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/transaction.js +0 -1125
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/transaction_builder.js +0 -892
- package/dependencies/src/bitgo-utxo-lib-5d91049fd7a988382df81c8260e244ee56d57aac/src/types.js +0 -55
- package/dependencies/src/blake2b-6268e6dd678661e0acc4359e9171b97eb1ebf8ac/index.js +0 -313
- package/dependencies/src/blake2b-wasm-193cdb71656c1a6c7f89b05d0327bb9b758d071b/blake2b.js +0 -63
- package/dependencies/src/blake2b-wasm-193cdb71656c1a6c7f89b05d0327bb9b758d071b/index.js +0 -128
- package/dependencies/src/blakejs-1.1.0/blake2b.js +0 -273
- package/dependencies/src/blakejs-1.1.0/blake2s.js +0 -190
- package/dependencies/src/blakejs-1.1.0/index.js +0 -15
- package/dependencies/src/blakejs-1.1.0/util.js +0 -81
- package/dependencies/src/bn.js-4.11.8/lib/bn.js +0 -3427
- package/dependencies/src/brorand-1.1.0/index.js +0 -65
- package/dependencies/src/bs58-4.0.1/index.js +0 -4
- package/dependencies/src/bs58check-2.1.2/base.js +0 -50
- package/dependencies/src/bs58check-2.1.2/index.js +0 -12
- package/dependencies/src/bs58grscheck-2.1.2/base.js +0 -50
- package/dependencies/src/bs58grscheck-2.1.2/index.js +0 -12
- package/dependencies/src/buffer-5.6.0/index.d.ts +0 -186
- package/dependencies/src/buffer-5.6.0/index.js +0 -1794
- package/dependencies/src/buffer-equals-1.0.4/index.js +0 -26
- package/dependencies/src/cbor-sync-1.0.4/index.d.ts +0 -11
- package/dependencies/src/cbor-sync-1.0.4/index.js +0 -632
- package/dependencies/src/cipher-base-1.0.4/index.js +0 -99
- package/dependencies/src/cosmjs/index.d.ts +0 -379
- package/dependencies/src/cosmjs/index.js +0 -1297
- package/dependencies/src/cosmjs/index.js.map +0 -1
- package/dependencies/src/create-hash-1.2.0/browser.js +0 -30
- package/dependencies/src/create-hash-1.2.0/index.js +0 -1
- package/dependencies/src/create-hash-1.2.0/md5.js +0 -5
- package/dependencies/src/create-hmac-1.1.4/browser.js +0 -68
- package/dependencies/src/create-hmac-1.1.4/index.js +0 -1
- package/dependencies/src/create-hmac-1.1.7/browser.js +0 -62
- package/dependencies/src/create-hmac-1.1.7/legacy.js +0 -46
- package/dependencies/src/cryptocompare-0.5.0/index.js +0 -138
- package/dependencies/src/cuint-0.2.2/index.js +0 -2
- package/dependencies/src/cuint-0.2.2/lib/uint32.js +0 -451
- package/dependencies/src/cuint-0.2.2/lib/uint64.js +0 -648
- package/dependencies/src/debug-3.1.0/src/browser.js +0 -195
- package/dependencies/src/debug-3.1.0/src/debug.js +0 -225
- package/dependencies/src/drbg.js-1.0.1/hash.js +0 -92
- package/dependencies/src/drbg.js-1.0.1/hmac.js +0 -71
- package/dependencies/src/drbg.js-1.0.1/index.js +0 -4
- package/dependencies/src/drbg.js-1.0.1/lib/hash-info.json +0 -27
- package/dependencies/src/drbg.js-1.0.1/lib/util.js +0 -36
- package/dependencies/src/eciesjs-0.3.9/src/index.d.ts +0 -12
- package/dependencies/src/eciesjs-0.3.9/src/index.js +0 -35
- package/dependencies/src/eciesjs-0.3.9/src/index.js.map +0 -1
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.d.ts +0 -12
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.js +0 -62
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.js.map +0 -1
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.d.ts +0 -11
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.js +0 -65
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.js.map +0 -1
- package/dependencies/src/eciesjs-0.3.9/src/keys/index.d.ts +0 -2
- package/dependencies/src/eciesjs-0.3.9/src/keys/index.js +0 -11
- package/dependencies/src/eciesjs-0.3.9/src/keys/index.js.map +0 -1
- package/dependencies/src/eciesjs-0.3.9/src/utils.d.ts +0 -6
- package/dependencies/src/eciesjs-0.3.9/src/utils.js +0 -65
- package/dependencies/src/eciesjs-0.3.9/src/utils.js.map +0 -1
- package/dependencies/src/ecurve-1.0.6/lib/curve.js +0 -77
- package/dependencies/src/ecurve-1.0.6/lib/curves.json +0 -65
- package/dependencies/src/ecurve-1.0.6/lib/index.js +0 -10
- package/dependencies/src/ecurve-1.0.6/lib/names.js +0 -21
- package/dependencies/src/ecurve-1.0.6/lib/point.js +0 -244
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/curve/base.js +0 -374
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/curve/edwards.js +0 -432
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/curve/index.js +0 -8
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/curve/mont.js +0 -178
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/curve/short.js +0 -937
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/curves.js +0 -206
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/ec/index.js +0 -241
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/ec/key.js +0 -118
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/ec/signature.js +0 -134
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/eddsa/index.js +0 -118
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/eddsa/key.js +0 -95
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/eddsa/signature.js +0 -65
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/precomputed/secp256k1.js +0 -780
- package/dependencies/src/elliptic-6.5.1/lib/elliptic/utils.js +0 -120
- package/dependencies/src/elliptic-6.5.1/lib/elliptic.js +0 -13
- package/dependencies/src/elliptic-6.5.1/package.json +0 -55
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/curve/base.js +0 -376
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/curve/edwards.js +0 -432
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/curve/index.js +0 -8
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/curve/mont.js +0 -178
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/curve/short.js +0 -937
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/curves.js +0 -206
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/ec/index.js +0 -241
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/ec/key.js +0 -118
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/ec/signature.js +0 -166
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/eddsa/index.js +0 -118
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/eddsa/key.js +0 -95
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/eddsa/signature.js +0 -65
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/precomputed/secp256k1.js +0 -780
- package/dependencies/src/elliptic-6.5.3/lib/elliptic/utils.js +0 -119
- package/dependencies/src/elliptic-6.5.3/lib/elliptic.js +0 -13
- package/dependencies/src/elliptic-6.5.3/package.json +0 -55
- package/dependencies/src/ethereum-common-0.2.1/bootstrapNodes.json +0 -92
- package/dependencies/src/ethereum-common-0.2.1/genesisState.json +0 -8895
- package/dependencies/src/ethereum-common-0.2.1/index.js +0 -4
- package/dependencies/src/ethereum-common-0.2.1/params.json +0 -245
- package/dependencies/src/ethereumjs-tx-1.3.7/index.js +0 -298
- package/dependencies/src/ethereumjs-util-5.2.0/index.js +0 -714
- package/dependencies/src/ethjs-util-0.1.4/src/index.js +0 -203
- package/dependencies/src/follow-redirects-1.5.10/http.js +0 -1
- package/dependencies/src/follow-redirects-1.5.10/https.js +0 -1
- package/dependencies/src/follow-redirects-1.5.10/index.js +0 -322
- package/dependencies/src/futoin-hkdf-1.3.3/hkdf.d.ts +0 -29
- package/dependencies/src/futoin-hkdf-1.3.3/hkdf.js +0 -174
- package/dependencies/src/groestl-hash-js-ef6a04f1c4d2f0448f0882b5f213ef7a0659baee/index.js +0 -39
- package/dependencies/src/groestl-hash-js-ef6a04f1c4d2f0448f0882b5f213ef7a0659baee/lib/groestl.js +0 -1248
- package/dependencies/src/groestl-hash-js-ef6a04f1c4d2f0448f0882b5f213ef7a0659baee/lib/helper.js +0 -253
- package/dependencies/src/groestl-hash-js-ef6a04f1c4d2f0448f0882b5f213ef7a0659baee/lib/op.js +0 -462
- package/dependencies/src/groestlcoinjs-message-2.1.0/index.js +0 -245
- package/dependencies/src/hash-base-3.0.4/index.js +0 -95
- package/dependencies/src/hash.js-1.1.7/lib/hash/common.js +0 -92
- package/dependencies/src/hash.js-1.1.7/lib/hash/hmac.js +0 -47
- package/dependencies/src/hash.js-1.1.7/lib/hash/ripemd.js +0 -146
- package/dependencies/src/hash.js-1.1.7/lib/hash/sha/1.js +0 -74
- package/dependencies/src/hash.js-1.1.7/lib/hash/sha/224.js +0 -30
- package/dependencies/src/hash.js-1.1.7/lib/hash/sha/256.js +0 -105
- package/dependencies/src/hash.js-1.1.7/lib/hash/sha/384.js +0 -35
- package/dependencies/src/hash.js-1.1.7/lib/hash/sha/512.js +0 -330
- package/dependencies/src/hash.js-1.1.7/lib/hash/sha/common.js +0 -49
- package/dependencies/src/hash.js-1.1.7/lib/hash/sha.js +0 -7
- package/dependencies/src/hash.js-1.1.7/lib/hash/utils.js +0 -278
- package/dependencies/src/hash.js-1.1.7/lib/hash.js +0 -15
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-key.d.ts +0 -15
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-key.js +0 -101
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-key.js.map +0 -1
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-wallet.d.ts +0 -3
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-wallet.js +0 -37
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-wallet.js.map +0 -1
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/index.d.ts +0 -1
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/index.js +0 -34
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/index.js.map +0 -1
- package/dependencies/src/hmac-drbg-1.0.1/lib/hmac-drbg.js +0 -113
- package/dependencies/src/idna-uts46-hx-3.4.0/idna-map.js +0 -23865
- package/dependencies/src/idna-uts46-hx-3.4.0/index.d.ts +0 -6
- package/dependencies/src/idna-uts46-hx-3.4.0/uts46.js +0 -170
- package/dependencies/src/ieee754-1.1.13/index.js +0 -84
- package/dependencies/src/inherits-2.0.4/inherits.js +0 -9
- package/dependencies/src/inherits-2.0.4/inherits_browser.js +0 -27
- package/dependencies/src/is-buffer-2.0.3/index.js +0 -11
- package/dependencies/src/is-hex-prefixed-1.0.0/src/index.js +0 -13
- package/dependencies/src/js-cuint-0.2.2/index.js +0 -2
- package/dependencies/src/js-cuint-0.2.2/lib/uint32.js +0 -451
- package/dependencies/src/js-cuint-0.2.2/lib/uint64.js +0 -648
- package/dependencies/src/keccak-1.0.2/js.js +0 -2
- package/dependencies/src/keccak-1.0.2/lib/api/index.js +0 -28
- package/dependencies/src/keccak-1.0.2/lib/api/keccak.js +0 -83
- package/dependencies/src/keccak-1.0.2/lib/api/shake.js +0 -74
- package/dependencies/src/keccak-1.0.2/lib/keccak-state.js +0 -187
- package/dependencies/src/keccak-1.0.2/lib/keccak.js +0 -69
- package/dependencies/src/md5.js-1.3.5/index.js +0 -146
- package/dependencies/src/merkle-lib-2.0.10/fastRoot.js +0 -24
- package/dependencies/src/merkle-lib-2.0.10/index.js +0 -34
- package/dependencies/src/minimalistic-assert-1.0.1/index.js +0 -11
- package/dependencies/src/minimalistic-crypto-utils-1.0.1/lib/utils.js +0 -58
- package/dependencies/src/ms-2.1.2/index.js +0 -162
- package/dependencies/src/nan-2.14.0/include_dirs.js +0 -1
- package/dependencies/src/nanoassert-1.1.0/index.js +0 -22
- package/dependencies/src/pako-2.0.3/index.js +0 -18
- package/dependencies/src/pako-2.0.3/lib/deflate.js +0 -373
- package/dependencies/src/pako-2.0.3/lib/inflate.js +0 -402
- package/dependencies/src/pako-2.0.3/lib/utils/common.js +0 -48
- package/dependencies/src/pako-2.0.3/lib/utils/strings.js +0 -187
- package/dependencies/src/pako-2.0.3/lib/zlib/adler32.js +0 -50
- package/dependencies/src/pako-2.0.3/lib/zlib/constants.js +0 -66
- package/dependencies/src/pako-2.0.3/lib/zlib/crc32.js +0 -58
- package/dependencies/src/pako-2.0.3/lib/zlib/deflate.js +0 -1849
- package/dependencies/src/pako-2.0.3/lib/zlib/gzheader.js +0 -58
- package/dependencies/src/pako-2.0.3/lib/zlib/inffast.js +0 -347
- package/dependencies/src/pako-2.0.3/lib/zlib/inflate.js +0 -1625
- package/dependencies/src/pako-2.0.3/lib/zlib/inftrees.js +0 -462
- package/dependencies/src/pako-2.0.3/lib/zlib/messages.js +0 -32
- package/dependencies/src/pako-2.0.3/lib/zlib/trees.js +0 -1192
- package/dependencies/src/pako-2.0.3/lib/zlib/zstream.js +0 -47
- package/dependencies/src/pbkdf2-3.0.17/bench/index.js +0 -35
- package/dependencies/src/pbkdf2-3.0.17/bench/old.js +0 -47
- package/dependencies/src/pbkdf2-3.0.17/browser.js +0 -2
- package/dependencies/src/pbkdf2-3.0.17/index.js +0 -31
- package/dependencies/src/pbkdf2-3.0.17/lib/async.js +0 -100
- package/dependencies/src/pbkdf2-3.0.17/lib/default-encoding.js +0 -10
- package/dependencies/src/pbkdf2-3.0.17/lib/precondition.js +0 -28
- package/dependencies/src/pbkdf2-3.0.17/lib/sync-browser.js +0 -104
- package/dependencies/src/pbkdf2-3.0.17/lib/sync.js +0 -51
- package/dependencies/src/punycode-2.1.1/punycode.js +0 -429
- package/dependencies/src/pushdata-bitcoin-1.0.1/index.js +0 -77
- package/dependencies/src/randombytes-2.1.0/browser.js +0 -50
- package/dependencies/src/randombytes-2.1.0/index.js +0 -1
- package/dependencies/src/ripemd160-2.0.2/index.js +0 -163
- package/dependencies/src/rlp-2.2.3/index.js +0 -230
- package/dependencies/src/safe-buffer-5.2.0/index.js +0 -64
- package/dependencies/src/secp256k1-3.7.1/elliptic.js +0 -2
- package/dependencies/src/secp256k1-3.7.1/lib/assert.js +0 -44
- package/dependencies/src/secp256k1-3.7.1/lib/der.js +0 -193
- package/dependencies/src/secp256k1-3.7.1/lib/elliptic/index.js +0 -263
- package/dependencies/src/secp256k1-3.7.1/lib/index.js +0 -245
- package/dependencies/src/secp256k1-3.7.1/lib/messages.json +0 -37
- package/dependencies/src/secp256k1-4.0.2/elliptic.js +0 -1
- package/dependencies/src/secp256k1-4.0.2/lib/elliptic.js +0 -402
- package/dependencies/src/secp256k1-4.0.2/lib/index.js +0 -336
- package/dependencies/src/sha.js-2.4.11/hash.js +0 -81
- package/dependencies/src/sha.js-2.4.11/index.js +0 -16
- package/dependencies/src/sha.js-2.4.11/sha.js +0 -94
- package/dependencies/src/sha.js-2.4.11/sha1.js +0 -99
- package/dependencies/src/sha.js-2.4.11/sha224.js +0 -53
- package/dependencies/src/sha.js-2.4.11/sha256.js +0 -135
- package/dependencies/src/sha.js-2.4.11/sha384.js +0 -57
- package/dependencies/src/sha.js-2.4.11/sha512.js +0 -260
- package/dependencies/src/strip-hex-prefix-1.0.0/src/index.js +0 -14
- package/dependencies/src/tiny-secp256k1-1.1.3/js.js +0 -276
- package/dependencies/src/tiny-secp256k1-1.1.3/rfc6979.js +0 -62
- package/dependencies/src/tweetnacl-1.0.1/nacl.d.ts +0 -98
- package/dependencies/src/tweetnacl-1.0.1/nacl.js +0 -1164
- package/dependencies/src/tweetnacl-auth-1.0.1/nacl-auth.js +0 -47
- package/dependencies/src/typedarray-to-buffer-4.0.0/index.js +0 -17
- package/dependencies/src/typeforce-1.18.0/errors.js +0 -110
- package/dependencies/src/typeforce-1.18.0/extra.js +0 -91
- package/dependencies/src/typeforce-1.18.0/index.js +0 -260
- package/dependencies/src/typeforce-1.18.0/native.js +0 -21
- package/dependencies/src/unorm-1.6.0/lib/unorm.js +0 -452
- package/dependencies/src/utf8-3.0.0/utf8.js +0 -202
- package/dependencies/src/validate.js-0.13.1/validate.d.ts +0 -55
- package/dependencies/src/validate.js-0.13.1/validate.js +0 -1253
- package/dependencies/src/varuint-bitcoin-1.1.2/index.d.ts +0 -13
- package/dependencies/src/varuint-bitcoin-1.1.2/index.js +0 -90
- package/dependencies/src/wif-2.0.6/index.js +0 -63
- package/dependencies/src/xxhashjs-0.2.2/lib/index.js +0 -4
- package/dependencies/src/xxhashjs-0.2.2/lib/xxhash.js +0 -389
- package/dependencies/src/xxhashjs-0.2.2/lib/xxhash64.js +0 -444
- package/errors/coinlib-error.d.ts +0 -30
- package/errors/coinlib-error.js +0 -62
- package/errors/coinlib-error.js.map +0 -1
- package/errors/index.d.ts +0 -156
- package/errors/index.js +0 -281
- package/errors/index.js.map +0 -1
- package/errors/network.d.ts +0 -0
- package/errors/network.js +0 -2
- package/errors/network.js.map +0 -1
- package/index.d.ts +0 -33
- package/index.js +0 -58
- package/index.js.map +0 -1
- package/interfaces/IAirGapAddress.d.ts +0 -10
- package/interfaces/IAirGapAddress.js +0 -3
- package/interfaces/IAirGapAddress.js.map +0 -1
- package/interfaces/IAirGapSignedTransaction.d.ts +0 -1
- package/interfaces/IAirGapSignedTransaction.js +0 -3
- package/interfaces/IAirGapSignedTransaction.js.map +0 -1
- package/interfaces/IAirGapTransaction.d.ts +0 -53
- package/interfaces/IAirGapTransaction.js +0 -22
- package/interfaces/IAirGapTransaction.js.map +0 -1
- package/interfaces/IAirGapWallet.d.ts +0 -6
- package/interfaces/IAirGapWallet.js +0 -3
- package/interfaces/IAirGapWallet.js.map +0 -1
- package/interfaces/JSONConvertible.d.ts +0 -3
- package/interfaces/JSONConvertible.js +0 -3
- package/interfaces/JSONConvertible.js.map +0 -1
- package/interfaces/RPCConvertible.d.ts +0 -3
- package/interfaces/RPCConvertible.js +0 -3
- package/interfaces/RPCConvertible.js.map +0 -1
- package/networks.d.ts +0 -19
- package/networks.js +0 -1341
- package/networks.js.map +0 -1
- package/protocols/BlockExplorerProtocol.d.ts +0 -6
- package/protocols/BlockExplorerProtocol.js +0 -60
- package/protocols/BlockExplorerProtocol.js.map +0 -1
- package/protocols/CryptoClient.d.ts +0 -15
- package/protocols/CryptoClient.js +0 -84
- package/protocols/CryptoClient.js.map +0 -1
- package/protocols/Ed25519CryptoClient.d.ts +0 -8
- package/protocols/Ed25519CryptoClient.js +0 -107
- package/protocols/Ed25519CryptoClient.js.map +0 -1
- package/protocols/HasConfigurableContract.d.ts +0 -4
- package/protocols/HasConfigurableContract.js +0 -3
- package/protocols/HasConfigurableContract.js.map +0 -1
- package/protocols/ICoinBaseProtocol.d.ts +0 -107
- package/protocols/ICoinBaseProtocol.js +0 -3
- package/protocols/ICoinBaseProtocol.js.map +0 -1
- package/protocols/ICoinDelegateProtocol.d.ts +0 -40
- package/protocols/ICoinDelegateProtocol.js +0 -3
- package/protocols/ICoinDelegateProtocol.js.map +0 -1
- package/protocols/ICoinOfflineProtocol.d.ts +0 -24
- package/protocols/ICoinOfflineProtocol.js +0 -3
- package/protocols/ICoinOfflineProtocol.js.map +0 -1
- package/protocols/ICoinOnlineProtocol.d.ts +0 -46
- package/protocols/ICoinOnlineProtocol.js +0 -3
- package/protocols/ICoinOnlineProtocol.js.map +0 -1
- package/protocols/ICoinProtocol.d.ts +0 -9
- package/protocols/ICoinProtocol.js +0 -3
- package/protocols/ICoinProtocol.js.map +0 -1
- package/protocols/ICoinSubProtocol.d.ts +0 -22
- package/protocols/ICoinSubProtocol.js +0 -9
- package/protocols/ICoinSubProtocol.js.map +0 -1
- package/protocols/NonExtendedProtocol.d.ts +0 -17
- package/protocols/NonExtendedProtocol.js +0 -49
- package/protocols/NonExtendedProtocol.js.map +0 -1
- package/protocols/Secp256k1CryptoClient.d.ts +0 -8
- package/protocols/Secp256k1CryptoClient.js +0 -79
- package/protocols/Secp256k1CryptoClient.js.map +0 -1
- package/protocols/Sr25519CryptoClient.d.ts +0 -8
- package/protocols/Sr25519CryptoClient.js +0 -82
- package/protocols/Sr25519CryptoClient.js.map +0 -1
- package/types/signed-transaction.d.ts +0 -4
- package/types/signed-transaction.js +0 -3
- package/types/signed-transaction.js.map +0 -1
- package/types/unsigned-transaction.d.ts +0 -5
- package/types/unsigned-transaction.js +0 -3
- package/types/unsigned-transaction.js.map +0 -1
- package/utils/AES.d.ts +0 -10
- package/utils/AES.js +0 -165
- package/utils/AES.js.map +0 -1
- package/utils/ErrorWithData.d.ts +0 -4
- package/utils/ErrorWithData.js +0 -29
- package/utils/ErrorWithData.js.map +0 -1
- package/utils/Network.d.ts +0 -2
- package/utils/Network.js +0 -8
- package/utils/Network.js.map +0 -1
- package/utils/ProtocolBlockExplorer.d.ts +0 -6
- package/utils/ProtocolBlockExplorer.js +0 -11
- package/utils/ProtocolBlockExplorer.js.map +0 -1
- package/utils/ProtocolNetwork.d.ts +0 -15
- package/utils/ProtocolNetwork.js +0 -35
- package/utils/ProtocolNetwork.js.map +0 -1
- package/utils/ProtocolOptions.d.ts +0 -5
- package/utils/ProtocolOptions.js +0 -3
- package/utils/ProtocolOptions.js.map +0 -1
- package/utils/ProtocolSymbols.d.ts +0 -45
- package/utils/ProtocolSymbols.js +0 -59
- package/utils/ProtocolSymbols.js.map +0 -1
- package/utils/array.d.ts +0 -4
- package/utils/array.js +0 -36
- package/utils/array.js.map +0 -1
- package/utils/assert.d.ts +0 -2
- package/utils/assert.js +0 -20
- package/utils/assert.js.map +0 -1
- package/utils/base64Check.d.ts +0 -7
- package/utils/base64Check.js +0 -39
- package/utils/base64Check.js.map +0 -1
- package/utils/blake2b.d.ts +0 -7
- package/utils/blake2b.js +0 -23
- package/utils/blake2b.js.map +0 -1
- package/utils/buffer.d.ts +0 -2
- package/utils/buffer.js +0 -8
- package/utils/buffer.js.map +0 -1
- package/utils/cache.d.ts +0 -15
- package/utils/cache.js +0 -97
- package/utils/cache.js.map +0 -1
- package/utils/error.d.ts +0 -1
- package/utils/error.js +0 -8
- package/utils/error.js.map +0 -1
- package/utils/hex.d.ts +0 -14
- package/utils/hex.js +0 -112
- package/utils/hex.js.map +0 -1
- package/utils/interfaces.d.ts +0 -3
- package/utils/interfaces.js +0 -18
- package/utils/interfaces.js.map +0 -1
- package/utils/object.d.ts +0 -1
- package/utils/object.js +0 -23
- package/utils/object.js.map +0 -1
- package/utils/padStart.d.ts +0 -1
- package/utils/padStart.js +0 -20
- package/utils/padStart.js.map +0 -1
- package/utils/remote-data/HttpRemoteData.d.ts +0 -8
- package/utils/remote-data/HttpRemoteData.js +0 -117
- package/utils/remote-data/HttpRemoteData.js.map +0 -1
- package/utils/remote-data/IpfsRemoteData.d.ts +0 -8
- package/utils/remote-data/IpfsRemoteData.js +0 -142
- package/utils/remote-data/IpfsRemoteData.js.map +0 -1
- package/utils/remote-data/RemoteData.d.ts +0 -11
- package/utils/remote-data/RemoteData.js +0 -11
- package/utils/remote-data/RemoteData.js.map +0 -1
- package/utils/remote-data/RemoteDataFactory.d.ts +0 -11
- package/utils/remote-data/RemoteDataFactory.js +0 -29
- package/utils/remote-data/RemoteDataFactory.js.map +0 -1
- package/utils/remote-data/Sha256RemoteData.d.ts +0 -11
- package/utils/remote-data/Sha256RemoteData.js +0 -139
- package/utils/remote-data/Sha256RemoteData.js.map +0 -1
- package/utils/string.d.ts +0 -7
- package/utils/string.js +0 -50
- package/utils/string.js.map +0 -1
- package/utils/type.d.ts +0 -1
- package/utils/type.js +0 -16
- package/utils/type.js.map +0 -1
- package/utils/xxhash.d.ts +0 -5
- package/utils/xxhash.js +0 -18
- package/utils/xxhash.js.map +0 -1
- package/wallet/AirGapCoinWallet.d.ts +0 -19
- package/wallet/AirGapCoinWallet.js +0 -199
- package/wallet/AirGapCoinWallet.js.map +0 -1
- package/wallet/AirGapMarketWallet.d.ts +0 -40
- package/wallet/AirGapMarketWallet.js +0 -221
- package/wallet/AirGapMarketWallet.js.map +0 -1
- package/wallet/AirGapNFTWallet.d.ts +0 -15
- package/wallet/AirGapNFTWallet.js +0 -179
- package/wallet/AirGapNFTWallet.js.map +0 -1
- package/wallet/AirGapWallet.d.ts +0 -35
- package/wallet/AirGapWallet.js +0 -142
- package/wallet/AirGapWallet.js.map +0 -1
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ICoinOfflineProtocol } from './ICoinOfflineProtocol';
|
|
2
|
-
import { ICoinOnlineProtocol } from './ICoinOnlineProtocol';
|
|
3
|
-
export { FeeDefaults } from './ICoinBaseProtocol';
|
|
4
|
-
export interface CurrencyUnit {
|
|
5
|
-
unitSymbol: string;
|
|
6
|
-
factor: string;
|
|
7
|
-
}
|
|
8
|
-
export interface ICoinProtocol extends ICoinOnlineProtocol, ICoinOfflineProtocol {
|
|
9
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ICoinProtocol.js","sourceRoot":"","sources":["../../src/protocols/ICoinProtocol.ts"],"names":[],"mappings":""}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { ICoinProtocol } from './ICoinProtocol';
|
|
2
|
-
export declare enum SubProtocolType {
|
|
3
|
-
ACCOUNT = "account",
|
|
4
|
-
TOKEN = "token"
|
|
5
|
-
}
|
|
6
|
-
export interface ICoinSubProtocol extends ICoinProtocol {
|
|
7
|
-
/**
|
|
8
|
-
* @deprecated Use `getIsSubProtocol()` instead.
|
|
9
|
-
*/
|
|
10
|
-
isSubProtocol: boolean;
|
|
11
|
-
/**
|
|
12
|
-
* @deprecated Use `getSubProtocolType()` instead.
|
|
13
|
-
*/
|
|
14
|
-
subProtocolType: SubProtocolType;
|
|
15
|
-
/**
|
|
16
|
-
* @deprecated Use `getContractAddress()` instead.
|
|
17
|
-
*/
|
|
18
|
-
contractAddress?: string;
|
|
19
|
-
getIsSubProtocol(): Promise<boolean>;
|
|
20
|
-
getSubProtocolType(): Promise<SubProtocolType>;
|
|
21
|
-
getContractAddress(): Promise<string | undefined>;
|
|
22
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.SubProtocolType = void 0;
|
|
4
|
-
var SubProtocolType;
|
|
5
|
-
(function (SubProtocolType) {
|
|
6
|
-
SubProtocolType["ACCOUNT"] = "account";
|
|
7
|
-
SubProtocolType["TOKEN"] = "token";
|
|
8
|
-
})(SubProtocolType = exports.SubProtocolType || (exports.SubProtocolType = {}));
|
|
9
|
-
//# sourceMappingURL=ICoinSubProtocol.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ICoinSubProtocol.js","sourceRoot":"","sources":["../../src/protocols/ICoinSubProtocol.ts"],"names":[],"mappings":";;;AAEA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,kCAAe,CAAA;AACjB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { IAirGapAddressResult } from '../interfaces/IAirGapAddress';
|
|
2
|
-
import { IAirGapTransactionResult, IProtocolTransactionCursor } from '../interfaces/IAirGapTransaction';
|
|
3
|
-
import { FeeDefaults } from './ICoinProtocol';
|
|
4
|
-
export declare abstract class NonExtendedProtocol {
|
|
5
|
-
getExtendedPublicKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
6
|
-
getExtendedPublicKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
7
|
-
getExtendedPrivateKeyFromMnemonic(mnemonic: string, derivationPath: string, password?: string): Promise<string>;
|
|
8
|
-
getExtendedPrivateKeyFromHexSecret(secret: string, derivationPath: string): Promise<string>;
|
|
9
|
-
getBalanceOfExtendedPublicKey(extendedPublicKey: string, offset: number): Promise<string>;
|
|
10
|
-
signWithExtendedPrivateKey(extendedPrivateKey: string, transaction: any, childDerivationPath: string): Promise<string>;
|
|
11
|
-
getAddressFromExtendedPublicKey(extendedPublicKey: string, visibilityDerivationIndex: number, addressDerivationIndex: number): Promise<IAirGapAddressResult>;
|
|
12
|
-
getAddressesFromExtendedPublicKey(extendedPublicKey: string, visibilityDerivationIndex: number, addressCount: number, offset: number): Promise<IAirGapAddressResult[]>;
|
|
13
|
-
estimateMaxTransactionValueFromExtendedPublicKey(extendedPublicKey: string, recipients: string[], fee: string): Promise<string>;
|
|
14
|
-
estimateFeeDefaultsFromExtendedPublicKey(publicKey: string, recipients: string[], values: string[], data?: any): Promise<FeeDefaults>;
|
|
15
|
-
getTransactionsFromExtendedPublicKey(extendedPublicKey: string, limit: number, cursor: IProtocolTransactionCursor): Promise<IAirGapTransactionResult>;
|
|
16
|
-
prepareTransactionFromExtendedPublicKey(extendedPublicKey: string, offset: number, recipients: string[], values: string[], fee: string): Promise<any>;
|
|
17
|
-
}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.NonExtendedProtocol = void 0;
|
|
4
|
-
var NonExtendedProtocol = /** @class */ (function () {
|
|
5
|
-
function NonExtendedProtocol() {
|
|
6
|
-
}
|
|
7
|
-
NonExtendedProtocol.prototype.getExtendedPublicKeyFromMnemonic = function (mnemonic, derivationPath, password) {
|
|
8
|
-
throw Promise.reject('extended public key support not implemented');
|
|
9
|
-
};
|
|
10
|
-
NonExtendedProtocol.prototype.getExtendedPublicKeyFromHexSecret = function (secret, derivationPath) {
|
|
11
|
-
throw Promise.reject('extended public key support not implemented');
|
|
12
|
-
};
|
|
13
|
-
NonExtendedProtocol.prototype.getExtendedPrivateKeyFromMnemonic = function (mnemonic, derivationPath, password) {
|
|
14
|
-
throw Promise.reject('extended private key support not implemented');
|
|
15
|
-
};
|
|
16
|
-
NonExtendedProtocol.prototype.getExtendedPrivateKeyFromHexSecret = function (secret, derivationPath) {
|
|
17
|
-
throw Promise.reject('extended private key support not implemented');
|
|
18
|
-
};
|
|
19
|
-
NonExtendedProtocol.prototype.getBalanceOfExtendedPublicKey = function (extendedPublicKey, offset) {
|
|
20
|
-
return Promise.reject('extended public balance not implemented');
|
|
21
|
-
};
|
|
22
|
-
NonExtendedProtocol.prototype.signWithExtendedPrivateKey = function (extendedPrivateKey, transaction, childDerivationPath) {
|
|
23
|
-
return Promise.reject('extended private key signing for not implemented');
|
|
24
|
-
};
|
|
25
|
-
NonExtendedProtocol.prototype.getAddressFromExtendedPublicKey = function (extendedPublicKey, visibilityDerivationIndex, addressDerivationIndex) {
|
|
26
|
-
return Promise.resolve({
|
|
27
|
-
address: '',
|
|
28
|
-
cursor: { hasNext: false }
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
NonExtendedProtocol.prototype.getAddressesFromExtendedPublicKey = function (extendedPublicKey, visibilityDerivationIndex, addressCount, offset) {
|
|
32
|
-
return Promise.resolve([]);
|
|
33
|
-
};
|
|
34
|
-
NonExtendedProtocol.prototype.estimateMaxTransactionValueFromExtendedPublicKey = function (extendedPublicKey, recipients, fee) {
|
|
35
|
-
return Promise.reject('estimating max value using extended public key not implemented');
|
|
36
|
-
};
|
|
37
|
-
NonExtendedProtocol.prototype.estimateFeeDefaultsFromExtendedPublicKey = function (publicKey, recipients, values, data) {
|
|
38
|
-
return Promise.reject('estimating fee defaults using extended public key not implemented');
|
|
39
|
-
};
|
|
40
|
-
NonExtendedProtocol.prototype.getTransactionsFromExtendedPublicKey = function (extendedPublicKey, limit, cursor) {
|
|
41
|
-
return Promise.reject('fetching txs using extended public key not implemented');
|
|
42
|
-
};
|
|
43
|
-
NonExtendedProtocol.prototype.prepareTransactionFromExtendedPublicKey = function (extendedPublicKey, offset, recipients, values, fee) {
|
|
44
|
-
return Promise.reject('extended public key tx not implemented');
|
|
45
|
-
};
|
|
46
|
-
return NonExtendedProtocol;
|
|
47
|
-
}());
|
|
48
|
-
exports.NonExtendedProtocol = NonExtendedProtocol;
|
|
49
|
-
//# sourceMappingURL=NonExtendedProtocol.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"NonExtendedProtocol.js","sourceRoot":"","sources":["../../src/protocols/NonExtendedProtocol.ts"],"names":[],"mappings":";;;AAKA;IAAA;IA2EA,CAAC;IA1EQ,8DAAgC,GAAvC,UAAwC,QAAgB,EAAE,cAAsB,EAAE,QAAiB;QACjG,MAAM,OAAO,CAAC,MAAM,CAAC,6CAA6C,CAAC,CAAA;IACrE,CAAC;IAEM,+DAAiC,GAAxC,UAAyC,MAAc,EAAE,cAAsB;QAC7E,MAAM,OAAO,CAAC,MAAM,CAAC,6CAA6C,CAAC,CAAA;IACrE,CAAC;IAEM,+DAAiC,GAAxC,UAAyC,QAAgB,EAAE,cAAsB,EAAE,QAAiB;QAClG,MAAM,OAAO,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAA;IACtE,CAAC;IAEM,gEAAkC,GAAzC,UAA0C,MAAc,EAAE,cAAsB;QAC9E,MAAM,OAAO,CAAC,MAAM,CAAC,8CAA8C,CAAC,CAAA;IACtE,CAAC;IAEM,2DAA6B,GAApC,UAAqC,iBAAyB,EAAE,MAAc;QAC5E,OAAO,OAAO,CAAC,MAAM,CAAC,yCAAyC,CAAC,CAAA;IAClE,CAAC;IAEM,wDAA0B,GAAjC,UAAkC,kBAA0B,EAAE,WAAgB,EAAE,mBAA2B;QACzG,OAAO,OAAO,CAAC,MAAM,CAAC,kDAAkD,CAAC,CAAA;IAC3E,CAAC;IAEM,6DAA+B,GAAtC,UACE,iBAAyB,EACzB,yBAAiC,EACjC,sBAA8B;QAE9B,OAAO,OAAO,CAAC,OAAO,CAAC;YACrB,OAAO,EAAE,EAAE;YACX,MAAM,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;SAC3B,CAAC,CAAA;IACJ,CAAC;IAEM,+DAAiC,GAAxC,UACE,iBAAyB,EACzB,yBAAiC,EACjC,YAAoB,EACpB,MAAc;QAEd,OAAO,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAA;IAC5B,CAAC;IAEM,8EAAgD,GAAvD,UAAwD,iBAAyB,EAAE,UAAoB,EAAE,GAAW;QAClH,OAAO,OAAO,CAAC,MAAM,CAAC,gEAAgE,CAAC,CAAA;IACzF,CAAC;IAEM,sEAAwC,GAA/C,UACE,SAAiB,EACjB,UAAoB,EACpB,MAAgB,EAChB,IAAU;QAEV,OAAO,OAAO,CAAC,MAAM,CAAC,mEAAmE,CAAC,CAAA;IAC5F,CAAC;IAEM,kEAAoC,GAA3C,UACE,iBAAyB,EACzB,KAAa,EACb,MAAkC;QAElC,OAAO,OAAO,CAAC,MAAM,CAAC,wDAAwD,CAAC,CAAA;IACjF,CAAC;IAEM,qEAAuC,GAA9C,UACE,iBAAyB,EACzB,MAAc,EACd,UAAoB,EACpB,MAAgB,EAChB,GAAW;QAEX,OAAO,OAAO,CAAC,MAAM,CAAC,wCAAwC,CAAC,CAAA;IACjE,CAAC;IACH,0BAAC;AAAD,CAAC,AA3ED,IA2EC;AA3EqB,kDAAmB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CryptoClient } from './CryptoClient';
|
|
2
|
-
export declare abstract class Secp256k1CryptoClient extends CryptoClient {
|
|
3
|
-
encryptAsymmetric(payload: string, publicKey: string): Promise<string>;
|
|
4
|
-
decryptAsymmetric(encryptedPayload: string, keypair: {
|
|
5
|
-
publicKey: string;
|
|
6
|
-
privateKey: string;
|
|
7
|
-
}): Promise<string>;
|
|
8
|
-
}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
-
function step(op) {
|
|
31
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (_) try {
|
|
33
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
-
switch (op[0]) {
|
|
36
|
-
case 0: case 1: t = op; break;
|
|
37
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
-
default:
|
|
41
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
-
if (t[2]) _.ops.pop();
|
|
46
|
-
_.trys.pop(); continue;
|
|
47
|
-
}
|
|
48
|
-
op = body.call(thisArg, _);
|
|
49
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.Secp256k1CryptoClient = void 0;
|
|
55
|
-
var index_1 = require("../dependencies/src/eciesjs-0.3.9/src/index");
|
|
56
|
-
var CryptoClient_1 = require("./CryptoClient");
|
|
57
|
-
var Secp256k1CryptoClient = /** @class */ (function (_super) {
|
|
58
|
-
__extends(Secp256k1CryptoClient, _super);
|
|
59
|
-
function Secp256k1CryptoClient() {
|
|
60
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
61
|
-
}
|
|
62
|
-
Secp256k1CryptoClient.prototype.encryptAsymmetric = function (payload, publicKey) {
|
|
63
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
64
|
-
return __generator(this, function (_a) {
|
|
65
|
-
return [2 /*return*/, (0, index_1.encrypt)(publicKey, Buffer.from(payload)).toString('hex')];
|
|
66
|
-
});
|
|
67
|
-
});
|
|
68
|
-
};
|
|
69
|
-
Secp256k1CryptoClient.prototype.decryptAsymmetric = function (encryptedPayload, keypair) {
|
|
70
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
71
|
-
return __generator(this, function (_a) {
|
|
72
|
-
return [2 /*return*/, (0, index_1.decrypt)(keypair.privateKey, Buffer.from(encryptedPayload, 'hex')).toString()];
|
|
73
|
-
});
|
|
74
|
-
});
|
|
75
|
-
};
|
|
76
|
-
return Secp256k1CryptoClient;
|
|
77
|
-
}(CryptoClient_1.CryptoClient));
|
|
78
|
-
exports.Secp256k1CryptoClient = Secp256k1CryptoClient;
|
|
79
|
-
//# sourceMappingURL=Secp256k1CryptoClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Secp256k1CryptoClient.js","sourceRoot":"","sources":["../../src/protocols/Secp256k1CryptoClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,qEAA8E;AAE9E,+CAA6C;AAE7C;IAAoD,yCAAY;IAAhE;;IAQA,CAAC;IAPc,iDAAiB,GAA9B,UAA+B,OAAe,EAAE,SAAiB;;;gBAC/D,sBAAO,IAAA,eAAO,EAAC,SAAS,EAAE,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAA;;;KAChE;IAEY,iDAAiB,GAA9B,UAA+B,gBAAwB,EAAE,OAAkD;;;gBACzG,sBAAO,IAAA,eAAO,EAAC,OAAO,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,EAAE,EAAA;;;KACpF;IACH,4BAAC;AAAD,CAAC,AARD,CAAoD,2BAAY,GAQ/D;AARqB,sDAAqB"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { CryptoClient } from './CryptoClient';
|
|
2
|
-
export declare abstract class Sr25519CryptoClient extends CryptoClient {
|
|
3
|
-
encryptAsymmetric(payload: string, publicKey: string): Promise<string>;
|
|
4
|
-
decryptAsymmetric(encryptedPayload: string, keypair: {
|
|
5
|
-
publicKey: string;
|
|
6
|
-
privateKey: string;
|
|
7
|
-
}): Promise<string>;
|
|
8
|
-
}
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
18
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
19
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
20
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
21
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
22
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
23
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
24
|
-
});
|
|
25
|
-
};
|
|
26
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
27
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
28
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
29
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
30
|
-
function step(op) {
|
|
31
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
32
|
-
while (_) try {
|
|
33
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
34
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
35
|
-
switch (op[0]) {
|
|
36
|
-
case 0: case 1: t = op; break;
|
|
37
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
38
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
39
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
40
|
-
default:
|
|
41
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
42
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
43
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
44
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
45
|
-
if (t[2]) _.ops.pop();
|
|
46
|
-
_.trys.pop(); continue;
|
|
47
|
-
}
|
|
48
|
-
op = body.call(thisArg, _);
|
|
49
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
50
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
51
|
-
}
|
|
52
|
-
};
|
|
53
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
54
|
-
exports.Sr25519CryptoClient = void 0;
|
|
55
|
-
var errors_1 = require("../errors");
|
|
56
|
-
var coinlib_error_1 = require("../errors/coinlib-error");
|
|
57
|
-
var CryptoClient_1 = require("./CryptoClient");
|
|
58
|
-
var Sr25519CryptoClient = /** @class */ (function (_super) {
|
|
59
|
-
__extends(Sr25519CryptoClient, _super);
|
|
60
|
-
function Sr25519CryptoClient() {
|
|
61
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
62
|
-
}
|
|
63
|
-
Sr25519CryptoClient.prototype.encryptAsymmetric = function (payload, publicKey) {
|
|
64
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
65
|
-
return __generator(this, function (_a) {
|
|
66
|
-
// Currently not supported: https://github.com/polkadot-js/common/issues/633
|
|
67
|
-
throw new errors_1.NotImplementedError(coinlib_error_1.Domain.UTILS, "encryptAsymmetric() not implemented.");
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
};
|
|
71
|
-
Sr25519CryptoClient.prototype.decryptAsymmetric = function (encryptedPayload, keypair) {
|
|
72
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
73
|
-
return __generator(this, function (_a) {
|
|
74
|
-
// Currently not supported: https://github.com/polkadot-js/common/issues/633
|
|
75
|
-
throw new errors_1.NotImplementedError(coinlib_error_1.Domain.UTILS, "decryptAsymmetric() not implemented.");
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
return Sr25519CryptoClient;
|
|
80
|
-
}(CryptoClient_1.CryptoClient));
|
|
81
|
-
exports.Sr25519CryptoClient = Sr25519CryptoClient;
|
|
82
|
-
//# sourceMappingURL=Sr25519CryptoClient.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Sr25519CryptoClient.js","sourceRoot":"","sources":["../../src/protocols/Sr25519CryptoClient.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,oCAA+C;AAC/C,yDAAgD;AAChD,+CAA6C;AAE7C;IAAkD,uCAAY;IAA9D;;IAUA,CAAC;IATc,+CAAiB,GAA9B,UAA+B,OAAe,EAAE,SAAiB;;;gBAC/D,4EAA4E;gBAC5E,MAAM,IAAI,4BAAmB,CAAC,sBAAM,CAAC,KAAK,EAAE,sCAAsC,CAAC,CAAA;;;KACpF;IAEY,+CAAiB,GAA9B,UAA+B,gBAAwB,EAAE,OAAkD;;;gBACzG,4EAA4E;gBAC5E,MAAM,IAAI,4BAAmB,CAAC,sBAAM,CAAC,KAAK,EAAE,sCAAsC,CAAC,CAAA;;;KACpF;IACH,0BAAC;AAAD,CAAC,AAVD,CAAkD,2BAAY,GAU7D;AAVqB,kDAAmB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signed-transaction.js","sourceRoot":"","sources":["../../src/types/signed-transaction.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"unsigned-transaction.js","sourceRoot":"","sources":["../../src/types/unsigned-transaction.ts"],"names":[],"mappings":""}
|
package/utils/AES.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare class AES {
|
|
2
|
-
readonly AES_KEY_SIZE: number;
|
|
3
|
-
readonly KEY_DERIVATION_ITERATION_COUNT: number;
|
|
4
|
-
readonly ALGORITHM: 'aes-256-gcm';
|
|
5
|
-
readonly encoding: 'base64' | 'hex';
|
|
6
|
-
constructor(AES_KEY_SIZE?: number, KEY_DERIVATION_ITERATION_COUNT?: number, ALGORITHM?: 'aes-256-gcm', encoding?: 'base64' | 'hex');
|
|
7
|
-
encryptString(plainText: string, privateKey: string): Promise<string>;
|
|
8
|
-
decryptString(encryptedValue: string, privateKey: string): Promise<string>;
|
|
9
|
-
private deriveKeyFromPrivateKey;
|
|
10
|
-
}
|
package/utils/AES.js
DELETED
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
26
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
27
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
28
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
29
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
30
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
31
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
32
|
-
});
|
|
33
|
-
};
|
|
34
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
35
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
36
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
37
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
38
|
-
function step(op) {
|
|
39
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
40
|
-
while (_) try {
|
|
41
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
42
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
43
|
-
switch (op[0]) {
|
|
44
|
-
case 0: case 1: t = op; break;
|
|
45
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
46
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
47
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
48
|
-
default:
|
|
49
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
50
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
51
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
52
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
53
|
-
if (t[2]) _.ops.pop();
|
|
54
|
-
_.trys.pop(); continue;
|
|
55
|
-
}
|
|
56
|
-
op = body.call(thisArg, _);
|
|
57
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
58
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
62
|
-
exports.AES = void 0;
|
|
63
|
-
var crypto = __importStar(require("crypto"));
|
|
64
|
-
var errors_1 = require("../errors");
|
|
65
|
-
var coinlib_error_1 = require("../errors/coinlib-error");
|
|
66
|
-
var hex_1 = require("./hex");
|
|
67
|
-
// https://github.com/microsoft/botbuilder-js/blob/master/libraries/botframework-config/src/encrypt.ts#L20
|
|
68
|
-
var AES = /** @class */ (function () {
|
|
69
|
-
function AES(AES_KEY_SIZE, KEY_DERIVATION_ITERATION_COUNT, ALGORITHM, encoding) {
|
|
70
|
-
if (AES_KEY_SIZE === void 0) { AES_KEY_SIZE = 256; }
|
|
71
|
-
if (KEY_DERIVATION_ITERATION_COUNT === void 0) { KEY_DERIVATION_ITERATION_COUNT = 10000; }
|
|
72
|
-
if (ALGORITHM === void 0) { ALGORITHM = 'aes-256-gcm'; }
|
|
73
|
-
if (encoding === void 0) { encoding = 'hex'; }
|
|
74
|
-
this.AES_KEY_SIZE = AES_KEY_SIZE;
|
|
75
|
-
this.KEY_DERIVATION_ITERATION_COUNT = KEY_DERIVATION_ITERATION_COUNT;
|
|
76
|
-
this.ALGORITHM = ALGORITHM;
|
|
77
|
-
this.encoding = encoding;
|
|
78
|
-
}
|
|
79
|
-
AES.prototype.encryptString = function (plainText, privateKey) {
|
|
80
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
81
|
-
var keyBytes, ivBytes, ivText, cipher, encryptedValue, authTagText;
|
|
82
|
-
return __generator(this, function (_a) {
|
|
83
|
-
switch (_a.label) {
|
|
84
|
-
case 0:
|
|
85
|
-
if (!plainText || plainText.length === 0) {
|
|
86
|
-
throw new errors_1.ConditionViolationError(coinlib_error_1.Domain.UTILS, 'you must pass an input message');
|
|
87
|
-
}
|
|
88
|
-
if (!privateKey || privateKey.length === 0) {
|
|
89
|
-
throw new errors_1.ConditionViolationError(coinlib_error_1.Domain.UTILS, 'you must pass a privateKey');
|
|
90
|
-
}
|
|
91
|
-
return [4 /*yield*/, this.deriveKeyFromPrivateKey(privateKey)
|
|
92
|
-
// Generates 16 byte cryptographically strong pseudo-random data as IV
|
|
93
|
-
// https://nodejs.org/api/crypto.html#crypto_crypto_randombytes_size_callback
|
|
94
|
-
];
|
|
95
|
-
case 1:
|
|
96
|
-
keyBytes = _a.sent();
|
|
97
|
-
ivBytes = crypto.randomBytes(16);
|
|
98
|
-
ivText = ivBytes.toString(this.encoding);
|
|
99
|
-
cipher = crypto.createCipheriv(this.ALGORITHM, keyBytes, ivBytes);
|
|
100
|
-
encryptedValue = cipher.update(plainText, 'utf8', this.encoding);
|
|
101
|
-
encryptedValue += cipher.final(this.encoding);
|
|
102
|
-
authTagText = cipher.getAuthTag().toString(this.encoding);
|
|
103
|
-
return [2 /*return*/, "".concat(ivText, "!").concat(encryptedValue, "!").concat(authTagText)];
|
|
104
|
-
}
|
|
105
|
-
});
|
|
106
|
-
});
|
|
107
|
-
};
|
|
108
|
-
AES.prototype.decryptString = function (encryptedValue, privateKey) {
|
|
109
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
110
|
-
var parts, ivText, encryptedText, authTagText, ivBytes, keyBytes, authTagBytes, decipher, value;
|
|
111
|
-
return __generator(this, function (_a) {
|
|
112
|
-
switch (_a.label) {
|
|
113
|
-
case 0:
|
|
114
|
-
if (!encryptedValue || encryptedValue.length === 0) {
|
|
115
|
-
return [2 /*return*/, encryptedValue];
|
|
116
|
-
}
|
|
117
|
-
if (!privateKey || privateKey.length === 0) {
|
|
118
|
-
throw new errors_1.ConditionViolationError(coinlib_error_1.Domain.UTILS, 'you must pass a privateKey');
|
|
119
|
-
}
|
|
120
|
-
parts = encryptedValue.split('!');
|
|
121
|
-
if (parts.length !== 3) {
|
|
122
|
-
throw new errors_1.ConditionViolationError(coinlib_error_1.Domain.UTILS, 'The encrypted value is not in a valid format');
|
|
123
|
-
}
|
|
124
|
-
ivText = parts[0];
|
|
125
|
-
encryptedText = parts[1];
|
|
126
|
-
authTagText = parts[2];
|
|
127
|
-
ivBytes = Buffer.from(ivText, this.encoding);
|
|
128
|
-
return [4 /*yield*/, this.deriveKeyFromPrivateKey(privateKey)];
|
|
129
|
-
case 1:
|
|
130
|
-
keyBytes = _a.sent();
|
|
131
|
-
authTagBytes = Buffer.from(authTagText, this.encoding);
|
|
132
|
-
if (ivBytes.length !== 16) {
|
|
133
|
-
throw new errors_1.InvalidValueError(coinlib_error_1.Domain.UTILS, 'The IV length is invalid');
|
|
134
|
-
}
|
|
135
|
-
if (keyBytes.length !== 32) {
|
|
136
|
-
throw new errors_1.InvalidValueError(coinlib_error_1.Domain.UTILS, 'The key length is invalid');
|
|
137
|
-
}
|
|
138
|
-
if (authTagBytes.length !== 16) {
|
|
139
|
-
throw new errors_1.InvalidValueError(coinlib_error_1.Domain.UTILS, 'The authtag length is invalid');
|
|
140
|
-
}
|
|
141
|
-
decipher = crypto.createDecipheriv(this.ALGORITHM, keyBytes, ivBytes);
|
|
142
|
-
decipher.setAuthTag(authTagBytes);
|
|
143
|
-
value = decipher.update(encryptedText, this.encoding, 'utf8');
|
|
144
|
-
value += decipher.final('utf8');
|
|
145
|
-
return [2 /*return*/, value];
|
|
146
|
-
}
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
};
|
|
150
|
-
AES.prototype.deriveKeyFromPrivateKey = function (privateKey) {
|
|
151
|
-
var _this = this;
|
|
152
|
-
var password = (0, hex_1.isHex)(privateKey) ? Buffer.from(privateKey, 'hex') : privateKey;
|
|
153
|
-
return new Promise(function (resolve, reject) {
|
|
154
|
-
crypto.pbkdf2(password, '', _this.KEY_DERIVATION_ITERATION_COUNT, 32, 'sha512', function (pbkdf2Error, key) {
|
|
155
|
-
if (pbkdf2Error) {
|
|
156
|
-
reject(pbkdf2Error);
|
|
157
|
-
}
|
|
158
|
-
resolve(key);
|
|
159
|
-
});
|
|
160
|
-
});
|
|
161
|
-
};
|
|
162
|
-
return AES;
|
|
163
|
-
}());
|
|
164
|
-
exports.AES = AES;
|
|
165
|
-
//# sourceMappingURL=AES.js.map
|
package/utils/AES.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"AES.js","sourceRoot":"","sources":["../../src/utils/AES.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAAgC;AAChC,oCAAsE;AACtE,yDAAgD;AAChD,6BAA6B;AAE7B,0GAA0G;AAC1G;IACE,aACkB,YAA0B,EAC1B,8BAA8C,EAC9C,SAAwC,EACxC,QAAkC;QAHlC,6BAAA,EAAA,kBAA0B;QAC1B,+CAAA,EAAA,sCAA8C;QAC9C,0BAAA,EAAA,yBAAwC;QACxC,yBAAA,EAAA,gBAAkC;QAHlC,iBAAY,GAAZ,YAAY,CAAc;QAC1B,mCAA8B,GAA9B,8BAA8B,CAAgB;QAC9C,cAAS,GAAT,SAAS,CAA+B;QACxC,aAAQ,GAAR,QAAQ,CAA0B;IACjD,CAAC;IAES,2BAAa,GAA1B,UAA2B,SAAiB,EAAE,UAAkB;;;;;;wBAC9D,IAAI,CAAC,SAAS,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,EAAE;4BACxC,MAAM,IAAI,gCAAuB,CAAC,sBAAM,CAAC,KAAK,EAAE,gCAAgC,CAAC,CAAA;yBAClF;wBAED,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;4BAC1C,MAAM,IAAI,gCAAuB,CAAC,sBAAM,CAAC,KAAK,EAAE,4BAA4B,CAAC,CAAA;yBAC9E;wBAEwB,qBAAM,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC;4BAEvE,sEAAsE;4BACtE,6EAA6E;0BAHN;;wBAAjE,QAAQ,GAAW,SAA8C;wBAIjE,OAAO,GAAW,MAAM,CAAC,WAAW,CAAC,EAAE,CAAC,CAAA;wBACxC,MAAM,GAAW,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;wBAGhD,MAAM,GAAqB,MAAM,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;wBACrF,cAAc,GAAW,MAAM,CAAC,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;wBAC5E,cAAc,IAAI,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;wBAEvC,WAAW,GAAW,MAAM,CAAC,UAAU,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;wBAEvE,sBAAO,UAAG,MAAM,cAAI,cAAc,cAAI,WAAW,CAAE,EAAA;;;;KACpD;IAEY,2BAAa,GAA1B,UAA2B,cAAsB,EAAE,UAAkB;;;;;;wBACnE,IAAI,CAAC,cAAc,IAAI,cAAc,CAAC,MAAM,KAAK,CAAC,EAAE;4BAClD,sBAAO,cAAc,EAAA;yBACtB;wBAED,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;4BAC1C,MAAM,IAAI,gCAAuB,CAAC,sBAAM,CAAC,KAAK,EAAE,4BAA4B,CAAC,CAAA;yBAC9E;wBAEK,KAAK,GAAa,cAAc,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;wBACjD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE;4BACtB,MAAM,IAAI,gCAAuB,CAAC,sBAAM,CAAC,KAAK,EAAE,8CAA8C,CAAC,CAAA;yBAChG;wBAEK,MAAM,GAAW,KAAK,CAAC,CAAC,CAAC,CAAA;wBACzB,aAAa,GAAW,KAAK,CAAC,CAAC,CAAC,CAAA;wBAChC,WAAW,GAAW,KAAK,CAAC,CAAC,CAAC,CAAA;wBAE9B,OAAO,GAAW,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;wBACjC,qBAAM,IAAI,CAAC,uBAAuB,CAAC,UAAU,CAAC,EAAA;;wBAAjE,QAAQ,GAAW,SAA8C;wBACjE,YAAY,GAAW,MAAM,CAAC,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAA;wBAEpE,IAAI,OAAO,CAAC,MAAM,KAAK,EAAE,EAAE;4BACzB,MAAM,IAAI,0BAAiB,CAAC,sBAAM,CAAC,KAAK,EAAE,0BAA0B,CAAC,CAAA;yBACtE;wBAED,IAAI,QAAQ,CAAC,MAAM,KAAK,EAAE,EAAE;4BAC1B,MAAM,IAAI,0BAAiB,CAAC,sBAAM,CAAC,KAAK,EAAE,2BAA2B,CAAC,CAAA;yBACvE;wBAED,IAAI,YAAY,CAAC,MAAM,KAAK,EAAE,EAAE;4BAC9B,MAAM,IAAI,0BAAiB,CAAC,sBAAM,CAAC,KAAK,EAAE,+BAA+B,CAAC,CAAA;yBAC3E;wBAGK,QAAQ,GAAuB,MAAM,CAAC,gBAAgB,CAAC,IAAI,CAAC,SAAS,EAAE,QAAQ,EAAE,OAAO,CAAC,CAAA;wBAC/F,QAAQ,CAAC,UAAU,CAAC,YAAY,CAAC,CAAA;wBAE7B,KAAK,GAAW,QAAQ,CAAC,MAAM,CAAC,aAAa,EAAE,IAAI,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAA;wBACzE,KAAK,IAAI,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,CAAA;wBAE/B,sBAAO,KAAK,EAAA;;;;KACb;IAEO,qCAAuB,GAA/B,UAAgC,UAAkB;QAAlD,iBAWC;QAVC,IAAM,QAAQ,GAAG,IAAA,WAAK,EAAC,UAAU,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,UAAU,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,UAAU,CAAA;QAEhF,OAAO,IAAI,OAAO,CAAC,UAAC,OAAsD,EAAE,MAAkC;YAC5G,MAAM,CAAC,MAAM,CAAC,QAAQ,EAAE,EAAE,EAAE,KAAI,CAAC,8BAA8B,EAAE,EAAE,EAAE,QAAQ,EAAE,UAAC,WAAyB,EAAE,GAAW;gBACpH,IAAI,WAAW,EAAE;oBACf,MAAM,CAAC,WAAW,CAAC,CAAA;iBACpB;gBACD,OAAO,CAAC,GAAG,CAAC,CAAA;YACd,CAAC,CAAC,CAAA;QACJ,CAAC,CAAC,CAAA;IACJ,CAAC;IACH,UAAC;AAAD,CAAC,AA1FD,IA0FC;AA1FY,kBAAG"}
|
package/utils/ErrorWithData.d.ts
DELETED
package/utils/ErrorWithData.js
DELETED
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.ErrorWithData = void 0;
|
|
19
|
-
var ErrorWithData = /** @class */ (function (_super) {
|
|
20
|
-
__extends(ErrorWithData, _super);
|
|
21
|
-
function ErrorWithData(message, data) {
|
|
22
|
-
var _this = _super.call(this, message) || this;
|
|
23
|
-
_this.data = data;
|
|
24
|
-
return _this;
|
|
25
|
-
}
|
|
26
|
-
return ErrorWithData;
|
|
27
|
-
}(Error));
|
|
28
|
-
exports.ErrorWithData = ErrorWithData;
|
|
29
|
-
//# sourceMappingURL=ErrorWithData.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ErrorWithData.js","sourceRoot":"","sources":["../../src/utils/ErrorWithData.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA;IAAmC,iCAAK;IAEtC,uBAAY,OAAe,EAAE,IAAa;QAA1C,YACE,kBAAM,OAAO,CAAC,SAEf;QADC,KAAI,CAAC,IAAI,GAAG,IAAI,CAAA;;IAClB,CAAC;IACH,oBAAC;AAAD,CAAC,AAND,CAAmC,KAAK,GAMvC;AANY,sCAAa"}
|
package/utils/Network.d.ts
DELETED
package/utils/Network.js
DELETED
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.isNetworkEqual = void 0;
|
|
4
|
-
var isNetworkEqual = function (network1, network2) {
|
|
5
|
-
return network1.name === network2.name && network1.type === network2.type && network1.rpcUrl === network2.rpcUrl;
|
|
6
|
-
};
|
|
7
|
-
exports.isNetworkEqual = isNetworkEqual;
|
|
8
|
-
//# sourceMappingURL=Network.js.map
|
package/utils/Network.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Network.js","sourceRoot":"","sources":["../../src/utils/Network.ts"],"names":[],"mappings":";;;AAEO,IAAM,cAAc,GAAsE,UAC/F,QAAyB,EACzB,QAAyB;IAEzB,OAAO,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,MAAM,KAAK,QAAQ,CAAC,MAAM,CAAA;AAClH,CAAC,CAAA;AALY,QAAA,cAAc,kBAK1B"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ProtocolBlockExplorer = void 0;
|
|
4
|
-
var ProtocolBlockExplorer = /** @class */ (function () {
|
|
5
|
-
function ProtocolBlockExplorer(blockExplorer) {
|
|
6
|
-
this.blockExplorer = blockExplorer;
|
|
7
|
-
}
|
|
8
|
-
return ProtocolBlockExplorer;
|
|
9
|
-
}());
|
|
10
|
-
exports.ProtocolBlockExplorer = ProtocolBlockExplorer;
|
|
11
|
-
//# sourceMappingURL=ProtocolBlockExplorer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ProtocolBlockExplorer.js","sourceRoot":"","sources":["../../src/utils/ProtocolBlockExplorer.ts"],"names":[],"mappings":";;;AAAA;IACE,+BAA4B,aAAqB;QAArB,kBAAa,GAAb,aAAa,CAAQ;IAAG,CAAC;IAIvD,4BAAC;AAAD,CAAC,AALD,IAKC;AALqB,sDAAqB"}
|