@airgap/coinlib-core 0.13.45-beta.3 → 0.13.45-beta.4
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 +83 -30
- package/actions/Action.js.map +1 -1
- package/actions/LinkedAction.js +82 -18
- package/actions/LinkedAction.js.map +1 -1
- package/actions/RepeatableAction.js +83 -20
- package/actions/RepeatableAction.js.map +1 -1
- package/actions/SimpleAction.js +74 -12
- package/actions/SimpleAction.js.map +1 -1
- package/actions/StateMachine.js +17 -16
- package/actions/StateMachine.js.map +1 -1
- package/data/KeyPair.d.ts +1 -0
- package/data/Lazy.js +64 -15
- package/data/Lazy.js.map +1 -1
- package/data/RPCBody.js +6 -3
- 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 +130 -88
- 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 +61 -57
- 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 +2 -1
- 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 +10 -8
- 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 +28 -22
- 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 +10 -9
- 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 +11 -10
- 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 +8 -7
- 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 +63 -61
- 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 +63 -61
- 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 +3 -2
- 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 +76 -47
- 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 +61 -46
- 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 +106 -61
- 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 +100 -95
- 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 +75 -46
- 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 +70 -45
- 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 +63 -58
- 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 +33 -30
- 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 +20 -18
- 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 +12 -5
- 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 +76 -75
- 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 +178 -115
- 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 +9 -6
- 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 +83 -78
- 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 +36 -27
- 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 +26 -25
- 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 +230 -14
- package/dependencies/src/cosmjs/index.js +480 -373
- package/dependencies/src/cosmjs/index.js.map +1 -1
- package/dependencies/src/eciesjs-0.3.9/src/index.d.ts +1 -0
- package/dependencies/src/eciesjs-0.3.9/src/index.js +19 -15
- 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 +1 -0
- package/dependencies/src/eciesjs-0.3.9/src/keys/PrivateKey.js +28 -37
- 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 +1 -0
- package/dependencies/src/eciesjs-0.3.9/src/keys/PublicKey.js +30 -38
- 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 +1 -0
- package/dependencies/src/eciesjs-0.3.9/src/utils.js +24 -33
- package/dependencies/src/eciesjs-0.3.9/src/utils.js.map +1 -1
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-key.js +34 -42
- 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 +10 -6
- package/dependencies/src/hd-wallet-js-b216450e56954a6e82ace0aade9474673de5d9d5/src/hd-wallet.js.map +1 -1
- package/errors/coinlib-error.d.ts +2 -1
- package/errors/coinlib-error.js +38 -16
- package/errors/coinlib-error.js.map +1 -1
- package/errors/index.d.ts +2 -2
- package/errors/index.js +148 -89
- 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 +54 -7
- package/protocols/BlockExplorerProtocol.js.map +1 -1
- package/protocols/CryptoClient.js +78 -19
- package/protocols/CryptoClient.js.map +1 -1
- package/protocols/Ed25519CryptoClient.js +98 -30
- package/protocols/Ed25519CryptoClient.js.map +1 -1
- package/protocols/ICoinSubProtocol.js +1 -1
- package/protocols/ICoinSubProtocol.js.map +1 -1
- package/protocols/NonExtendedProtocol.js +29 -26
- package/protocols/NonExtendedProtocol.js.map +1 -1
- package/protocols/Secp256k1CryptoClient.js +73 -9
- package/protocols/Secp256k1CryptoClient.js.map +1 -1
- package/protocols/Sr25519CryptoClient.js +76 -12
- package/protocols/Sr25519CryptoClient.js.map +1 -1
- package/utils/AES.js +132 -81
- package/utils/AES.js.map +1 -1
- package/utils/ErrorWithData.js +23 -5
- package/utils/ErrorWithData.js.map +1 -1
- package/utils/Network.js +1 -1
- package/utils/Network.js.map +1 -1
- package/utils/ProtocolBlockExplorer.js +4 -3
- package/utils/ProtocolBlockExplorer.js.map +1 -1
- package/utils/ProtocolNetwork.js +16 -11
- package/utils/ProtocolNetwork.js.map +1 -1
- package/utils/ProtocolSymbols.d.ts +3 -1
- package/utils/ProtocolSymbols.js +8 -6
- package/utils/ProtocolSymbols.js.map +1 -1
- package/utils/array.js +15 -14
- package/utils/array.js.map +1 -1
- package/utils/assert.js +12 -8
- package/utils/assert.js.map +1 -1
- package/utils/base64Check.d.ts +1 -0
- package/utils/base64Check.js +15 -15
- package/utils/base64Check.js.map +1 -1
- package/utils/blake2b.js +14 -11
- package/utils/blake2b.js.map +1 -1
- package/utils/buffer.d.ts +1 -0
- package/utils/buffer.js +1 -1
- package/utils/buffer.js.map +1 -1
- package/utils/cache.js +87 -38
- package/utils/cache.js.map +1 -1
- package/utils/error.js +3 -2
- package/utils/error.js.map +1 -1
- package/utils/hex.d.ts +2 -1
- package/utils/hex.js +38 -31
- package/utils/hex.js.map +1 -1
- package/utils/interfaces.js +4 -3
- package/utils/interfaces.js.map +1 -1
- package/utils/object.js +7 -5
- package/utils/object.js.map +1 -1
- package/utils/padStart.js +2 -1
- package/utils/padStart.js.map +1 -1
- package/utils/remote-data/HttpRemoteData.js +107 -24
- package/utils/remote-data/HttpRemoteData.js.map +1 -1
- package/utils/remote-data/IpfsRemoteData.js +116 -32
- package/utils/remote-data/IpfsRemoteData.js.map +1 -1
- package/utils/remote-data/RemoteData.d.ts +1 -0
- package/utils/remote-data/RemoteData.js +4 -3
- package/utils/remote-data/RemoteData.js.map +1 -1
- package/utils/remote-data/RemoteDataFactory.d.ts +2 -2
- package/utils/remote-data/RemoteDataFactory.js +20 -13
- package/utils/remote-data/RemoteDataFactory.js.map +1 -1
- package/utils/remote-data/Sha256RemoteData.d.ts +1 -0
- package/utils/remote-data/Sha256RemoteData.js +117 -44
- package/utils/remote-data/Sha256RemoteData.js.map +1 -1
- package/utils/string.js +9 -8
- package/utils/string.js.map +1 -1
- package/utils/type.js +4 -3
- package/utils/type.js.map +1 -1
- package/utils/xxhash.d.ts +1 -0
- package/utils/xxhash.js +11 -9
- package/utils/xxhash.js.map +1 -1
- package/wallet/AirGapCoinWallet.js +183 -64
- package/wallet/AirGapCoinWallet.js.map +1 -1
- package/wallet/AirGapMarketWallet.js +201 -88
- package/wallet/AirGapMarketWallet.js.map +1 -1
- package/wallet/AirGapNFTWallet.js +165 -48
- package/wallet/AirGapNFTWallet.js.map +1 -1
- package/wallet/AirGapWallet.js +145 -58
- 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":";;;;;;;;;;;;;;;AAAA,yCAA2D;AAE3D,+EAA6D;AAE7D,IAAY,gBAKX;AALD,WAAY,gBAAgB;IAC1B,iFAAiB,CAAA;IACjB,+EAAgB,CAAA;IAChB,2EAAc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H,SAAgB,eAAe,CAAC,KAAa;IAC3C,OAAO,qBAAqB,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;AACtD,CAAC;AAFD,0CAEC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC7C,OAAO,qBAAqB,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;AACvD,CAAC;AAFD,8CAEC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC7C,OAAO,qBAAqB,CAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;AAChD,CAAC;AAFD,8CAEC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,iBAAiB,CAAC,KAAa;IAC7C,OAAO,qBAAqB,CAAC,KAAK,EAAE,eAAe,CAAC,CAAC;AACvD,CAAC;AAFD,8CAEC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,gBAAgB,CAAC,KAAa;IAC5C,OAAO,qBAAqB,CAAC,KAAK,EAAE,cAAc,CAAC,CAAC;AACtD,CAAC;AAFD,4CAEC;AAED;;;;;;;;;;;;;;GAcG;AACH,SAAgB,aAAa,CAAC,KAAa;IACzC,OAAO,qBAAqB,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;AACnD,CAAC;AAFD,sCAEC;AAED;;;;GAIG;AACH,SAAgB,mBAAmB,CAAC,KAAU;IAC5C,OAAO,qBAAqB,CAAC,KAAK,EAAE,CAAC,kBAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AACrD,CAAC;AAFD,kDAEC"}
|
package/dependencies/src/@taquito/utils-15.0.1/packages/taquito-utils/src/verify-signature.js
CHANGED
|
@@ -3,14 +3,13 @@ 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.verifySignature =
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
const errors_1 = require("./errors");
|
|
6
|
+
exports.validatePkAndExtractPrefix = exports.verifySignature = void 0;
|
|
7
|
+
var ed25519_1 = require("../../../../../@stablelib/ed25519-1.0.3/packages/ed25519/ed25519");
|
|
8
|
+
var blake2b_1 = require("../../../../../@stablelib/blake2b-1.0.1/packages/blake2b/blake2b");
|
|
9
|
+
var taquito_utils_1 = require("./taquito-utils");
|
|
10
|
+
var elliptic_1 = __importDefault(require("elliptic"));
|
|
11
|
+
var index_1 = __importDefault(require("../../../../../typedarray-to-buffer-4.0.0/index"));
|
|
12
|
+
var errors_1 = require("./errors");
|
|
14
13
|
/**
|
|
15
14
|
* @description Verify signature of a payload
|
|
16
15
|
*
|
|
@@ -31,11 +30,11 @@ const errors_1 = require("./errors");
|
|
|
31
30
|
*
|
|
32
31
|
*/
|
|
33
32
|
function verifySignature(messageBytes, publicKey, signature) {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
var pkPrefix = validatePkAndExtractPrefix(publicKey);
|
|
34
|
+
var sigPrefix = validateSigAndExtractPrefix(signature);
|
|
35
|
+
var decodedPublicKey = (0, taquito_utils_1.b58cdecode)(publicKey, taquito_utils_1.prefix[pkPrefix]);
|
|
36
|
+
var decodedSig = (0, taquito_utils_1.b58cdecode)(signature, taquito_utils_1.prefix[sigPrefix]);
|
|
37
|
+
var bytesHash = (0, blake2b_1.hash)((0, taquito_utils_1.hex2buf)(validateMessageNotEmpty(messageBytes)), 32);
|
|
39
38
|
if (pkPrefix === taquito_utils_1.Prefix.EDPK) {
|
|
40
39
|
return verifyEdSignature(decodedSig, bytesHash, decodedPublicKey);
|
|
41
40
|
}
|
|
@@ -49,6 +48,7 @@ function verifySignature(messageBytes, publicKey, signature) {
|
|
|
49
48
|
return false;
|
|
50
49
|
}
|
|
51
50
|
}
|
|
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
|
+
var pkPrefix = publicKey.substring(0, 4);
|
|
63
|
+
var 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,19 +69,20 @@ 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: ".concat(pkPrefix));
|
|
73
73
|
}
|
|
74
74
|
}
|
|
75
75
|
return pkPrefix;
|
|
76
76
|
}
|
|
77
|
+
exports.validatePkAndExtractPrefix = validatePkAndExtractPrefix;
|
|
77
78
|
function validateSigAndExtractPrefix(signature) {
|
|
78
|
-
|
|
79
|
+
var signaturePrefix = signature.startsWith('sig')
|
|
79
80
|
? signature.substr(0, 3)
|
|
80
81
|
: signature.substr(0, 5);
|
|
81
|
-
|
|
82
|
+
var validation = (0, taquito_utils_1.validateSignature)(signature);
|
|
82
83
|
if (validation !== taquito_utils_1.ValidationResult.VALID) {
|
|
83
84
|
if (validation === taquito_utils_1.ValidationResult.INVALID_CHECKSUM) {
|
|
84
|
-
throw new errors_1.InvalidSignatureError(signature,
|
|
85
|
+
throw new errors_1.InvalidSignatureError(signature, "invalid checksum");
|
|
85
86
|
}
|
|
86
87
|
else if (validation === taquito_utils_1.ValidationResult.INVALID_LENGTH) {
|
|
87
88
|
throw new errors_1.InvalidSignatureError(signature, 'invalid length');
|
|
@@ -101,20 +102,20 @@ function verifyEdSignature(decodedSig, bytesHash, decodedPublicKey) {
|
|
|
101
102
|
}
|
|
102
103
|
}
|
|
103
104
|
function verifySpSignature(decodedSig, bytesHash, decodedPublicKey) {
|
|
104
|
-
|
|
105
|
+
var key = new elliptic_1.default.ec('secp256k1').keyFromPublic(decodedPublicKey);
|
|
105
106
|
return verifySpOrP2Sig(decodedSig, bytesHash, key);
|
|
106
107
|
}
|
|
107
108
|
function verifyP2Signature(decodedSig, bytesHash, decodedPublicKey) {
|
|
108
|
-
|
|
109
|
+
var key = new elliptic_1.default.ec('p256').keyFromPublic(decodedPublicKey);
|
|
109
110
|
return verifySpOrP2Sig(decodedSig, bytesHash, key);
|
|
110
111
|
}
|
|
111
112
|
function verifySpOrP2Sig(decodedSig, bytesHash, key) {
|
|
112
|
-
|
|
113
|
-
|
|
113
|
+
var hexSig = (0, taquito_utils_1.buf2hex)((0, index_1.default)(decodedSig));
|
|
114
|
+
var match = hexSig.match(/([a-f\d]{64})/gi);
|
|
114
115
|
if (match) {
|
|
115
116
|
try {
|
|
116
|
-
|
|
117
|
-
return key.verify(bytesHash, { r, s });
|
|
117
|
+
var r = match[0], s = match[1];
|
|
118
|
+
return key.verify(bytesHash, { r: r, s: s });
|
|
118
119
|
}
|
|
119
120
|
catch (e) {
|
|
120
121
|
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":";;;;;;AAAA,4FAA0F;AAC1F,4FAAwF;AACxF,iDASyB;AACzB,sDAAgC;AAChC,0FAAuE;AACvE,mCAA6F;AAK7F;;;;;;;;;;;;;;;;;;GAkBG;AACH,SAAgB,eAAe,CAC7B,YAAoB,EACpB,SAAiB,EACjB,SAAiB;IAEjB,IAAM,QAAQ,GAAG,0BAA0B,CAAC,SAAS,CAAC,CAAC;IACvD,IAAM,SAAS,GAAG,2BAA2B,CAAC,SAAS,CAAC,CAAC;IAEzD,IAAM,gBAAgB,GAAG,IAAA,0BAAU,EAAC,SAAS,EAAE,sBAAM,CAAC,QAAQ,CAAC,CAAC,CAAC;IACjE,IAAM,UAAU,GAAG,IAAA,0BAAU,EAAC,SAAS,EAAE,sBAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IAC5D,IAAM,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;QAC5B,OAAO,iBAAiB,CAAC,UAAU,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;KACnE;SAAM,IAAI,QAAQ,KAAK,sBAAM,CAAC,IAAI,EAAE;QACnC,OAAO,iBAAiB,CAAC,UAAU,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;KACnE;SAAM,IAAI,QAAQ,KAAK,sBAAM,CAAC,IAAI,EAAE;QACnC,OAAO,iBAAiB,CAAC,UAAU,EAAE,SAAS,EAAE,gBAAgB,CAAC,CAAC;KACnE;SAAM;QACL,OAAO,KAAK,CAAC;KACd;AACH,CAAC;AArBD,0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AAqB,EAAE,GAAwB;IAC9F,IAAM,MAAM,GAAG,IAAA,uBAAO,EAAC,IAAA,eAAQ,EAAC,UAAU,CAAC,CAAC,CAAC;IAC7C,IAAM,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAAC;IAC9C,IAAI,KAAK,EAAE;QACT,IAAI;YACK,IAAA,CAAC,GAAO,KAAK,GAAZ,EAAE,CAAC,GAAI,KAAK,GAAT,CAAU;YACrB,OAAO,GAAG,CAAC,MAAM,CAAC,SAAS,EAAE,EAAE,CAAC,GAAA,EAAE,CAAC,GAAA,EAAE,CAAC,CAAC;SACxC;QAAC,OAAO,CAAC,EAAE;YACV,OAAO,KAAK,CAAC;SACd;KACF;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,13 +1,5 @@
|
|
|
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>;
|
|
11
3
|
interface Any {
|
|
12
4
|
/**
|
|
13
5
|
* A URL/resource name that uniquely identifies the type of the serialized
|
|
@@ -115,42 +107,266 @@ declare const ModeInfo_Single: {
|
|
|
115
107
|
decode(input: _m0.Reader | Uint8Array, length?: number): ModeInfo_Single;
|
|
116
108
|
fromJSON(object: any): ModeInfo_Single;
|
|
117
109
|
toJSON(message: ModeInfo_Single): unknown;
|
|
118
|
-
fromPartial<I extends
|
|
110
|
+
fromPartial<I extends {
|
|
111
|
+
mode?: number | undefined;
|
|
112
|
+
} & {
|
|
113
|
+
mode?: number | undefined;
|
|
114
|
+
} & Record<Exclude<keyof I, "mode">, never>>(object: I): ModeInfo_Single;
|
|
119
115
|
};
|
|
120
116
|
declare const ModeInfo: {
|
|
121
117
|
encode(message: ModeInfo, writer?: _m0.Writer): _m0.Writer;
|
|
122
118
|
decode(input: _m0.Reader | Uint8Array, length?: number): ModeInfo;
|
|
123
119
|
fromJSON(object: any): ModeInfo;
|
|
124
120
|
toJSON(message: ModeInfo): unknown;
|
|
125
|
-
fromPartial<I extends
|
|
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;
|
|
126
132
|
};
|
|
127
133
|
declare const SignerInfo: {
|
|
128
134
|
encode(message: SignerInfo, writer?: _m0.Writer): _m0.Writer;
|
|
129
135
|
decode(input: _m0.Reader | Uint8Array, length?: number): SignerInfo;
|
|
130
136
|
fromJSON(object: any): SignerInfo;
|
|
131
137
|
toJSON(message: SignerInfo): unknown;
|
|
132
|
-
fromPartial<I extends
|
|
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;
|
|
133
241
|
};
|
|
134
242
|
declare const Coin: {
|
|
135
243
|
encode(message: Coin, writer?: _m0.Writer): _m0.Writer;
|
|
136
244
|
decode(input: _m0.Reader | Uint8Array, length?: number): Coin;
|
|
137
245
|
fromJSON(object: any): Coin;
|
|
138
246
|
toJSON(message: Coin): unknown;
|
|
139
|
-
fromPartial<I extends
|
|
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;
|
|
140
254
|
};
|
|
141
255
|
declare const Fee: {
|
|
142
256
|
encode(message: Fee, writer?: _m0.Writer): _m0.Writer;
|
|
143
257
|
decode(input: _m0.Reader | Uint8Array, length?: number): Fee;
|
|
144
258
|
fromJSON(object: any): Fee;
|
|
145
259
|
toJSON(message: Fee): unknown;
|
|
146
|
-
fromPartial<I extends
|
|
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;
|
|
147
357
|
};
|
|
148
358
|
declare const Any: {
|
|
149
359
|
encode(message: Any, writer?: _m0.Writer): _m0.Writer;
|
|
150
360
|
decode(input: _m0.Reader | Uint8Array, length?: number): Any;
|
|
151
361
|
fromJSON(object: any): Any;
|
|
152
362
|
toJSON(message: Any): unknown;
|
|
153
|
-
fromPartial<I extends
|
|
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;
|
|
154
370
|
};
|
|
155
371
|
export declare const prepareSignBytes: (txBodyEncodeObject: EncodeObject, fee: StdFee, pubKey: Uint8Array, sequence: number, chainId: string, accountNumber: number) => Promise<Uint8Array>;
|
|
156
372
|
export declare const encodeTxBytes: (txBodyEncodeObject: EncodeObject, fee: StdFee, pubKey: Uint8Array, sequence: number, signature: StdSignature, chainId: string, accountNumber: number) => Promise<Uint8Array>;
|