@airgap/coinlib-core 0.13.45-beta.1 → 0.13.45-beta.3
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/actions/Action.js +30 -83
- package/actions/Action.js.map +1 -1
- package/actions/LinkedAction.js +18 -82
- package/actions/LinkedAction.js.map +1 -1
- package/actions/RepeatableAction.js +20 -83
- package/actions/RepeatableAction.js.map +1 -1
- package/actions/SimpleAction.js +12 -74
- package/actions/SimpleAction.js.map +1 -1
- package/actions/StateMachine.js +16 -17
- package/actions/StateMachine.js.map +1 -1
- package/data/KeyPair.d.ts +0 -1
- package/data/Lazy.js +15 -64
- package/data/Lazy.js.map +1 -1
- package/data/RPCBody.js +3 -6
- package/data/RPCBody.js.map +1 -1
- package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.d.ts +12 -12
- package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.js +88 -130
- package/dependencies/src/@stablelib/binary-1.0.1/packages/binary/binary.js.map +1 -1
- package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.d.ts +3 -3
- package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.js +57 -61
- package/dependencies/src/@stablelib/blake2b-1.0.1/packages/blake2b/blake2b.js.map +1 -1
- package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.js +96 -96
- package/dependencies/src/@stablelib/ed25519-1.0.3/packages/ed25519/ed25519.js.map +1 -1
- package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.js +1 -2
- package/dependencies/src/@stablelib/hash-1.0.1/packages/hash/hash.js.map +1 -1
- package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.js +8 -10
- package/dependencies/src/@stablelib/int-1.0.1/packages/int/int.js.map +1 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.js +22 -28
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/random.js.map +1 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.js +9 -10
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/browser.js.map +1 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.js +10 -11
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/node.js.map +1 -1
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.js +7 -8
- package/dependencies/src/@stablelib/random-1.0.2/packages/random/source/system.js.map +1 -1
- package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.d.ts +3 -3
- package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.js +61 -63
- package/dependencies/src/@stablelib/sha512/packages/sha512/sha512.js.map +1 -1
- package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.d.ts +4 -4
- package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.js +61 -63
- package/dependencies/src/@stablelib/sha512-1.0.1/packages/sha512/sha512.js.map +1 -1
- package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.d.ts +1 -1
- package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.js +2 -3
- package/dependencies/src/@stablelib/wipe-1.0.1/packages/wipe/wipe.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.js +111 -111
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/codec.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/constants.js +15 -15
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/constants.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.js +47 -76
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/decoder.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.js +46 -61
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/encoder.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.js +61 -106
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/error.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/interface.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.d.ts +6 -6
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.js +95 -100
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/michelson/codec.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.js +33 -33
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/codec-proto14.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.js +9 -9
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/constants-proto14.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.js +46 -75
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/decoder-proto14.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.js +45 -70
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/encoder-proto14.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.js +41 -41
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/proto14-kathmandu/michelson/codec-proto14.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.js +4 -4
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/protocols.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.d.ts +2 -2
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.js +58 -63
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/schema/operation.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.js +30 -33
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/taquito-local-forging.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/uint8array-consumer.js +18 -20
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/uint8array-consumer.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.d.ts +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.js +5 -12
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/utils.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.js +13 -13
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-local-forging/src/validator.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.js +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/opkind.js.map +1 -1
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.d.ts +78 -78
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.js +2 -2
- package/dependencies/src/@taquito/local-forging-15.0.1/packages/taquito-rpc/src/types.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.d.ts +45 -45
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.js +75 -76
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/constants.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.js +115 -178
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/errors.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.d.ts +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.js +6 -9
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/format.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.js +78 -83
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/taquito-utils.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.js +27 -36
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.js.map +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.d.ts +1 -1
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js +25 -26
- package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js.map +1 -1
- package/dependencies/src/cosmjs/index.d.ts +14 -230
- package/dependencies/src/cosmjs/index.js +373 -480
- package/dependencies/src/cosmjs/index.js.map +1 -1
- package/dependencies/src/eciesjs-0.3.9/src/index.d.ts +0 -1
- package/dependencies/src/eciesjs-0.3.9/src/index.js +15 -19
- package/dependencies/src/eciesjs-0.3.9/src/index.js.map +1 -1
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.d.ts +0 -1
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.js +37 -28
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.js.map +1 -1
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.d.ts +0 -1
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.js +38 -30
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.js.map +1 -1
- package/dependencies/src/eciesjs-0.3.9/src/utils.d.ts +0 -1
- package/dependencies/src/eciesjs-0.3.9/src/utils.js +33 -24
- package/dependencies/src/eciesjs-0.3.9/src/utils.js.map +1 -1
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-key.js +42 -34
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-key.js.map +1 -1
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-wallet.js +6 -10
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-wallet.js.map +1 -1
- package/errors/coinlib-error.js +16 -37
- package/errors/coinlib-error.js.map +1 -1
- package/errors/index.d.ts +2 -2
- package/errors/index.js +89 -148
- package/errors/index.js.map +1 -1
- package/index.js +19 -19
- package/index.js.map +1 -1
- package/interfaces/IAirGapSignedTransaction.d.ts +1 -1
- package/interfaces/IAirGapTransaction.js +3 -3
- package/interfaces/IAirGapTransaction.js.map +1 -1
- package/networks.js +9 -9
- package/networks.js.map +1 -1
- package/package.json +1 -1
- package/protocols/BlockExplorerProtocol.js +7 -54
- package/protocols/BlockExplorerProtocol.js.map +1 -1
- package/protocols/CryptoClient.js +19 -78
- package/protocols/CryptoClient.js.map +1 -1
- package/protocols/Ed25519CryptoClient.js +30 -98
- package/protocols/Ed25519CryptoClient.js.map +1 -1
- package/protocols/ICoinSubProtocol.js +1 -1
- package/protocols/ICoinSubProtocol.js.map +1 -1
- package/protocols/NonExtendedProtocol.js +26 -29
- package/protocols/NonExtendedProtocol.js.map +1 -1
- package/protocols/Secp256k1CryptoClient.js +9 -73
- package/protocols/Secp256k1CryptoClient.js.map +1 -1
- package/protocols/Sr25519CryptoClient.js +12 -76
- package/protocols/Sr25519CryptoClient.js.map +1 -1
- package/utils/AES.js +81 -132
- package/utils/AES.js.map +1 -1
- package/utils/ErrorWithData.js +5 -23
- package/utils/ErrorWithData.js.map +1 -1
- package/utils/Network.js +1 -1
- package/utils/Network.js.map +1 -1
- package/utils/ProtocolBlockExplorer.js +3 -4
- package/utils/ProtocolBlockExplorer.js.map +1 -1
- package/utils/ProtocolNetwork.js +11 -16
- package/utils/ProtocolNetwork.js.map +1 -1
- package/utils/ProtocolSymbols.d.ts +1 -1
- package/utils/ProtocolSymbols.js +6 -6
- package/utils/ProtocolSymbols.js.map +1 -1
- package/utils/array.js +14 -15
- package/utils/array.js.map +1 -1
- package/utils/assert.js +8 -12
- package/utils/assert.js.map +1 -1
- package/utils/base64Check.d.ts +0 -1
- package/utils/base64Check.js +15 -15
- package/utils/base64Check.js.map +1 -1
- package/utils/blake2b.js +11 -14
- package/utils/blake2b.js.map +1 -1
- package/utils/buffer.d.ts +0 -1
- package/utils/buffer.js +1 -1
- package/utils/buffer.js.map +1 -1
- package/utils/cache.js +38 -87
- package/utils/cache.js.map +1 -1
- package/utils/error.js +2 -3
- package/utils/error.js.map +1 -1
- package/utils/hex.d.ts +1 -2
- package/utils/hex.js +31 -38
- package/utils/hex.js.map +1 -1
- package/utils/interfaces.js +3 -4
- package/utils/interfaces.js.map +1 -1
- package/utils/object.js +5 -7
- package/utils/object.js.map +1 -1
- package/utils/padStart.js +1 -2
- package/utils/padStart.js.map +1 -1
- package/utils/remote-data/HttpRemoteData.js +24 -107
- package/utils/remote-data/HttpRemoteData.js.map +1 -1
- package/utils/remote-data/IpfsRemoteData.js +32 -116
- package/utils/remote-data/IpfsRemoteData.js.map +1 -1
- package/utils/remote-data/RemoteData.d.ts +0 -1
- package/utils/remote-data/RemoteData.js +3 -4
- package/utils/remote-data/RemoteData.js.map +1 -1
- package/utils/remote-data/RemoteDataFactory.d.ts +2 -2
- package/utils/remote-data/RemoteDataFactory.js +13 -20
- package/utils/remote-data/RemoteDataFactory.js.map +1 -1
- package/utils/remote-data/Sha256RemoteData.d.ts +0 -1
- package/utils/remote-data/Sha256RemoteData.js +44 -117
- package/utils/remote-data/Sha256RemoteData.js.map +1 -1
- package/utils/string.js +8 -9
- package/utils/string.js.map +1 -1
- package/utils/type.js +3 -4
- package/utils/type.js.map +1 -1
- package/utils/xxhash.d.ts +0 -1
- package/utils/xxhash.js +9 -11
- package/utils/xxhash.js.map +1 -1
- package/wallet/AirGapCoinWallet.js +64 -183
- package/wallet/AirGapCoinWallet.js.map +1 -1
- package/wallet/AirGapMarketWallet.js +88 -201
- package/wallet/AirGapMarketWallet.js.map +1 -1
- package/wallet/AirGapNFTWallet.js +48 -165
- package/wallet/AirGapNFTWallet.js.map +1 -1
- package/wallet/AirGapWallet.js +58 -145
- package/wallet/AirGapWallet.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validators.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"validators.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/validators.ts"],"names":[],"mappings":";;;;;;AAWA,sCAMC;AAkED,0CAEC;AAiBD,sCAEC;AAiBD,0DAEC;AAiBD,0CAEC;AAiBD,8CAEC;AAiBD,8CAEC;AAiBD,8CAEC;AAiBD,4CAEC;AAiBD,sCAEC;AAOD,kDAEC;AAtPD,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;;;;;;;;GAcG;AACH,SAAgB,uBAAuB,CAAC,KAAa;IACnD,OAAO,qBAAqB,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;AACtD,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,eAAe,CAAC,KAAa;IAC3C,OAAO,qBAAqB,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;AACtD,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC7C,OAAO,qBAAqB,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;AACvD,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC7C,OAAO,qBAAqB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AAChD,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC7C,OAAO,qBAAqB,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;AACvD,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,gBAAgB,CAAC,KAAa;IAC5C,OAAO,qBAAqB,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;AACtD,CAAC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,aAAa,CAAC,KAAa;IACzC,OAAO,qBAAqB,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;AACnD,CAAC;AAED;;;;GAIG;AACH,SAAgB,mBAAmB,CAAC,KAAU;IAC5C,OAAO,qBAAqB,CAAC,KAAK,EAAE,CAAC,kBAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AACrD,CAAC"}
|
package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js
CHANGED
|
@@ -3,13 +3,14 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
exports.verifySignature = verifySignature;
|
|
7
|
+
exports.validatePkAndExtractPrefix = validatePkAndExtractPrefix;
|
|
8
|
+
const ed25519_1 = require("../../../../../@stablelib/ed25519-1.0.3/packages/ed25519/ed25519");
|
|
9
|
+
const blake2b_1 = require("../../../../../@stablelib/blake2b-1.0.1/packages/blake2b/blake2b");
|
|
10
|
+
const taquito_utils_1 = require("./taquito-utils");
|
|
11
|
+
const elliptic_1 = __importDefault(require("elliptic"));
|
|
12
|
+
const index_1 = __importDefault(require("../../../../../typedarray-to-buffer-4.0.0/index"));
|
|
13
|
+
const errors_1 = require("./errors");
|
|
13
14
|
/**
|
|
14
15
|
* @description Verify signature of a payload
|
|
15
16
|
*
|
|
@@ -30,11 +31,11 @@ var errors_1 = require("./errors");
|
|
|
30
31
|
*
|
|
31
32
|
*/
|
|
32
33
|
function verifySignature(messageBytes, publicKey, signature) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
34
|
+
const pkPrefix = validatePkAndExtractPrefix(publicKey);
|
|
35
|
+
const sigPrefix = validateSigAndExtractPrefix(signature);
|
|
36
|
+
const decodedPublicKey = (0, taquito_utils_1.b58cdecode)(publicKey, taquito_utils_1.prefix[pkPrefix]);
|
|
37
|
+
const decodedSig = (0, taquito_utils_1.b58cdecode)(signature, taquito_utils_1.prefix[sigPrefix]);
|
|
38
|
+
const bytesHash = (0, blake2b_1.hash)((0, taquito_utils_1.hex2buf)(validateMessageNotEmpty(messageBytes)), 32);
|
|
38
39
|
if (pkPrefix === taquito_utils_1.Prefix.EDPK) {
|
|
39
40
|
return verifyEdSignature(decodedSig, bytesHash, decodedPublicKey);
|
|
40
41
|
}
|
|
@@ -48,7 +49,6 @@ function verifySignature(messageBytes, publicKey, signature) {
|
|
|
48
49
|
return false;
|
|
49
50
|
}
|
|
50
51
|
}
|
|
51
|
-
exports.verifySignature = verifySignature;
|
|
52
52
|
function validateMessageNotEmpty(message) {
|
|
53
53
|
if (message === '') {
|
|
54
54
|
throw new errors_1.InvalidMessageError(message, 'The message provided for verifying signature cannot be empty.');
|
|
@@ -59,8 +59,8 @@ function validatePkAndExtractPrefix(publicKey) {
|
|
|
59
59
|
if (publicKey === '') {
|
|
60
60
|
throw new errors_1.InvalidPublicKeyError(publicKey, 'Public key cannot be empty');
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
|
|
62
|
+
const pkPrefix = publicKey.substring(0, 4);
|
|
63
|
+
const validation = (0, taquito_utils_1.validatePublicKey)(publicKey);
|
|
64
64
|
if (validation !== taquito_utils_1.ValidationResult.VALID) {
|
|
65
65
|
if (validation === taquito_utils_1.ValidationResult.INVALID_CHECKSUM) {
|
|
66
66
|
throw new errors_1.InvalidPublicKeyError(publicKey, 'The public key provided has an invalid checksum');
|
|
@@ -69,20 +69,19 @@ function validatePkAndExtractPrefix(publicKey) {
|
|
|
69
69
|
throw new errors_1.InvalidPublicKeyError(publicKey, 'The public key provided has an invalid length');
|
|
70
70
|
}
|
|
71
71
|
else if (validation === taquito_utils_1.ValidationResult.NO_PREFIX_MATCHED) {
|
|
72
|
-
throw new errors_1.InvalidPublicKeyError(publicKey,
|
|
72
|
+
throw new errors_1.InvalidPublicKeyError(publicKey, `The public key provided has an unsupported prefix: ${pkPrefix}`);
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return pkPrefix;
|
|
76
76
|
}
|
|
77
|
-
exports.validatePkAndExtractPrefix = validatePkAndExtractPrefix;
|
|
78
77
|
function validateSigAndExtractPrefix(signature) {
|
|
79
|
-
|
|
78
|
+
const signaturePrefix = signature.startsWith('sig')
|
|
80
79
|
? signature.substr(0, 3)
|
|
81
80
|
: signature.substr(0, 5);
|
|
82
|
-
|
|
81
|
+
const validation = (0, taquito_utils_1.validateSignature)(signature);
|
|
83
82
|
if (validation !== taquito_utils_1.ValidationResult.VALID) {
|
|
84
83
|
if (validation === taquito_utils_1.ValidationResult.INVALID_CHECKSUM) {
|
|
85
|
-
throw new errors_1.InvalidSignatureError(signature,
|
|
84
|
+
throw new errors_1.InvalidSignatureError(signature, `invalid checksum`);
|
|
86
85
|
}
|
|
87
86
|
else if (validation === taquito_utils_1.ValidationResult.INVALID_LENGTH) {
|
|
88
87
|
throw new errors_1.InvalidSignatureError(signature, 'invalid length');
|
|
@@ -102,20 +101,20 @@ function verifyEdSignature(decodedSig, bytesHash, decodedPublicKey) {
|
|
|
102
101
|
}
|
|
103
102
|
}
|
|
104
103
|
function verifySpSignature(decodedSig, bytesHash, decodedPublicKey) {
|
|
105
|
-
|
|
104
|
+
const key = new elliptic_1.default.ec('secp256k1').keyFromPublic(decodedPublicKey);
|
|
106
105
|
return verifySpOrP2Sig(decodedSig, bytesHash, key);
|
|
107
106
|
}
|
|
108
107
|
function verifyP2Signature(decodedSig, bytesHash, decodedPublicKey) {
|
|
109
|
-
|
|
108
|
+
const key = new elliptic_1.default.ec('p256').keyFromPublic(decodedPublicKey);
|
|
110
109
|
return verifySpOrP2Sig(decodedSig, bytesHash, key);
|
|
111
110
|
}
|
|
112
111
|
function verifySpOrP2Sig(decodedSig, bytesHash, key) {
|
|
113
|
-
|
|
114
|
-
|
|
112
|
+
const hexSig = (0, taquito_utils_1.buf2hex)((0, index_1.default)(decodedSig));
|
|
113
|
+
const match = hexSig.match(/([a-f\d]{64})/gi);
|
|
115
114
|
if (match) {
|
|
116
115
|
try {
|
|
117
|
-
|
|
118
|
-
return key.verify(bytesHash, { r
|
|
116
|
+
const [r, s] = match;
|
|
117
|
+
return key.verify(bytesHash, { r, s });
|
|
119
118
|
}
|
|
120
119
|
catch (e) {
|
|
121
120
|
return false;
|
package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verify-signature.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"verify-signature.js","sourceRoot":"","sources":["../../../../../../../../src/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.ts"],"names":[],"mappings":";;;;;AAsCA,0CAqBC;AAYD,gEAmBC;AA1FD,8FAA0F;AAC1F,8FAAwF;AACxF,mDASyB;AACzB,wDAAgC;AAChC,4FAAuE;AACvE,qCAA6F;AAK7F;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,eAAe,CAC7B,YAAoB,EACpB,SAAiB,EACjB,SAAiB;IAEjB,MAAM,QAAQ,GAAG,0BAA0B,CAAC,SAAS,CAAC,CAAC;IACvD,MAAM,SAAS,GAAG,2BAA2B,CAAC,SAAS,CAAC,CAAC;IAEzD,MAAM,gBAAgB,GAAG,IAAA,0BAAU,EAAC,SAAS,EAAE,sBAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjE,MAAM,UAAU,GAAG,IAAA,0BAAU,EAAC,SAAS,EAAE,sBAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5D,MAAM,SAAS,GAAG,IAAA,cAAI,EAAC,IAAA,uBAAO,EAAC,uBAAuB,CAAC,YAAY,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAE3E,IAAI,QAAQ,KAAK,sBAAM,CAAC,IAAI,EAAE,CAAC;QAC7B,OAAO,iBAAiB,CAAC,UAAU,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;IACpE,CAAC;SAAM,IAAI,QAAQ,KAAK,sBAAM,CAAC,IAAI,EAAE,CAAC;QACpC,OAAO,iBAAiB,CAAC,UAAU,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;IACpE,CAAC;SAAM,IAAI,QAAQ,KAAK,sBAAM,CAAC,IAAI,EAAE,CAAC;QACpC,OAAO,iBAAiB,CAAC,UAAU,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B,gBAA4B;IAE5B,MAAM,GAAG,GAAG,IAAI,kBAAQ,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,aAAa,CAAC,gBAAgB,CAAC,CAAC;IACpE,OAAO,eAAe,CAAC,UAAU,EAAE,SAAS,EAAE,GAAG,CAAC,CAAC;AACrD,CAAC;AAED,SAAS,eAAe,CAAC,UAAsB,EAAE,SAAqB,EAAE,GAAwB;IAC9F,MAAM,MAAM,GAAG,IAAA,uBAAO,EAAC,IAAA,eAAQ,EAAC,UAAU,CAAC,CAAC,CAAC;IAC7C,MAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAC9C,IAAI,KAAK,EAAE,CAAC;QACV,IAAI,CAAC;YACH,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC;YACrB,OAAO,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;QACzC,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import Long from 'long';
|
|
2
2
|
import _m0 from 'protobufjs/minimal.js';
|
|
3
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
4
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
5
|
+
type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
6
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
7
|
+
} : Partial<T>;
|
|
8
|
+
type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
9
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
10
|
+
} & Record<Exclude<keyof I, KeysOfUnion<P>>, never>;
|
|
3
11
|
interface Any {
|
|
4
12
|
/**
|
|
5
13
|
* A URL/resource name that uniquely identifies the type of the serialized
|
|
@@ -107,266 +115,42 @@ declare const ModeInfo_Single: {
|
|
|
107
115
|
decode(input: _m0.Reader | Uint8Array, length?: number): ModeInfo_Single;
|
|
108
116
|
fromJSON(object: any): ModeInfo_Single;
|
|
109
117
|
toJSON(message: ModeInfo_Single): unknown;
|
|
110
|
-
fromPartial<I extends
|
|
111
|
-
mode?: number | undefined;
|
|
112
|
-
} & {
|
|
113
|
-
mode?: number | undefined;
|
|
114
|
-
} & Record<Exclude<keyof I, "mode">, never>>(object: I): ModeInfo_Single;
|
|
118
|
+
fromPartial<I extends Exact<DeepPartial<ModeInfo_Single>, I>>(object: I): ModeInfo_Single;
|
|
115
119
|
};
|
|
116
120
|
declare const ModeInfo: {
|
|
117
121
|
encode(message: ModeInfo, writer?: _m0.Writer): _m0.Writer;
|
|
118
122
|
decode(input: _m0.Reader | Uint8Array, length?: number): ModeInfo;
|
|
119
123
|
fromJSON(object: any): ModeInfo;
|
|
120
124
|
toJSON(message: ModeInfo): unknown;
|
|
121
|
-
fromPartial<I extends
|
|
122
|
-
single?: {
|
|
123
|
-
mode?: number | undefined;
|
|
124
|
-
} | undefined;
|
|
125
|
-
} & {
|
|
126
|
-
single?: ({
|
|
127
|
-
mode?: number | undefined;
|
|
128
|
-
} & {
|
|
129
|
-
mode?: number | undefined;
|
|
130
|
-
} & Record<Exclude<keyof I["single"], "mode">, never>) | undefined;
|
|
131
|
-
} & Record<Exclude<keyof I, "single">, never>>(object: I): ModeInfo;
|
|
125
|
+
fromPartial<I extends Exact<DeepPartial<ModeInfo>, I>>(object: I): ModeInfo;
|
|
132
126
|
};
|
|
133
127
|
declare const SignerInfo: {
|
|
134
128
|
encode(message: SignerInfo, writer?: _m0.Writer): _m0.Writer;
|
|
135
129
|
decode(input: _m0.Reader | Uint8Array, length?: number): SignerInfo;
|
|
136
130
|
fromJSON(object: any): SignerInfo;
|
|
137
131
|
toJSON(message: SignerInfo): unknown;
|
|
138
|
-
fromPartial<I extends
|
|
139
|
-
publicKey?: {
|
|
140
|
-
typeUrl?: string | undefined;
|
|
141
|
-
value?: Uint8Array | undefined;
|
|
142
|
-
} | undefined;
|
|
143
|
-
modeInfo?: {
|
|
144
|
-
single?: {
|
|
145
|
-
mode?: number | undefined;
|
|
146
|
-
} | undefined;
|
|
147
|
-
} | undefined;
|
|
148
|
-
sequence?: string | number | Long | undefined;
|
|
149
|
-
} & {
|
|
150
|
-
publicKey?: ({
|
|
151
|
-
typeUrl?: string | undefined;
|
|
152
|
-
value?: Uint8Array | undefined;
|
|
153
|
-
} & {
|
|
154
|
-
typeUrl?: string | undefined;
|
|
155
|
-
value?: Uint8Array | undefined;
|
|
156
|
-
} & Record<Exclude<keyof I["publicKey"], keyof Any>, never>) | undefined;
|
|
157
|
-
modeInfo?: ({
|
|
158
|
-
single?: {
|
|
159
|
-
mode?: number | undefined;
|
|
160
|
-
} | undefined;
|
|
161
|
-
} & {
|
|
162
|
-
single?: ({
|
|
163
|
-
mode?: number | undefined;
|
|
164
|
-
} & {
|
|
165
|
-
mode?: number | undefined;
|
|
166
|
-
} & Record<Exclude<keyof I["modeInfo"]["single"], "mode">, never>) | undefined;
|
|
167
|
-
} & Record<Exclude<keyof I["modeInfo"], "single">, never>) | undefined;
|
|
168
|
-
sequence?: string | number | (Long & {
|
|
169
|
-
high: number;
|
|
170
|
-
low: number;
|
|
171
|
-
unsigned: boolean;
|
|
172
|
-
add: (addend: string | number | Long) => Long;
|
|
173
|
-
and: (other: string | number | Long) => Long;
|
|
174
|
-
compare: (other: string | number | Long) => number;
|
|
175
|
-
comp: (other: string | number | Long) => number;
|
|
176
|
-
divide: (divisor: string | number | Long) => Long;
|
|
177
|
-
div: (divisor: string | number | Long) => Long;
|
|
178
|
-
equals: (other: string | number | Long) => boolean;
|
|
179
|
-
eq: (other: string | number | Long) => boolean;
|
|
180
|
-
getHighBits: () => number;
|
|
181
|
-
getHighBitsUnsigned: () => number;
|
|
182
|
-
getLowBits: () => number;
|
|
183
|
-
getLowBitsUnsigned: () => number;
|
|
184
|
-
getNumBitsAbs: () => number;
|
|
185
|
-
greaterThan: (other: string | number | Long) => boolean;
|
|
186
|
-
gt: (other: string | number | Long) => boolean;
|
|
187
|
-
greaterThanOrEqual: (other: string | number | Long) => boolean;
|
|
188
|
-
gte: (other: string | number | Long) => boolean;
|
|
189
|
-
ge: (other: string | number | Long) => boolean;
|
|
190
|
-
isEven: () => boolean;
|
|
191
|
-
isNegative: () => boolean;
|
|
192
|
-
isOdd: () => boolean;
|
|
193
|
-
isPositive: () => boolean;
|
|
194
|
-
isZero: () => boolean;
|
|
195
|
-
eqz: () => boolean;
|
|
196
|
-
lessThan: (other: string | number | Long) => boolean;
|
|
197
|
-
lt: (other: string | number | Long) => boolean;
|
|
198
|
-
lessThanOrEqual: (other: string | number | Long) => boolean;
|
|
199
|
-
lte: (other: string | number | Long) => boolean;
|
|
200
|
-
le: (other: string | number | Long) => boolean;
|
|
201
|
-
modulo: (other: string | number | Long) => Long;
|
|
202
|
-
mod: (other: string | number | Long) => Long;
|
|
203
|
-
rem: (other: string | number | Long) => Long;
|
|
204
|
-
multiply: (multiplier: string | number | Long) => Long;
|
|
205
|
-
mul: (multiplier: string | number | Long) => Long;
|
|
206
|
-
negate: () => Long;
|
|
207
|
-
neg: () => Long;
|
|
208
|
-
not: () => Long;
|
|
209
|
-
countLeadingZeros: () => number;
|
|
210
|
-
clz: () => number;
|
|
211
|
-
countTrailingZeros: () => number;
|
|
212
|
-
ctz: () => number;
|
|
213
|
-
notEquals: (other: string | number | Long) => boolean;
|
|
214
|
-
neq: (other: string | number | Long) => boolean;
|
|
215
|
-
ne: (other: string | number | Long) => boolean;
|
|
216
|
-
or: (other: string | number | Long) => Long;
|
|
217
|
-
shiftLeft: (numBits: number | Long) => Long;
|
|
218
|
-
shl: (numBits: number | Long) => Long;
|
|
219
|
-
shiftRight: (numBits: number | Long) => Long;
|
|
220
|
-
shr: (numBits: number | Long) => Long;
|
|
221
|
-
shiftRightUnsigned: (numBits: number | Long) => Long;
|
|
222
|
-
shru: (numBits: number | Long) => Long;
|
|
223
|
-
shr_u: (numBits: number | Long) => Long;
|
|
224
|
-
rotateLeft: (numBits: number | Long) => Long;
|
|
225
|
-
rotl: (numBits: number | Long) => Long;
|
|
226
|
-
rotateRight: (numBits: number | Long) => Long;
|
|
227
|
-
rotr: (numBits: number | Long) => Long;
|
|
228
|
-
subtract: (subtrahend: string | number | Long) => Long;
|
|
229
|
-
sub: (subtrahend: string | number | Long) => Long;
|
|
230
|
-
toInt: () => number;
|
|
231
|
-
toNumber: () => number;
|
|
232
|
-
toBytes: (le?: boolean | undefined) => number[];
|
|
233
|
-
toBytesLE: () => number[];
|
|
234
|
-
toBytesBE: () => number[];
|
|
235
|
-
toSigned: () => Long;
|
|
236
|
-
toString: (radix?: number | undefined) => string;
|
|
237
|
-
toUnsigned: () => Long;
|
|
238
|
-
xor: (other: string | number | Long) => Long;
|
|
239
|
-
} & Record<Exclude<keyof I["sequence"], keyof Long>, never>) | undefined;
|
|
240
|
-
} & Record<Exclude<keyof I, keyof SignerInfo>, never>>(object: I): SignerInfo;
|
|
132
|
+
fromPartial<I extends Exact<DeepPartial<SignerInfo>, I>>(object: I): SignerInfo;
|
|
241
133
|
};
|
|
242
134
|
declare const Coin: {
|
|
243
135
|
encode(message: Coin, writer?: _m0.Writer): _m0.Writer;
|
|
244
136
|
decode(input: _m0.Reader | Uint8Array, length?: number): Coin;
|
|
245
137
|
fromJSON(object: any): Coin;
|
|
246
138
|
toJSON(message: Coin): unknown;
|
|
247
|
-
fromPartial<I extends
|
|
248
|
-
denom?: string | undefined;
|
|
249
|
-
amount?: string | undefined;
|
|
250
|
-
} & {
|
|
251
|
-
denom?: string | undefined;
|
|
252
|
-
amount?: string | undefined;
|
|
253
|
-
} & Record<Exclude<keyof I, keyof Coin>, never>>(object: I): Coin;
|
|
139
|
+
fromPartial<I extends Exact<DeepPartial<Coin>, I>>(object: I): Coin;
|
|
254
140
|
};
|
|
255
141
|
declare const Fee: {
|
|
256
142
|
encode(message: Fee, writer?: _m0.Writer): _m0.Writer;
|
|
257
143
|
decode(input: _m0.Reader | Uint8Array, length?: number): Fee;
|
|
258
144
|
fromJSON(object: any): Fee;
|
|
259
145
|
toJSON(message: Fee): unknown;
|
|
260
|
-
fromPartial<I extends
|
|
261
|
-
amount?: {
|
|
262
|
-
denom?: string | undefined;
|
|
263
|
-
amount?: string | undefined;
|
|
264
|
-
}[] | undefined;
|
|
265
|
-
gasLimit?: string | number | Long | undefined;
|
|
266
|
-
payer?: string | undefined;
|
|
267
|
-
granter?: string | undefined;
|
|
268
|
-
} & {
|
|
269
|
-
amount?: ({
|
|
270
|
-
denom?: string | undefined;
|
|
271
|
-
amount?: string | undefined;
|
|
272
|
-
}[] & ({
|
|
273
|
-
denom?: string | undefined;
|
|
274
|
-
amount?: string | undefined;
|
|
275
|
-
} & {
|
|
276
|
-
denom?: string | undefined;
|
|
277
|
-
amount?: string | undefined;
|
|
278
|
-
} & Record<Exclude<keyof I["amount"][number], keyof Coin>, never>)[] & Record<Exclude<keyof I["amount"], keyof {
|
|
279
|
-
denom?: string | undefined;
|
|
280
|
-
amount?: string | undefined;
|
|
281
|
-
}[]>, never>) | undefined;
|
|
282
|
-
gasLimit?: string | number | (Long & {
|
|
283
|
-
high: number;
|
|
284
|
-
low: number;
|
|
285
|
-
unsigned: boolean;
|
|
286
|
-
add: (addend: string | number | Long) => Long;
|
|
287
|
-
and: (other: string | number | Long) => Long;
|
|
288
|
-
compare: (other: string | number | Long) => number;
|
|
289
|
-
comp: (other: string | number | Long) => number;
|
|
290
|
-
divide: (divisor: string | number | Long) => Long;
|
|
291
|
-
div: (divisor: string | number | Long) => Long;
|
|
292
|
-
equals: (other: string | number | Long) => boolean;
|
|
293
|
-
eq: (other: string | number | Long) => boolean;
|
|
294
|
-
getHighBits: () => number;
|
|
295
|
-
getHighBitsUnsigned: () => number;
|
|
296
|
-
getLowBits: () => number;
|
|
297
|
-
getLowBitsUnsigned: () => number;
|
|
298
|
-
getNumBitsAbs: () => number;
|
|
299
|
-
greaterThan: (other: string | number | Long) => boolean;
|
|
300
|
-
gt: (other: string | number | Long) => boolean;
|
|
301
|
-
greaterThanOrEqual: (other: string | number | Long) => boolean;
|
|
302
|
-
gte: (other: string | number | Long) => boolean;
|
|
303
|
-
ge: (other: string | number | Long) => boolean;
|
|
304
|
-
isEven: () => boolean;
|
|
305
|
-
isNegative: () => boolean;
|
|
306
|
-
isOdd: () => boolean;
|
|
307
|
-
isPositive: () => boolean;
|
|
308
|
-
isZero: () => boolean;
|
|
309
|
-
eqz: () => boolean;
|
|
310
|
-
lessThan: (other: string | number | Long) => boolean;
|
|
311
|
-
lt: (other: string | number | Long) => boolean;
|
|
312
|
-
lessThanOrEqual: (other: string | number | Long) => boolean;
|
|
313
|
-
lte: (other: string | number | Long) => boolean;
|
|
314
|
-
le: (other: string | number | Long) => boolean;
|
|
315
|
-
modulo: (other: string | number | Long) => Long;
|
|
316
|
-
mod: (other: string | number | Long) => Long;
|
|
317
|
-
rem: (other: string | number | Long) => Long;
|
|
318
|
-
multiply: (multiplier: string | number | Long) => Long;
|
|
319
|
-
mul: (multiplier: string | number | Long) => Long;
|
|
320
|
-
negate: () => Long;
|
|
321
|
-
neg: () => Long;
|
|
322
|
-
not: () => Long;
|
|
323
|
-
countLeadingZeros: () => number;
|
|
324
|
-
clz: () => number;
|
|
325
|
-
countTrailingZeros: () => number;
|
|
326
|
-
ctz: () => number;
|
|
327
|
-
notEquals: (other: string | number | Long) => boolean;
|
|
328
|
-
neq: (other: string | number | Long) => boolean;
|
|
329
|
-
ne: (other: string | number | Long) => boolean;
|
|
330
|
-
or: (other: string | number | Long) => Long;
|
|
331
|
-
shiftLeft: (numBits: number | Long) => Long;
|
|
332
|
-
shl: (numBits: number | Long) => Long;
|
|
333
|
-
shiftRight: (numBits: number | Long) => Long;
|
|
334
|
-
shr: (numBits: number | Long) => Long;
|
|
335
|
-
shiftRightUnsigned: (numBits: number | Long) => Long;
|
|
336
|
-
shru: (numBits: number | Long) => Long;
|
|
337
|
-
shr_u: (numBits: number | Long) => Long;
|
|
338
|
-
rotateLeft: (numBits: number | Long) => Long;
|
|
339
|
-
rotl: (numBits: number | Long) => Long;
|
|
340
|
-
rotateRight: (numBits: number | Long) => Long;
|
|
341
|
-
rotr: (numBits: number | Long) => Long;
|
|
342
|
-
subtract: (subtrahend: string | number | Long) => Long;
|
|
343
|
-
sub: (subtrahend: string | number | Long) => Long;
|
|
344
|
-
toInt: () => number;
|
|
345
|
-
toNumber: () => number;
|
|
346
|
-
toBytes: (le?: boolean | undefined) => number[];
|
|
347
|
-
toBytesLE: () => number[];
|
|
348
|
-
toBytesBE: () => number[];
|
|
349
|
-
toSigned: () => Long;
|
|
350
|
-
toString: (radix?: number | undefined) => string;
|
|
351
|
-
toUnsigned: () => Long;
|
|
352
|
-
xor: (other: string | number | Long) => Long;
|
|
353
|
-
} & Record<Exclude<keyof I["gasLimit"], keyof Long>, never>) | undefined;
|
|
354
|
-
payer?: string | undefined;
|
|
355
|
-
granter?: string | undefined;
|
|
356
|
-
} & Record<Exclude<keyof I, keyof Fee>, never>>(object: I): Fee;
|
|
146
|
+
fromPartial<I extends Exact<DeepPartial<Fee>, I>>(object: I): Fee;
|
|
357
147
|
};
|
|
358
148
|
declare const Any: {
|
|
359
149
|
encode(message: Any, writer?: _m0.Writer): _m0.Writer;
|
|
360
150
|
decode(input: _m0.Reader | Uint8Array, length?: number): Any;
|
|
361
151
|
fromJSON(object: any): Any;
|
|
362
152
|
toJSON(message: Any): unknown;
|
|
363
|
-
fromPartial<I extends
|
|
364
|
-
typeUrl?: string | undefined;
|
|
365
|
-
value?: Uint8Array | undefined;
|
|
366
|
-
} & {
|
|
367
|
-
typeUrl?: string | undefined;
|
|
368
|
-
value?: Uint8Array | undefined;
|
|
369
|
-
} & Record<Exclude<keyof I, keyof Any>, never>>(object: I): Any;
|
|
153
|
+
fromPartial<I extends Exact<DeepPartial<Any>, I>>(object: I): Any;
|
|
370
154
|
};
|
|
371
155
|
export declare const prepareSignBytes: (txBodyEncodeObject: EncodeObject, fee: StdFee, pubKey: Uint8Array, sequence: number, chainId: string, accountNumber: number) => Promise<Uint8Array>;
|
|
372
156
|
export declare const encodeTxBytes: (txBodyEncodeObject: EncodeObject, fee: StdFee, pubKey: Uint8Array, sequence: number, signature: StdSignature, chainId: string, accountNumber: number) => Promise<Uint8Array>;
|