@bitgo-beta/sdk-core 8.2.1-beta.21 → 8.2.1-beta.2100
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/dist/src/account-lib/baseCoin/baseTransaction.d.ts +0 -1
- package/dist/src/account-lib/baseCoin/baseTransaction.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/baseTransactionBuilder.d.ts +3 -3
- package/dist/src/account-lib/baseCoin/baseTransactionBuilder.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/baseTransactionBuilder.js +4 -3
- package/dist/src/account-lib/baseCoin/ed25519KeyPair.d.ts +1 -0
- package/dist/src/account-lib/baseCoin/ed25519KeyPair.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/ed25519KeyPair.js +43 -31
- package/dist/src/account-lib/baseCoin/enum.d.ts +61 -2
- package/dist/src/account-lib/baseCoin/enum.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/enum.js +118 -6
- package/dist/src/account-lib/baseCoin/errors.d.ts +3 -0
- package/dist/src/account-lib/baseCoin/errors.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/errors.js +8 -2
- package/dist/src/account-lib/baseCoin/iface.d.ts +19 -35
- package/dist/src/account-lib/baseCoin/iface.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/iface.js +26 -18
- package/dist/src/account-lib/baseCoin/index.d.ts +1 -1
- package/dist/src/account-lib/baseCoin/index.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/index.js +8 -5
- package/dist/src/account-lib/baseCoin/messages/baseMessage.d.ts +88 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessage.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessage.js +154 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilder.d.ts +67 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilder.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilder.js +144 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilderFactory.d.ts +33 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilderFactory.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilderFactory.js +45 -0
- package/dist/src/account-lib/baseCoin/messages/iface.d.ts +164 -0
- package/dist/src/account-lib/baseCoin/messages/iface.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/iface.js +3 -0
- package/dist/src/account-lib/baseCoin/messages/index.d.ts +6 -0
- package/dist/src/account-lib/baseCoin/messages/index.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/index.js +22 -0
- package/dist/src/account-lib/baseCoin/messages/simple/index.d.ts +3 -0
- package/dist/src/account-lib/baseCoin/messages/simple/index.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/simple/index.js +19 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessage.d.ts +13 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessage.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessage.js +28 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessageBuilder.d.ts +21 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessageBuilder.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessageBuilder.js +28 -0
- package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.d.ts +1 -2
- package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.js +38 -26
- package/dist/src/account-lib/index.d.ts +0 -1
- package/dist/src/account-lib/index.d.ts.map +1 -1
- package/dist/src/account-lib/index.js +23 -10
- package/dist/src/account-lib/mpc/curves/ed25519.d.ts +4 -18
- package/dist/src/account-lib/mpc/curves/ed25519.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/curves/ed25519.js +6 -60
- package/dist/src/account-lib/mpc/index.d.ts +4 -4
- package/dist/src/account-lib/mpc/index.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/index.js +11 -7
- package/dist/src/account-lib/mpc/shamir.d.ts +5 -37
- package/dist/src/account-lib/mpc/shamir.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/shamir.js +6 -130
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts +40 -11
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.js +521 -378
- package/dist/src/account-lib/mpc/tss/ecdsa/index.js +23 -9
- package/dist/src/account-lib/mpc/tss/ecdsa/rangeproof.d.ts +2 -2
- package/dist/src/account-lib/mpc/tss/ecdsa/rangeproof.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/ecdsa/rangeproof.js +3 -3
- package/dist/src/account-lib/mpc/tss/ecdsa/types.d.ts +73 -52
- package/dist/src/account-lib/mpc/tss/ecdsa/types.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/ecdsa/types.js +1 -1
- package/dist/src/account-lib/mpc/tss/eddsa/eddsa.d.ts +1 -2
- package/dist/src/account-lib/mpc/tss/eddsa/eddsa.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/eddsa/eddsa.js +66 -69
- package/dist/src/account-lib/mpc/tss/eddsa/index.js +23 -9
- package/dist/src/account-lib/mpc/tss/eddsa/types.d.ts +1 -4
- package/dist/src/account-lib/mpc/tss/eddsa/types.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/eddsa/types.js +1 -1
- package/dist/src/account-lib/mpc/tss/index.js +23 -9
- package/dist/src/account-lib/mpc/util.d.ts +7 -1
- package/dist/src/account-lib/mpc/util.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/util.js +24 -1
- package/dist/src/account-lib/staking/index.js +6 -2
- package/dist/src/account-lib/staking/utils.js +3 -3
- package/dist/src/account-lib/util/crypto.d.ts +8 -2
- package/dist/src/account-lib/util/crypto.d.ts.map +1 -1
- package/dist/src/account-lib/util/crypto.js +69 -38
- package/dist/src/api/bip32path.js +2 -3
- package/dist/src/api/index.js +6 -2
- package/dist/src/api/types.d.ts +37 -0
- package/dist/src/api/types.d.ts.map +1 -1
- package/dist/src/api/types.js +8 -1
- package/dist/src/bitgo/address-book/address-book.d.ts +61 -0
- package/dist/src/bitgo/address-book/address-book.d.ts.map +1 -0
- package/dist/src/bitgo/address-book/address-book.js +150 -0
- package/dist/src/bitgo/address-book/index.d.ts +3 -0
- package/dist/src/bitgo/address-book/index.d.ts.map +1 -0
- package/dist/src/{openssl → bitgo/address-book}/index.js +8 -3
- package/dist/src/bitgo/address-book/types.d.ts +170 -0
- package/dist/src/bitgo/address-book/types.d.ts.map +1 -0
- package/dist/src/bitgo/address-book/types.js +3 -0
- package/dist/src/bitgo/baseCoin/baseCoin.d.ts +139 -12
- package/dist/src/bitgo/baseCoin/baseCoin.d.ts.map +1 -1
- package/dist/src/bitgo/baseCoin/baseCoin.js +217 -16
- package/dist/src/bitgo/baseCoin/iBaseCoin.d.ts +366 -29
- package/dist/src/bitgo/baseCoin/iBaseCoin.d.ts.map +1 -1
- package/dist/src/bitgo/baseCoin/iBaseCoin.js +14 -3
- package/dist/src/bitgo/baseCoin/index.js +6 -2
- package/dist/src/bitgo/bip32util.d.ts +3 -16
- package/dist/src/bitgo/bip32util.d.ts.map +1 -1
- package/dist/src/bitgo/bip32util.js +4 -56
- package/dist/src/bitgo/bitcoin.d.ts +0 -1
- package/dist/src/bitgo/bitcoin.d.ts.map +1 -1
- package/dist/src/bitgo/bitcoin.js +26 -13
- package/dist/src/bitgo/bitgoBase.d.ts +19 -5
- package/dist/src/bitgo/bitgoBase.d.ts.map +1 -1
- package/dist/src/bitgo/bitgoBase.js +1 -1
- package/dist/src/bitgo/coinFactory.d.ts +24 -3
- package/dist/src/bitgo/coinFactory.d.ts.map +1 -1
- package/dist/src/bitgo/coinFactory.js +35 -3
- package/dist/src/bitgo/config.d.ts +3 -89
- package/dist/src/bitgo/config.d.ts.map +1 -1
- package/dist/src/bitgo/config.js +26 -15
- package/dist/src/bitgo/defi/defiVault.d.ts +171 -0
- package/dist/src/bitgo/defi/defiVault.d.ts.map +1 -0
- package/dist/src/bitgo/defi/defiVault.js +445 -0
- package/dist/src/bitgo/defi/iDefiVault.d.ts +101 -0
- package/dist/src/bitgo/defi/iDefiVault.d.ts.map +1 -0
- package/dist/src/bitgo/defi/iDefiVault.js +6 -0
- package/dist/src/bitgo/defi/index.d.ts +3 -0
- package/dist/src/bitgo/defi/index.d.ts.map +1 -0
- package/dist/src/bitgo/defi/index.js +22 -0
- package/dist/src/bitgo/ecdh.d.ts +0 -1
- package/dist/src/bitgo/ecdh.d.ts.map +1 -1
- package/dist/src/bitgo/ecdh.js +26 -13
- package/dist/src/bitgo/enterprise/enterprise.d.ts +22 -14
- package/dist/src/bitgo/enterprise/enterprise.d.ts.map +1 -1
- package/dist/src/bitgo/enterprise/enterprise.js +72 -31
- package/dist/src/bitgo/enterprise/enterprises.d.ts +6 -0
- package/dist/src/bitgo/enterprise/enterprises.d.ts.map +1 -1
- package/dist/src/bitgo/enterprise/enterprises.js +48 -9
- package/dist/src/bitgo/enterprise/iEnterprise.d.ts +9 -7
- package/dist/src/bitgo/enterprise/iEnterprise.d.ts.map +1 -1
- package/dist/src/bitgo/enterprise/iEnterprise.js +1 -1
- package/dist/src/bitgo/enterprise/iEnterprises.d.ts +2 -0
- package/dist/src/bitgo/enterprise/iEnterprises.d.ts.map +1 -1
- package/dist/src/bitgo/enterprise/iEnterprises.js +1 -1
- package/dist/src/bitgo/enterprise/index.js +6 -2
- package/dist/src/bitgo/environments.d.ts +88 -5
- package/dist/src/bitgo/environments.d.ts.map +1 -1
- package/dist/src/bitgo/environments.js +436 -30
- package/dist/src/bitgo/errors.d.ts +189 -1
- package/dist/src/bitgo/errors.d.ts.map +1 -1
- package/dist/src/bitgo/errors.js +187 -3
- package/dist/src/bitgo/evm/evmUtils.d.ts +26 -0
- package/dist/src/bitgo/evm/evmUtils.d.ts.map +1 -0
- package/dist/src/bitgo/evm/evmUtils.js +50 -0
- package/dist/src/bitgo/index.d.ts +6 -1
- package/dist/src/bitgo/index.d.ts.map +1 -1
- package/dist/src/bitgo/index.js +32 -11
- package/dist/src/bitgo/inscriptionBuilder/iInscriptionBuilder.d.ts +3 -3
- package/dist/src/bitgo/inscriptionBuilder/iInscriptionBuilder.d.ts.map +1 -1
- package/dist/src/bitgo/inscriptionBuilder/iInscriptionBuilder.js +1 -1
- package/dist/src/bitgo/inscriptionBuilder/index.js +6 -2
- package/dist/src/bitgo/internal/index.js +6 -2
- package/dist/src/bitgo/internal/internal.js +5 -6
- package/dist/src/bitgo/internal/keycard.d.ts +13 -8
- package/dist/src/bitgo/internal/keycard.d.ts.map +1 -1
- package/dist/src/bitgo/internal/keycard.js +63 -48
- package/dist/src/bitgo/keychain/decryptKeychain.d.ts +14 -0
- package/dist/src/bitgo/keychain/decryptKeychain.d.ts.map +1 -0
- package/dist/src/bitgo/keychain/decryptKeychain.js +36 -0
- package/dist/src/bitgo/keychain/iKeychains.d.ts +189 -10
- package/dist/src/bitgo/keychain/iKeychains.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/iKeychains.js +2 -2
- package/dist/src/bitgo/keychain/index.d.ts +1 -0
- package/dist/src/bitgo/keychain/index.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/index.js +7 -2
- package/dist/src/bitgo/keychain/keychains.d.ts +106 -13
- package/dist/src/bitgo/keychain/keychains.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/keychains.js +451 -93
- package/dist/src/bitgo/keychain/ovcJsonCodec.d.ts +126 -91
- package/dist/src/bitgo/keychain/ovcJsonCodec.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/ovcJsonCodec.js +53 -32
- package/dist/src/bitgo/legacyBitcoin.d.ts +0 -1
- package/dist/src/bitgo/legacyBitcoin.d.ts.map +1 -1
- package/dist/src/bitgo/legacyBitcoin.js +27 -13
- package/dist/src/bitgo/lightning/lightningWalletUtil.d.ts +7 -0
- package/dist/src/bitgo/lightning/lightningWalletUtil.d.ts.map +1 -0
- package/dist/src/bitgo/lightning/lightningWalletUtil.js +25 -0
- package/dist/src/bitgo/market/iMarkets.d.ts +2 -2
- package/dist/src/bitgo/market/iMarkets.d.ts.map +1 -1
- package/dist/src/bitgo/market/index.js +6 -2
- package/dist/src/bitgo/market/markets.js +23 -9
- package/dist/src/bitgo/pendingApproval/iPendingApproval.d.ts +7 -1
- package/dist/src/bitgo/pendingApproval/iPendingApproval.d.ts.map +1 -1
- package/dist/src/bitgo/pendingApproval/iPendingApproval.js +4 -4
- package/dist/src/bitgo/pendingApproval/index.js +6 -2
- package/dist/src/bitgo/pendingApproval/pendingApproval.d.ts +20 -8
- package/dist/src/bitgo/pendingApproval/pendingApproval.d.ts.map +1 -1
- package/dist/src/bitgo/pendingApproval/pendingApproval.js +251 -110
- package/dist/src/bitgo/pendingApproval/pendingApprovals.js +23 -9
- package/dist/src/bitgo/proofs/WalletProofs.d.ts +19 -0
- package/dist/src/bitgo/proofs/WalletProofs.d.ts.map +1 -0
- package/dist/src/bitgo/proofs/WalletProofs.js +37 -0
- package/dist/src/bitgo/proofs/index.d.ts +2 -0
- package/dist/src/bitgo/proofs/index.d.ts.map +1 -0
- package/dist/src/bitgo/proofs/index.js +6 -0
- package/dist/src/bitgo/proofs/types.d.ts +80 -0
- package/dist/src/bitgo/proofs/types.d.ts.map +1 -0
- package/dist/src/bitgo/proofs/types.js +80 -0
- package/dist/src/bitgo/recovery/index.js +6 -2
- package/dist/src/bitgo/recovery/initiate.d.ts +20 -4
- package/dist/src/bitgo/recovery/initiate.d.ts.map +1 -1
- package/dist/src/bitgo/recovery/initiate.js +49 -41
- package/dist/src/bitgo/safe/derivableEd25519Pub.d.ts +13 -0
- package/dist/src/bitgo/safe/derivableEd25519Pub.d.ts.map +1 -0
- package/dist/src/bitgo/safe/derivableEd25519Pub.js +35 -0
- package/dist/src/bitgo/safe/iSafe.d.ts +124 -0
- package/dist/src/bitgo/safe/iSafe.d.ts.map +1 -0
- package/dist/src/bitgo/safe/iSafe.js +3 -0
- package/dist/src/bitgo/safe/iSafes.d.ts +94 -0
- package/dist/src/bitgo/safe/iSafes.d.ts.map +1 -0
- package/dist/src/bitgo/safe/iSafes.js +3 -0
- package/dist/src/bitgo/safe/index.d.ts +8 -0
- package/dist/src/bitgo/safe/index.d.ts.map +1 -0
- package/dist/src/bitgo/safe/index.js +24 -0
- package/dist/src/bitgo/safe/recovery.d.ts +92 -0
- package/dist/src/bitgo/safe/recovery.d.ts.map +1 -0
- package/dist/src/bitgo/safe/recovery.js +148 -0
- package/dist/src/bitgo/safe/rootCoin.d.ts +15 -0
- package/dist/src/bitgo/safe/rootCoin.d.ts.map +1 -0
- package/dist/src/bitgo/safe/rootCoin.js +47 -0
- package/dist/src/bitgo/safe/safe.d.ts +88 -0
- package/dist/src/bitgo/safe/safe.d.ts.map +1 -0
- package/dist/src/bitgo/safe/safe.js +409 -0
- package/dist/src/bitgo/safe/safes.d.ts +102 -0
- package/dist/src/bitgo/safe/safes.d.ts.map +1 -0
- package/dist/src/bitgo/safe/safes.js +281 -0
- package/dist/src/bitgo/staking/goStakingInterfaces.d.ts +136 -0
- package/dist/src/bitgo/staking/goStakingInterfaces.d.ts.map +1 -0
- package/dist/src/bitgo/staking/goStakingInterfaces.js +3 -0
- package/dist/src/bitgo/staking/goStakingWallet.d.ts +62 -0
- package/dist/src/bitgo/staking/goStakingWallet.d.ts.map +1 -0
- package/dist/src/bitgo/staking/goStakingWallet.js +141 -0
- package/dist/src/bitgo/staking/iGoStakingWallet.d.ts +17 -0
- package/dist/src/bitgo/staking/iGoStakingWallet.d.ts.map +1 -0
- package/dist/src/bitgo/staking/iGoStakingWallet.js +3 -0
- package/dist/src/bitgo/staking/iStakingWallet.d.ts +197 -8
- package/dist/src/bitgo/staking/iStakingWallet.d.ts.map +1 -1
- package/dist/src/bitgo/staking/iStakingWallet.js +2 -2
- package/dist/src/bitgo/staking/index.d.ts +3 -0
- package/dist/src/bitgo/staking/index.d.ts.map +1 -1
- package/dist/src/bitgo/staking/index.js +9 -2
- package/dist/src/bitgo/staking/stakingWallet.d.ts +27 -8
- package/dist/src/bitgo/staking/stakingWallet.d.ts.map +1 -1
- package/dist/src/bitgo/staking/stakingWallet.js +161 -7
- package/dist/src/bitgo/trading/iTradingAccount.d.ts +15 -33
- package/dist/src/bitgo/trading/iTradingAccount.d.ts.map +1 -1
- package/dist/src/bitgo/trading/iTradingAccount.js +1 -1
- package/dist/src/bitgo/trading/index.d.ts +1 -15
- package/dist/src/bitgo/trading/index.d.ts.map +1 -1
- package/dist/src/bitgo/trading/index.js +7 -17
- package/dist/src/bitgo/trading/network/decrypt-aes-gcm.d.ts +8 -0
- package/dist/src/bitgo/trading/network/decrypt-aes-gcm.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/decrypt-aes-gcm.js +31 -0
- package/dist/src/bitgo/trading/network/decrypt-rsa.d.ts +8 -0
- package/dist/src/bitgo/trading/network/decrypt-rsa.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/decrypt-rsa.js +23 -0
- package/dist/src/bitgo/trading/network/decrypt.d.ts +14 -0
- package/dist/src/bitgo/trading/network/decrypt.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/decrypt.js +23 -0
- package/dist/src/bitgo/trading/network/encrypt-aes-gcm.d.ts +8 -0
- package/dist/src/bitgo/trading/network/encrypt-aes-gcm.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/encrypt-aes-gcm.js +25 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa-browser.d.ts +8 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa-browser.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa-browser.js +65 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa.d.ts +8 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa.js +23 -0
- package/dist/src/bitgo/trading/network/encrypt.d.ts +37 -0
- package/dist/src/bitgo/trading/network/encrypt.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/encrypt.js +58 -0
- package/dist/src/bitgo/trading/network/index.d.ts +5 -0
- package/dist/src/bitgo/trading/network/index.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/index.js +21 -0
- package/dist/src/bitgo/trading/network/network.d.ts +36 -0
- package/dist/src/bitgo/trading/network/network.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/network.js +94 -0
- package/dist/src/bitgo/trading/network/types.d.ts +277 -0
- package/dist/src/bitgo/trading/network/types.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/types.js +3 -0
- package/dist/src/bitgo/trading/network/utils.d.ts +20 -0
- package/dist/src/bitgo/trading/network/utils.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/utils.js +54 -0
- package/dist/src/bitgo/trading/tradingAccount.d.ts +23 -33
- package/dist/src/bitgo/trading/tradingAccount.d.ts.map +1 -1
- package/dist/src/bitgo/trading/tradingAccount.js +58 -97
- package/dist/src/bitgo/tss/bitgoPubKeys.d.ts +49 -0
- package/dist/src/bitgo/tss/bitgoPubKeys.d.ts.map +1 -0
- package/dist/src/bitgo/tss/bitgoPubKeys.js +92 -0
- package/dist/src/bitgo/tss/common.d.ts +52 -6
- package/dist/src/bitgo/tss/common.d.ts.map +1 -1
- package/dist/src/bitgo/tss/common.js +144 -15
- package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts +6 -4
- package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/bitgo/tss/ecdsa/ecdsa.js +85 -81
- package/dist/src/bitgo/tss/ecdsa/ecdsaMPCv2.d.ts +15 -0
- package/dist/src/bitgo/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/tss/ecdsa/ecdsaMPCv2.js +167 -0
- package/dist/src/bitgo/tss/ecdsa/index.d.ts +1 -0
- package/dist/src/bitgo/tss/ecdsa/index.d.ts.map +1 -1
- package/dist/src/bitgo/tss/ecdsa/index.js +25 -10
- package/dist/src/bitgo/tss/ecdsa/types.d.ts +27 -27
- package/dist/src/bitgo/tss/ecdsa/types.d.ts.map +1 -1
- package/dist/src/bitgo/tss/ecdsa/types.js +3 -3
- package/dist/src/bitgo/tss/eddsa/eddsa.d.ts +19 -9
- package/dist/src/bitgo/tss/eddsa/eddsa.d.ts.map +1 -1
- package/dist/src/bitgo/tss/eddsa/eddsa.js +56 -38
- package/dist/src/bitgo/tss/eddsa/eddsaMPCv2.d.ts +42 -0
- package/dist/src/bitgo/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/tss/eddsa/eddsaMPCv2.js +104 -0
- package/dist/src/bitgo/tss/eddsa/index.js +23 -9
- package/dist/src/bitgo/tss/eddsa/types.d.ts +4 -4
- package/dist/src/bitgo/tss/eddsa/types.d.ts.map +1 -1
- package/dist/src/bitgo/tss/index.d.ts +3 -2
- package/dist/src/bitgo/tss/index.d.ts.map +1 -1
- package/dist/src/bitgo/tss/index.js +26 -10
- package/dist/src/bitgo/tss/redpallas/redpallasMPCv2.d.ts +79 -0
- package/dist/src/bitgo/tss/redpallas/redpallasMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/tss/redpallas/redpallasMPCv2.js +179 -0
- package/dist/src/bitgo/tss/types.d.ts +19 -0
- package/dist/src/bitgo/tss/types.d.ts.map +1 -1
- package/dist/src/bitgo/tss/types.js +2 -2
- package/dist/src/bitgo/types.d.ts +3 -3
- package/dist/src/bitgo/types.d.ts.map +1 -1
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.d.ts +14 -0
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.d.ts.map +1 -1
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.js +87 -10
- package/dist/src/bitgo/utils/codecProps.d.ts +7 -0
- package/dist/src/bitgo/utils/codecProps.d.ts.map +1 -0
- package/dist/src/bitgo/utils/codecProps.js +54 -0
- package/dist/src/bitgo/utils/codecs.d.ts +11 -0
- package/dist/src/bitgo/utils/codecs.d.ts.map +1 -0
- package/dist/src/bitgo/utils/codecs.js +59 -0
- package/dist/src/bitgo/utils/decode.d.ts.map +1 -1
- package/dist/src/bitgo/utils/decode.js +30 -16
- package/dist/src/bitgo/utils/index.d.ts +5 -2
- package/dist/src/bitgo/utils/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/index.js +28 -11
- package/dist/src/bitgo/utils/messageTypes.d.ts +46 -0
- package/dist/src/bitgo/utils/messageTypes.d.ts.map +1 -0
- package/dist/src/bitgo/utils/messageTypes.js +23 -0
- package/dist/src/bitgo/utils/mpcUtils.d.ts +4 -4
- package/dist/src/bitgo/utils/mpcUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/mpcUtils.js +208 -14
- package/dist/src/bitgo/utils/notEmpty.d.ts +2 -0
- package/dist/src/bitgo/utils/notEmpty.d.ts.map +1 -0
- package/dist/src/bitgo/utils/notEmpty.js +7 -0
- package/dist/src/bitgo/utils/opengpgUtils.d.ts +13 -9
- package/dist/src/bitgo/utils/opengpgUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/opengpgUtils.js +87 -73
- package/dist/src/bitgo/utils/postWithCodec.d.ts +18 -0
- package/dist/src/bitgo/utils/postWithCodec.d.ts.map +1 -0
- package/dist/src/bitgo/utils/postWithCodec.js +25 -0
- package/dist/src/bitgo/utils/promise-utils.d.ts +1 -1
- package/dist/src/bitgo/utils/promise-utils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/promise-utils.js +2 -3
- package/dist/src/bitgo/utils/siws.d.ts +17 -0
- package/dist/src/bitgo/utils/siws.d.ts.map +1 -0
- package/dist/src/bitgo/utils/siws.js +171 -0
- package/dist/src/bitgo/utils/transactionUtils.d.ts +9 -0
- package/dist/src/bitgo/utils/transactionUtils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/transactionUtils.js +29 -0
- package/dist/src/bitgo/utils/triple.d.ts +1 -1
- package/dist/src/bitgo/utils/triple.d.ts.map +1 -1
- package/dist/src/bitgo/utils/triple.js +2 -3
- package/dist/src/bitgo/utils/tss/addressVerification.d.ts +62 -0
- package/dist/src/bitgo/utils/tss/addressVerification.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/addressVerification.js +93 -0
- package/dist/src/bitgo/utils/tss/baseTSSUtils.d.ts +157 -28
- package/dist/src/bitgo/utils/tss/baseTSSUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/baseTSSUtils.js +381 -43
- package/dist/src/bitgo/utils/tss/baseTypes.d.ts +620 -44
- package/dist/src/bitgo/utils/tss/baseTypes.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/baseTypes.js +60 -10
- package/dist/src/bitgo/utils/tss/ecdsa/SMC/utils.d.ts +23 -0
- package/dist/src/bitgo/utils/tss/ecdsa/SMC/utils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/SMC/utils.js +157 -0
- package/dist/src/bitgo/utils/tss/ecdsa/base.d.ts +28 -0
- package/dist/src/bitgo/utils/tss/ecdsa/base.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/base.js +53 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.d.ts +63 -53
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.js +356 -327
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts +240 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.js +1076 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.d.ts +16 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.js +37 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaVrfMPCv2.d.ts +69 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaVrfMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaVrfMPCv2.js +442 -0
- package/dist/src/bitgo/utils/tss/ecdsa/index.d.ts +5 -0
- package/dist/src/bitgo/utils/tss/ecdsa/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/index.js +11 -2
- package/dist/src/bitgo/utils/tss/ecdsa/types.d.ts +15 -9
- package/dist/src/bitgo/utils/tss/ecdsa/types.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/types.js +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/typesMPCv2.d.ts +125 -0
- package/dist/src/bitgo/utils/tss/ecdsa/typesMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/typesMPCv2.js +55 -0
- package/dist/src/bitgo/utils/tss/eddsa/SMC/utils.d.ts +21 -0
- package/dist/src/bitgo/utils/tss/eddsa/SMC/utils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/SMC/utils.js +119 -0
- package/dist/src/bitgo/utils/tss/eddsa/base.d.ts +18 -0
- package/dist/src/bitgo/utils/tss/eddsa/base.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/base.js +64 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsa.d.ts +59 -14
- package/dist/src/bitgo/utils/tss/eddsa/eddsa.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/eddsa.js +318 -99
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts +260 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.js +995 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.d.ts +11 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.js +26 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.d.ts +42 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.js +267 -0
- package/dist/src/bitgo/utils/tss/eddsa/index.d.ts +5 -0
- package/dist/src/bitgo/utils/tss/eddsa/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/index.js +30 -8
- package/dist/src/bitgo/utils/tss/eddsa/types.d.ts +15 -7
- package/dist/src/bitgo/utils/tss/eddsa/types.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/types.js +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/typesEddsaMPCv2.d.ts +75 -0
- package/dist/src/bitgo/utils/tss/eddsa/typesEddsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/typesEddsaMPCv2.js +44 -0
- package/dist/src/bitgo/utils/tss/index.d.ts +7 -0
- package/dist/src/bitgo/utils/tss/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/index.js +31 -10
- package/dist/src/bitgo/utils/tss/keyShareEnvelope.d.ts +40 -0
- package/dist/src/bitgo/utils/tss/keyShareEnvelope.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/keyShareEnvelope.js +103 -0
- package/dist/src/bitgo/utils/tss/keyVerification.d.ts +45 -0
- package/dist/src/bitgo/utils/tss/keyVerification.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/keyVerification.js +192 -0
- package/dist/src/bitgo/utils/tss/preHashedSignable.d.ts +23 -0
- package/dist/src/bitgo/utils/tss/preHashedSignable.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/preHashedSignable.js +26 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.d.ts +42 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.js +168 -0
- package/dist/src/bitgo/utils/tss/redpallas/SMC/utils.d.ts +29 -0
- package/dist/src/bitgo/utils/tss/redpallas/SMC/utils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/redpallas/SMC/utils.js +126 -0
- package/dist/src/bitgo/utils/tss/redpallas/index.d.ts +4 -0
- package/dist/src/bitgo/utils/tss/redpallas/index.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/redpallas/index.js +20 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2.d.ts +27 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2.js +43 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2KeyGenSender.d.ts +45 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2KeyGenSender.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2KeyGenSender.js +55 -0
- package/dist/src/bitgo/utils/tss/serializedTxHexVerify.d.ts +8 -0
- package/dist/src/bitgo/utils/tss/serializedTxHexVerify.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/serializedTxHexVerify.js +13 -0
- package/dist/src/bitgo/utils/tss/signableConsistency.d.ts +12 -0
- package/dist/src/bitgo/utils/tss/signableConsistency.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/signableConsistency.js +9 -0
- package/dist/src/bitgo/utils/txRequest.d.ts +10 -0
- package/dist/src/bitgo/utils/txRequest.d.ts.map +1 -0
- package/dist/src/bitgo/utils/txRequest.js +49 -0
- package/dist/src/bitgo/utils/util.js +24 -10
- package/dist/src/bitgo/utils/wallet.d.ts +7 -0
- package/dist/src/bitgo/utils/wallet.d.ts.map +1 -0
- package/dist/src/bitgo/utils/wallet.js +48 -0
- package/dist/src/bitgo/v1Wallets.d.ts +170 -0
- package/dist/src/bitgo/v1Wallets.d.ts.map +1 -0
- package/dist/src/bitgo/v1Wallets.js +3 -0
- package/dist/src/bitgo/wallet/BuildParams.d.ts +201 -0
- package/dist/src/bitgo/wallet/BuildParams.d.ts.map +1 -0
- package/dist/src/bitgo/wallet/BuildParams.js +202 -0
- package/dist/src/bitgo/wallet/iWallet.d.ts +682 -30
- package/dist/src/bitgo/wallet/iWallet.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/iWallet.js +1 -1
- package/dist/src/bitgo/wallet/iWallets.d.ts +325 -19
- package/dist/src/bitgo/wallet/iWallets.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/iWallets.js +84 -3
- package/dist/src/bitgo/wallet/index.d.ts +1 -0
- package/dist/src/bitgo/wallet/index.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/index.js +7 -2
- package/dist/src/bitgo/wallet/safeKeychain.d.ts +75 -0
- package/dist/src/bitgo/wallet/safeKeychain.d.ts.map +1 -0
- package/dist/src/bitgo/wallet/safeKeychain.js +151 -0
- package/dist/src/bitgo/wallet/wallet.d.ts +485 -29
- package/dist/src/bitgo/wallet/wallet.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/wallet.js +2723 -478
- package/dist/src/bitgo/wallet/wallets.d.ts +124 -9
- package/dist/src/bitgo/wallet/wallets.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/wallets.js +1398 -181
- package/dist/src/bitgo/walletUtil/iMessageProvider.d.ts +12 -0
- package/dist/src/bitgo/walletUtil/iMessageProvider.d.ts.map +1 -0
- package/dist/src/bitgo/walletUtil/iMessageProvider.js +3 -0
- package/dist/src/bitgo/walletUtil/index.d.ts +3 -0
- package/dist/src/bitgo/walletUtil/index.d.ts.map +1 -0
- package/dist/src/bitgo/walletUtil/index.js +19 -0
- package/dist/src/bitgo/walletUtil/midnightMessageProvider.d.ts +22 -0
- package/dist/src/bitgo/walletUtil/midnightMessageProvider.d.ts.map +1 -0
- package/dist/src/bitgo/walletUtil/midnightMessageProvider.js +95 -0
- package/dist/src/bitgo/walletUtil/signAccountBasedMidnightClaimMessages.d.ts +9 -0
- package/dist/src/bitgo/walletUtil/signAccountBasedMidnightClaimMessages.d.ts.map +1 -0
- package/dist/src/bitgo/walletUtil/signAccountBasedMidnightClaimMessages.js +72 -0
- package/dist/src/bitgo/walletUtil/utxoMessageProof.d.ts +15 -0
- package/dist/src/bitgo/walletUtil/utxoMessageProof.d.ts.map +1 -0
- package/dist/src/bitgo/walletUtil/utxoMessageProof.js +40 -0
- package/dist/src/bitgo/webauthn/base64url.d.ts +16 -0
- package/dist/src/bitgo/webauthn/base64url.d.ts.map +1 -0
- package/dist/src/bitgo/webauthn/base64url.js +27 -0
- package/dist/src/bitgo/webauthn/deriveEnterpriseSalt.d.ts +18 -0
- package/dist/src/bitgo/webauthn/deriveEnterpriseSalt.d.ts.map +1 -0
- package/dist/src/bitgo/webauthn/deriveEnterpriseSalt.js +26 -0
- package/dist/src/bitgo/webauthn/derivePassword.d.ts +11 -0
- package/dist/src/bitgo/webauthn/derivePassword.d.ts.map +1 -0
- package/dist/src/bitgo/webauthn/derivePassword.js +16 -0
- package/dist/src/bitgo/webauthn/index.d.ts +5 -0
- package/dist/src/bitgo/webauthn/index.d.ts.map +1 -0
- package/dist/src/bitgo/webauthn/index.js +21 -0
- package/dist/src/bitgo/webauthn/types.d.ts +18 -0
- package/dist/src/bitgo/webauthn/types.d.ts.map +1 -0
- package/dist/src/bitgo/webauthn/types.js +3 -0
- package/dist/src/bitgo/webhook/index.js +6 -2
- package/dist/src/bitgo/webhook/webhooks.js +23 -9
- package/dist/src/coins/fiat.d.ts +45 -0
- package/dist/src/coins/fiat.d.ts.map +1 -0
- package/dist/src/coins/fiat.js +94 -0
- package/dist/src/coins/index.d.ts +1 -6
- package/dist/src/coins/index.d.ts.map +1 -1
- package/dist/src/coins/index.js +7 -8
- package/dist/src/coins/ofc.d.ts +21 -2
- package/dist/src/coins/ofc.d.ts.map +1 -1
- package/dist/src/coins/ofc.js +29 -3
- package/dist/src/coins/ofcToken.d.ts +15 -4
- package/dist/src/coins/ofcToken.d.ts.map +1 -1
- package/dist/src/coins/ofcToken.js +43 -5
- package/dist/src/coins/susd.d.ts +3 -2
- package/dist/src/coins/susd.d.ts.map +1 -1
- package/dist/src/coins/susd.js +5 -1
- package/dist/src/common.js +27 -13
- package/dist/src/index.d.ts +13 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +42 -11
- package/dist/src/lightning.d.ts +20 -0
- package/dist/src/lightning.d.ts.map +1 -0
- package/dist/src/lightning.js +13 -0
- package/dist/src/units.js +5 -6
- package/dist/test/node.utils.d.ts +2 -0
- package/dist/test/node.utils.d.ts.map +1 -0
- package/dist/test/node.utils.js +5 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessage.d.ts +2 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessage.d.ts.map +1 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessage.js +207 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilder.d.ts +2 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilder.d.ts.map +1 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilder.js +174 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilderFactory.d.ts +2 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilderFactory.d.ts.map +1 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilderFactory.js +108 -0
- package/dist/test/unit/account-lib/baseCoin/messages/fixtures.d.ts +46 -0
- package/dist/test/unit/account-lib/baseCoin/messages/fixtures.d.ts.map +1 -0
- package/dist/test/unit/account-lib/baseCoin/messages/fixtures.js +69 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/ecdsa.d.ts +2 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/ecdsa.d.ts.map +1 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/ecdsa.js +279 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/fixtures.d.ts +3 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/fixtures.d.ts.map +1 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/fixtures.js +24 -0
- package/dist/test/unit/account-lib/mpc/util.d.ts +2 -0
- package/dist/test/unit/account-lib/mpc/util.d.ts.map +1 -0
- package/dist/test/unit/account-lib/mpc/util.js +53 -0
- package/dist/test/unit/bitgo/address-book/address-book.d.ts +2 -0
- package/dist/test/unit/bitgo/address-book/address-book.d.ts.map +1 -0
- package/dist/test/unit/bitgo/address-book/address-book.js +159 -0
- package/dist/test/unit/bitgo/defi/defiVault.d.ts +2 -0
- package/dist/test/unit/bitgo/defi/defiVault.d.ts.map +1 -0
- package/dist/test/unit/bitgo/defi/defiVault.js +863 -0
- package/dist/test/unit/bitgo/environment.d.ts +2 -0
- package/dist/test/unit/bitgo/environment.d.ts.map +1 -0
- package/dist/test/unit/bitgo/environment.js +38 -0
- package/dist/test/unit/bitgo/errors.d.ts +2 -0
- package/dist/test/unit/bitgo/errors.d.ts.map +1 -0
- package/dist/test/unit/bitgo/errors.js +262 -0
- package/dist/test/unit/bitgo/keychain/keychains.d.ts +2 -0
- package/dist/test/unit/bitgo/keychain/keychains.d.ts.map +1 -0
- package/dist/test/unit/bitgo/keychain/keychains.js +426 -0
- package/dist/test/unit/bitgo/recovery/initiate.d.ts +2 -0
- package/dist/test/unit/bitgo/recovery/initiate.d.ts.map +1 -0
- package/dist/test/unit/bitgo/recovery/initiate.js +159 -0
- package/dist/test/unit/bitgo/safe/derivableEd25519Pub.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/derivableEd25519Pub.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/derivableEd25519Pub.js +133 -0
- package/dist/test/unit/bitgo/safe/fixtures/derivableEd25519Pub.json +72 -0
- package/dist/test/unit/bitgo/safe/recovery.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/recovery.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/recovery.js +313 -0
- package/dist/test/unit/bitgo/safe/rootCoin.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/rootCoin.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/rootCoin.js +13 -0
- package/dist/test/unit/bitgo/safe/safe.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/safe.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/safe.js +585 -0
- package/dist/test/unit/bitgo/safe/safeDerivation.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/safeDerivation.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/safeDerivation.js +75 -0
- package/dist/test/unit/bitgo/safe/safes.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/safes.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/safes.js +376 -0
- package/dist/test/unit/bitgo/trading/network/encrypt.d.ts +2 -0
- package/dist/test/unit/bitgo/trading/network/encrypt.d.ts.map +1 -0
- package/dist/test/unit/bitgo/trading/network/encrypt.js +71 -0
- package/dist/test/unit/bitgo/trading/network/network.test.d.ts +2 -0
- package/dist/test/unit/bitgo/trading/network/network.test.d.ts.map +1 -0
- package/dist/test/unit/bitgo/trading/network/network.test.js +136 -0
- package/dist/test/unit/bitgo/trading/tradingAccount.d.ts +2 -0
- package/dist/test/unit/bitgo/trading/tradingAccount.d.ts.map +1 -0
- package/dist/test/unit/bitgo/trading/tradingAccount.js +192 -0
- package/dist/test/unit/bitgo/tss/bitgoPubKeys.d.ts +2 -0
- package/dist/test/unit/bitgo/tss/bitgoPubKeys.d.ts.map +1 -0
- package/dist/test/unit/bitgo/tss/bitgoPubKeys.js +66 -0
- package/dist/test/unit/bitgo/tss/common.d.ts +2 -0
- package/dist/test/unit/bitgo/tss/common.d.ts.map +1 -0
- package/dist/test/unit/bitgo/tss/common.js +77 -0
- package/dist/test/unit/bitgo/tss/redpallas/redpallasMPCv2.d.ts +2 -0
- package/dist/test/unit/bitgo/tss/redpallas/redpallasMPCv2.d.ts.map +1 -0
- package/dist/test/unit/bitgo/tss/redpallas/redpallasMPCv2.js +249 -0
- package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.js +66 -0
- package/dist/test/unit/bitgo/utils/messageTypes.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/messageTypes.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/messageTypes.js +64 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.unwrap.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.unwrap.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.unwrap.js +109 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.wrapApprove.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.wrapApprove.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.wrapApprove.js +106 -0
- package/dist/test/unit/bitgo/utils/notEmpty.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/notEmpty.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/notEmpty.js +15 -0
- package/dist/test/unit/bitgo/utils/postWithCodec.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/postWithCodec.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/postWithCodec.js +73 -0
- package/dist/test/unit/bitgo/utils/siws.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/siws.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/siws.js +206 -0
- package/dist/test/unit/bitgo/utils/tss/addressVerification.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/addressVerification.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/addressVerification.js +251 -0
- package/dist/test/unit/bitgo/utils/tss/baseTSSUtils.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/baseTSSUtils.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/baseTSSUtils.js +348 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaEncryptionVersion.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaEncryptionVersion.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaEncryptionVersion.js +94 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaMPCv2.js +1068 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/gpgKeys.d.ts +5 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/gpgKeys.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/gpgKeys.js +36 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaExternalSigner.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaExternalSigner.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaExternalSigner.js +158 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaMPCv2.js +2410 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.js +549 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/smcUtil.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/smcUtil.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/smcUtil.js +376 -0
- package/dist/test/unit/bitgo/utils/tss/keyShareEnvelope.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/keyShareEnvelope.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/keyShareEnvelope.js +83 -0
- package/dist/test/unit/bitgo/utils/tss/keyVerification.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/keyVerification.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/keyVerification.js +229 -0
- package/dist/test/unit/bitgo/utils/tss/preHashedSignable.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/preHashedSignable.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/preHashedSignable.js +55 -0
- package/dist/test/unit/bitgo/utils/tss/recipientUtils.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/recipientUtils.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/recipientUtils.js +462 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/redpallasMPCv2.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/redpallasMPCv2.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/redpallasMPCv2.js +80 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/smcUtil.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/smcUtil.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/smcUtil.js +279 -0
- package/dist/test/unit/bitgo/utils/tss/redpallasBitgoGpgKey.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/redpallasBitgoGpgKey.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/redpallasBitgoGpgKey.js +111 -0
- package/dist/test/unit/bitgo/utils/txRequest.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/txRequest.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/txRequest.js +179 -0
- package/dist/test/unit/bitgo/utils/wallet.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/wallet.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/wallet.js +55 -0
- package/dist/test/unit/bitgo/wallet/BuildParams.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/BuildParams.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/BuildParams.js +154 -0
- package/dist/test/unit/bitgo/wallet/SendTransactionRequest.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/SendTransactionRequest.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/SendTransactionRequest.js +114 -0
- package/dist/test/unit/bitgo/wallet/getAccountResources.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/getAccountResources.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/getAccountResources.js +133 -0
- package/dist/test/unit/bitgo/wallet/getPotentialStuckTxs.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/getPotentialStuckTxs.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/getPotentialStuckTxs.js +88 -0
- package/dist/test/unit/bitgo/wallet/getResourceDelegations.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/getResourceDelegations.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/getResourceDelegations.js +118 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletAddressCreation.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletAddressCreation.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletAddressCreation.js +141 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletSignTransaction.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletSignTransaction.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletSignTransaction.js +185 -0
- package/dist/test/unit/bitgo/wallet/prebuildTransactionTypes.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/prebuildTransactionTypes.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/prebuildTransactionTypes.js +20 -0
- package/dist/test/unit/bitgo/wallet/resourceManagement.d.ts +3 -0
- package/dist/test/unit/bitgo/wallet/resourceManagement.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/resourceManagement.js +441 -0
- package/dist/test/unit/bitgo/wallet/safeGetUserPrv.d.ts +5 -0
- package/dist/test/unit/bitgo/wallet/safeGetUserPrv.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/safeGetUserPrv.js +671 -0
- package/dist/test/unit/bitgo/wallet/safeShareWallet.d.ts +9 -0
- package/dist/test/unit/bitgo/wallet/safeShareWallet.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/safeShareWallet.js +303 -0
- package/dist/test/unit/bitgo/wallet/tokenApproval.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/tokenApproval.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/tokenApproval.js +210 -0
- package/dist/test/unit/bitgo/wallet/walletEvmAddressCreation.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletEvmAddressCreation.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletEvmAddressCreation.js +181 -0
- package/dist/test/unit/bitgo/wallet/walletOptionsCodecs.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletOptionsCodecs.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletOptionsCodecs.js +69 -0
- package/dist/test/unit/bitgo/wallet/walletTssAddressVerification.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletTssAddressVerification.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletTssAddressVerification.js +320 -0
- package/dist/test/unit/bitgo/wallet/walletVerifyKey.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletVerifyKey.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletVerifyKey.js +160 -0
- package/dist/test/unit/bitgo/wallet/walletsEncryptionVersion.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletsEncryptionVersion.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletsEncryptionVersion.js +304 -0
- package/dist/test/unit/bitgo/wallet/walletsEvmKeyring.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletsEvmKeyring.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletsEvmKeyring.js +216 -0
- package/dist/test/unit/bitgo/wallet/walletsExternalSigner.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletsExternalSigner.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletsExternalSigner.js +853 -0
- package/dist/test/unit/bitgo/wallet/walletsGoAccount.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletsGoAccount.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletsGoAccount.js +150 -0
- package/dist/test/unit/bitgo/wallet/walletsWebauthn.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletsWebauthn.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletsWebauthn.js +201 -0
- package/dist/test/unit/coins/ofc.d.ts +2 -0
- package/dist/test/unit/coins/ofc.d.ts.map +1 -0
- package/dist/test/unit/coins/ofc.js +124 -0
- package/dist/test/unit/lightning.d.ts +2 -0
- package/dist/test/unit/lightning.d.ts.map +1 -0
- package/dist/test/unit/lightning.js +23 -0
- package/dist/test/unit/units.d.ts +2 -0
- package/dist/test/unit/units.d.ts.map +1 -0
- package/dist/test/unit/units.js +98 -0
- package/dist/tsconfig.tsbuildinfo +1 -8340
- package/package.json +31 -24
- package/.eslintignore +0 -5
- package/CHANGELOG.md +0 -662
- package/dist/src/account-lib/baseCoin/blsKeyPair.d.ts +0 -77
- package/dist/src/account-lib/baseCoin/blsKeyPair.d.ts.map +0 -1
- package/dist/src/account-lib/baseCoin/blsKeyPair.js +0 -209
- package/dist/src/account-lib/mpc/hdTree.d.ts +0 -31
- package/dist/src/account-lib/mpc/hdTree.d.ts.map +0 -1
- package/dist/src/account-lib/mpc/hdTree.js +0 -141
- package/dist/src/account-lib/mpc/types.d.ts +0 -5
- package/dist/src/account-lib/mpc/types.d.ts.map +0 -1
- package/dist/src/account-lib/mpc/types.js +0 -3
- package/dist/src/account-lib/util/ed25519KeyDeriver.d.ts +0 -49
- package/dist/src/account-lib/util/ed25519KeyDeriver.d.ts.map +0 -1
- package/dist/src/account-lib/util/ed25519KeyDeriver.js +0 -87
- package/dist/src/bitgo/lightning/iLightning.d.ts +0 -186
- package/dist/src/bitgo/lightning/iLightning.d.ts.map +0 -1
- package/dist/src/bitgo/lightning/iLightning.js +0 -106
- package/dist/src/bitgo/lightning/index.d.ts +0 -5
- package/dist/src/bitgo/lightning/index.d.ts.map +0 -1
- package/dist/src/bitgo/lightning/index.js +0 -17
- package/dist/src/bitgo/lightning/lightning.d.ts +0 -25
- package/dist/src/bitgo/lightning/lightning.d.ts.map +0 -1
- package/dist/src/bitgo/lightning/lightning.js +0 -111
- package/dist/src/bitgo/lightning/lightningUtils.d.ts +0 -46
- package/dist/src/bitgo/lightning/lightningUtils.d.ts.map +0 -1
- package/dist/src/bitgo/lightning/lightningUtils.js +0 -133
- package/dist/src/bitgo/lightning/lnurlCodec.d.ts +0 -3
- package/dist/src/bitgo/lightning/lnurlCodec.d.ts.map +0 -1
- package/dist/src/bitgo/lightning/lnurlCodec.js +0 -28
- package/dist/src/bitgo/trading/affirmation.d.ts +0 -35
- package/dist/src/bitgo/trading/affirmation.d.ts.map +0 -1
- package/dist/src/bitgo/trading/affirmation.js +0 -53
- package/dist/src/bitgo/trading/affirmations.d.ts +0 -23
- package/dist/src/bitgo/trading/affirmations.d.ts.map +0 -1
- package/dist/src/bitgo/trading/affirmations.js +0 -45
- package/dist/src/bitgo/trading/iAffirmation.d.ts +0 -15
- package/dist/src/bitgo/trading/iAffirmation.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iAffirmation.js +0 -13
- package/dist/src/bitgo/trading/iAffirmations.d.ts +0 -10
- package/dist/src/bitgo/trading/iAffirmations.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iAffirmations.js +0 -3
- package/dist/src/bitgo/trading/iSettlement.d.ts +0 -25
- package/dist/src/bitgo/trading/iSettlement.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iSettlement.js +0 -17
- package/dist/src/bitgo/trading/iSettlements.d.ts +0 -19
- package/dist/src/bitgo/trading/iSettlements.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iSettlements.js +0 -3
- package/dist/src/bitgo/trading/iTradingPartner.d.ts +0 -14
- package/dist/src/bitgo/trading/iTradingPartner.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iTradingPartner.js +0 -17
- package/dist/src/bitgo/trading/iTradingPartners.d.ts +0 -15
- package/dist/src/bitgo/trading/iTradingPartners.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iTradingPartners.js +0 -9
- package/dist/src/bitgo/trading/lock.d.ts +0 -16
- package/dist/src/bitgo/trading/lock.d.ts.map +0 -1
- package/dist/src/bitgo/trading/lock.js +0 -12
- package/dist/src/bitgo/trading/payload.d.ts +0 -22
- package/dist/src/bitgo/trading/payload.d.ts.map +0 -1
- package/dist/src/bitgo/trading/payload.js +0 -3
- package/dist/src/bitgo/trading/settlement.d.ts +0 -16
- package/dist/src/bitgo/trading/settlement.d.ts.map +0 -1
- package/dist/src/bitgo/trading/settlement.js +0 -21
- package/dist/src/bitgo/trading/settlements.d.ts +0 -32
- package/dist/src/bitgo/trading/settlements.d.ts.map +0 -1
- package/dist/src/bitgo/trading/settlements.js +0 -61
- package/dist/src/bitgo/trading/trade.d.ts +0 -29
- package/dist/src/bitgo/trading/trade.d.ts.map +0 -1
- package/dist/src/bitgo/trading/trade.js +0 -11
- package/dist/src/bitgo/trading/tradingPartner.d.ts +0 -26
- package/dist/src/bitgo/trading/tradingPartner.d.ts.map +0 -1
- package/dist/src/bitgo/trading/tradingPartner.js +0 -31
- package/dist/src/bitgo/trading/tradingPartners.d.ts +0 -24
- package/dist/src/bitgo/trading/tradingPartners.d.ts.map +0 -1
- package/dist/src/bitgo/trading/tradingPartners.js +0 -32
- package/dist/src/bitgo/utils/blsUtils.d.ts +0 -52
- package/dist/src/bitgo/utils/blsUtils.d.ts.map +0 -1
- package/dist/src/bitgo/utils/blsUtils.js +0 -237
- package/dist/src/bitgo/utils/iBlsUtils.d.ts +0 -14
- package/dist/src/bitgo/utils/iBlsUtils.d.ts.map +0 -1
- package/dist/src/bitgo/utils/iBlsUtils.js +0 -3
- package/dist/src/coins/fiateur.d.ts +0 -31
- package/dist/src/coins/fiateur.d.ts.map +0 -1
- package/dist/src/coins/fiateur.js +0 -57
- package/dist/src/coins/fiatgbp.d.ts +0 -31
- package/dist/src/coins/fiatgbp.d.ts.map +0 -1
- package/dist/src/coins/fiatgbp.js +0 -57
- package/dist/src/coins/fiatusd.d.ts +0 -31
- package/dist/src/coins/fiatusd.d.ts.map +0 -1
- package/dist/src/coins/fiatusd.js +0 -57
- package/dist/src/coins/tfiateur.d.ts +0 -11
- package/dist/src/coins/tfiateur.d.ts.map +0 -1
- package/dist/src/coins/tfiateur.js +0 -17
- package/dist/src/coins/tfiatgbp.d.ts +0 -11
- package/dist/src/coins/tfiatgbp.d.ts.map +0 -1
- package/dist/src/coins/tfiatgbp.js +0 -17
- package/dist/src/coins/tfiatusd.d.ts +0 -11
- package/dist/src/coins/tfiatusd.d.ts.map +0 -1
- package/dist/src/coins/tfiatusd.js +0 -17
- package/dist/src/openssl/index.d.ts +0 -2
- package/dist/src/openssl/index.d.ts.map +0 -1
- package/dist/src/openssl/openssl.d.ts +0 -12
- package/dist/src/openssl/openssl.d.ts.map +0 -1
- package/dist/src/openssl/openssl.js +0 -48
- package/dist/src/openssl/opensslbytes.d.ts +0 -4
- package/dist/src/openssl/opensslbytes.d.ts.map +0 -1
- package/dist/src/openssl/opensslbytes.js +0 -20
|
@@ -1,11 +1,20 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* @prettier
|
|
3
|
+
*/
|
|
4
|
+
import { type AddressQueryResult } from '@bitgo/public-types';
|
|
5
|
+
import { EncryptionVersion, IRequestTracer } from '../../api';
|
|
6
|
+
import { IAddressBook } from '../address-book';
|
|
7
|
+
import { IBaseCoin, NFTTransferOptions, SignedMessage, SignedTransaction } from '../baseCoin';
|
|
2
8
|
import { BitGoBase } from '../bitgoBase';
|
|
9
|
+
import { SubmitTransactionResponse } from '../inscriptionBuilder';
|
|
10
|
+
import { KeychainWithEncryptedPrv } from '../keychain';
|
|
11
|
+
import { CreateLightningInvoiceParams, LightningInvoiceResponse } from '../../lightning';
|
|
3
12
|
import { IPendingApproval } from '../pendingApproval';
|
|
4
|
-
import {
|
|
13
|
+
import { DefiVault } from '../defi';
|
|
14
|
+
import { GoStakingWallet, StakingWallet } from '../staking';
|
|
15
|
+
import { TradingAccount } from '../trading';
|
|
5
16
|
import { TxRequest } from '../utils';
|
|
6
|
-
import { AccelerateTransactionOptions, AddressesOptions, BuildConsolidationTransactionOptions, BuildTokenEnablementOptions, ChangeFeeOptions, ConsolidateUnspentsOptions, CreateAddressOptions, CreatePolicyRuleOptions, CreateShareOptions, CrossChainUTXO, DeployForwardersOptions, DownloadKeycardOptions, FanoutUnspentsOptions, FetchCrossChainUTXOsOptions, FlushForwarderTokenOptions, ForwarderBalance, ForwarderBalanceOptions, FreezeOptions, FundForwardersOptions, GetAddressOptions, GetPrvOptions, GetTransactionOptions, GetTransferOptions, GetUserPrvOptions, IWallet, MaximumSpendable, MaximumSpendableOptions, ModifyWebhookOptions, PaginationOptions, PrebuildAndSignTransactionOptions, PrebuildTransactionOptions, PrebuildTransactionResult, RecoverTokenOptions, RemovePolicyRuleOptions, RemoveUserOptions, SendManyOptions, SendOptions, ShareWalletOptions, SimulateWebhookOptions, SubmitTransactionOptions, SweepOptions, TransferBySequenceIdOptions, TransferCommentOptions, TransfersOptions, UnspentsOptions, UpdateAddressOptions, WalletCoinSpecific, WalletData, WalletEcdsaChallenges, WalletSignMessageOptions, WalletSignTransactionOptions, WalletSignTypedDataOptions } from './iWallet';
|
|
7
|
-
import { StakingWallet } from '../staking/stakingWallet';
|
|
8
|
-
import { Lightning } from '../lightning';
|
|
17
|
+
import { AccelerateTransactionOptions, AddressesByBalanceOptions, AddressesOptions, BuildConsolidationTransactionOptions, BuildResourceDelegationTransactionOptions, BuildResourceManagementTransactionResult, BuildResourceUndelegationTransactionOptions, ResourceManagementSendResult, BuildTokenEnablementOptions, BulkCreateShareOption, BulkWalletShareKeychain, BulkWalletShareOptions, ChangeFeeOptions, ConsolidateUnspentsOptions, CreateAddressOptions, CreateBulkWalletShareListResponse, CreatePolicyRuleOptions, CreateShareOptions, CrossChainUTXO, DecryptedKeychainData, DeployForwardersOptions, DownloadKeycardOptions, FanoutUnspentsOptions, FetchCrossChainUTXOsOptions, FlushForwarderTokenOptions, ForwarderBalance, ForwarderBalanceOptions, FreezeOptions, FundForwarderParams, FundForwardersOptions, GetAddressOptions, GetPrvOptions, GetPotentialStuckTxsOptions, GetPotentialStuckTxsResult, GetTransactionOptions, GetTransferOptions, GetUserPrvOptions, type IWallet, ManageUnspentReservationOptions, MaximumSpendable, MaximumSpendableOptions, ModifyWebhookOptions, NftBalance, PaginationOptions, PrebuildAndSignTransactionOptions, PrebuildTransactionOptions, PrebuildTransactionResult, RecoverTokenOptions, RemovePolicyRuleOptions, RemoveUserOptions, SendManyOptions, SendNFTOptions, SendNFTResult, SendOptions, SharedKeyChain, ShareWalletOptions, SignAndSendTxRequestOptions, SignAndSendMessageTxRequestOptions, SimulateWebhookOptions, SubmitTransactionOptions, SubWalletType, SweepOptions, TransferBySequenceIdOptions, TransferCommentOptions, TransfersOptions, UnspentsOptions, UpdateAddressOptions, UpdateBuildDefaultOptions, UpdateWalletOptions, UpgradeEncryptionOptions, UpgradeEncryptionResult, VerifyKeyOptions, VerifyKeyResult, WalletCoinSpecific, WalletData, WalletEcdsaChallenges, WalletSignMessageOptions, WalletSignTransactionOptions, WalletSignTypedDataOptions, WalletType, BuildTokenApprovalResponse, WalletInitResult, GetAccountResourcesOptions, GetAccountResourcesResponse, GetResourceDelegationsOptions, GetResourceDelegationsResponse } from './iWallet';
|
|
9
18
|
export declare enum ManageUnspentsOptions {
|
|
10
19
|
BUILD_ONLY = 0,
|
|
11
20
|
BUILD_SIGN_SEND = 1
|
|
@@ -14,8 +23,11 @@ export declare class Wallet implements IWallet {
|
|
|
14
23
|
readonly bitgo: BitGoBase;
|
|
15
24
|
readonly baseCoin: IBaseCoin;
|
|
16
25
|
_wallet: WalletData;
|
|
26
|
+
private _defi?;
|
|
17
27
|
private readonly tssUtils;
|
|
18
28
|
private readonly _permissions?;
|
|
29
|
+
/** Root keychain from passphrase preflight; consumed by getUserPrv to avoid a second GET. */
|
|
30
|
+
private validatedSafeRootKeychain?;
|
|
19
31
|
constructor(bitgo: BitGoBase, baseCoin: IBaseCoin, walletData: any);
|
|
20
32
|
/**
|
|
21
33
|
* Build a URL using this wallet's id which can be used for BitGo API operations
|
|
@@ -34,6 +46,7 @@ export declare class Wallet implements IWallet {
|
|
|
34
46
|
* Get the current balance of this wallet
|
|
35
47
|
*/
|
|
36
48
|
balance(): number;
|
|
49
|
+
/** @deprecated use codec instead: t.exact(BuildParams).encode(v) */
|
|
37
50
|
prebuildWhitelistedParams(): string[];
|
|
38
51
|
/**
|
|
39
52
|
* This is a strict sub-set of prebuildWhitelistedParams
|
|
@@ -69,10 +82,24 @@ export declare class Wallet implements IWallet {
|
|
|
69
82
|
* Get the coin identifier for the type of coin this wallet holds
|
|
70
83
|
*/
|
|
71
84
|
coin(): string;
|
|
85
|
+
type(): WalletType;
|
|
86
|
+
multisigType(): 'onchain' | 'tss';
|
|
87
|
+
multisigTypeVersion(): 'MPCv2' | undefined;
|
|
88
|
+
/**
|
|
89
|
+
* Public id of the parent safe, if this wallet was minted in one.
|
|
90
|
+
* @experimental
|
|
91
|
+
*/
|
|
92
|
+
safeId(): string | undefined;
|
|
93
|
+
subType(): SubWalletType | undefined;
|
|
72
94
|
/**
|
|
73
95
|
* Get the label (name) for this wallet
|
|
74
96
|
*/
|
|
75
97
|
label(): string;
|
|
98
|
+
flags(): {
|
|
99
|
+
name: string;
|
|
100
|
+
value: string;
|
|
101
|
+
}[];
|
|
102
|
+
flag(name: string): string | undefined;
|
|
76
103
|
/**
|
|
77
104
|
* Get the public object ids for the keychains on this wallet.
|
|
78
105
|
*/
|
|
@@ -80,7 +107,7 @@ export declare class Wallet implements IWallet {
|
|
|
80
107
|
/**
|
|
81
108
|
* Get a receive address for this wallet
|
|
82
109
|
*/
|
|
83
|
-
receiveAddress(): string;
|
|
110
|
+
receiveAddress(): string | undefined;
|
|
84
111
|
/**
|
|
85
112
|
* Get the wallet id of the wallet that this wallet was migrated from.
|
|
86
113
|
*
|
|
@@ -113,6 +140,31 @@ export declare class Wallet implements IWallet {
|
|
|
113
140
|
* @returns {*}
|
|
114
141
|
*/
|
|
115
142
|
transactions(params?: PaginationOptions): Promise<any>;
|
|
143
|
+
/**
|
|
144
|
+
* List potentially stuck transactions for this wallet.
|
|
145
|
+
* Age thresholds are opt-in; when both are supplied, the API uses OR semantics.
|
|
146
|
+
*/
|
|
147
|
+
getPotentialStuckTxs(params?: GetPotentialStuckTxsOptions): Promise<GetPotentialStuckTxsResult[]>;
|
|
148
|
+
/**
|
|
149
|
+
* Return a list of nft tokens for this wallet. Will always return undefined if the wallet
|
|
150
|
+
* was not initialized with the allTokens flag.
|
|
151
|
+
*
|
|
152
|
+
* @returns {NftBalance[] | undefined}
|
|
153
|
+
*/
|
|
154
|
+
nftBalances(): NftBalance[] | undefined;
|
|
155
|
+
/**
|
|
156
|
+
* Return a list of unsupported nft tokens for this wallet. Will always return undefined if the wallet
|
|
157
|
+
* was not initialized with the allTokens flag.
|
|
158
|
+
*
|
|
159
|
+
* @returns {NftBalance[] | undefined}
|
|
160
|
+
*/
|
|
161
|
+
unsupportedNftBalances(): NftBalance[] | undefined;
|
|
162
|
+
/**
|
|
163
|
+
* Returns a list of the wallets nft & unsupported nfts.
|
|
164
|
+
*
|
|
165
|
+
* @returns {NftBalance[]}
|
|
166
|
+
*/
|
|
167
|
+
getNftBalances(): Promise<NftBalance[]>;
|
|
116
168
|
/**
|
|
117
169
|
* List the transactions for a given wallet
|
|
118
170
|
* @param params
|
|
@@ -187,8 +239,25 @@ export declare class Wallet implements IWallet {
|
|
|
187
239
|
* - maximum number of unspents you want to use in the transaction
|
|
188
240
|
* Output parameters:
|
|
189
241
|
* @param {Number} params.numUnspentsToMake - the number of new unspents to make
|
|
242
|
+
* @param {Boolean} params.bulk - if set to True, this enables the consolidation of large number of unspents by creating multiple transactions,
|
|
243
|
+
* with each transaction composed of 200 unspents, except for the last transaction which may have fewer unspents.
|
|
190
244
|
*/
|
|
191
245
|
private manageUnspents;
|
|
246
|
+
/**
|
|
247
|
+
* Manage the unspent reservations on the wallet
|
|
248
|
+
*
|
|
249
|
+
* @param params.create - create a new reservation
|
|
250
|
+
* @param params.modify - modify an existing reservation
|
|
251
|
+
* @param params.delete - delete an existing reservation
|
|
252
|
+
*/
|
|
253
|
+
manageUnspentReservations(params: ManageUnspentReservationOptions): Promise<{
|
|
254
|
+
unspents: {
|
|
255
|
+
id: string;
|
|
256
|
+
walletId: string;
|
|
257
|
+
expireTime: string;
|
|
258
|
+
userId?: string;
|
|
259
|
+
}[];
|
|
260
|
+
}>;
|
|
192
261
|
/**
|
|
193
262
|
* Consolidate unspents on a wallet
|
|
194
263
|
*
|
|
@@ -207,9 +276,11 @@ export declare class Wallet implements IWallet {
|
|
|
207
276
|
* @param {Number} params.limit for routeName === 'consolidate'
|
|
208
277
|
* params.maxNumInputsToUse for routeName === 'fanout'
|
|
209
278
|
* - maximum number of unspents you want to use in the transaction
|
|
210
|
-
* @param {Number} params.numUnspentsToMake - the number of new unspents to make
|
|
279
|
+
* @param {Number} params.numUnspentsToMake - the number of new unspents to make. It is not applicable for if bulk consolidate.
|
|
280
|
+
* @param {Boolean} params.bulk - if set to True, this enables the consolidation of large number of unspents by creating multiple transactions,
|
|
281
|
+
* with each transaction composed of 200 unspents, except for the last transaction which may have fewer unspents.
|
|
211
282
|
*/
|
|
212
|
-
consolidateUnspents(params?: ConsolidateUnspentsOptions, option?: ManageUnspentsOptions): Promise<
|
|
283
|
+
consolidateUnspents(params?: ConsolidateUnspentsOptions, option?: ManageUnspentsOptions): Promise<unknown>;
|
|
213
284
|
/**
|
|
214
285
|
* Fanout unspents on a wallet
|
|
215
286
|
*
|
|
@@ -226,8 +297,10 @@ export declare class Wallet implements IWallet {
|
|
|
226
297
|
* @param {Number} params.maxFeeRate - The max limit for a fee rate in satoshis/kB
|
|
227
298
|
* @param {Number} params.maxNumInputsToUse - the number of unspents you want to use in the transaction
|
|
228
299
|
* @param {Number} params.numUnspentsToMake - the number of new unspents to make
|
|
300
|
+
*
|
|
301
|
+
* @param {ManageUnspentsOptions} option - flag to toggle build and send or build only
|
|
229
302
|
*/
|
|
230
|
-
fanoutUnspents(params?: FanoutUnspentsOptions): Promise<
|
|
303
|
+
fanoutUnspents(params?: FanoutUnspentsOptions, option?: ManageUnspentsOptions): Promise<unknown>;
|
|
231
304
|
/**
|
|
232
305
|
* Set the token flush thresholds for the wallet. Updates the wallet.
|
|
233
306
|
* Tokens will only be flushed from forwarder contracts if the balance is greater than the threshold defined here.
|
|
@@ -300,7 +373,13 @@ export declare class Wallet implements IWallet {
|
|
|
300
373
|
* @param params
|
|
301
374
|
* @returns {*}
|
|
302
375
|
*/
|
|
303
|
-
addresses(params?: AddressesOptions): Promise<
|
|
376
|
+
addresses(params?: AddressesOptions): Promise<AddressQueryResult>;
|
|
377
|
+
/**
|
|
378
|
+
* List the addresses sorted by balance for a given wallet
|
|
379
|
+
* @param params
|
|
380
|
+
* @returns {*}
|
|
381
|
+
*/
|
|
382
|
+
addressesByBalance(params: AddressesByBalanceOptions): Promise<any>;
|
|
304
383
|
/**
|
|
305
384
|
* Get a single wallet address by its id
|
|
306
385
|
* @param params
|
|
@@ -334,6 +413,20 @@ export declare class Wallet implements IWallet {
|
|
|
334
413
|
* @returns {*}
|
|
335
414
|
*/
|
|
336
415
|
updateAddress(params?: UpdateAddressOptions): Promise<any>;
|
|
416
|
+
/**
|
|
417
|
+
* Get account resources for the given addresses
|
|
418
|
+
* @param params - options object containing addresses and optional destinationAddress
|
|
419
|
+
* @returns {Promise<GetAccountResourcesResponse>} - response from WP API
|
|
420
|
+
*/
|
|
421
|
+
getAccountResources(params: GetAccountResourcesOptions): Promise<GetAccountResourcesResponse>;
|
|
422
|
+
/**
|
|
423
|
+
* Get resource delegations for this wallet
|
|
424
|
+
* @param params - optional filters: type, resource, limit, nextBatchPrevId
|
|
425
|
+
* @returns {Promise<GetResourceDelegationsResponse>} - response from WP API
|
|
426
|
+
*/
|
|
427
|
+
getResourceDelegations(params?: GetResourceDelegationsOptions): Promise<GetResourceDelegationsResponse>;
|
|
428
|
+
updateWalletBuildDefaults(params: UpdateBuildDefaultOptions): Promise<unknown>;
|
|
429
|
+
updateWallet(params: UpdateWalletOptions): Promise<unknown>;
|
|
337
430
|
/**
|
|
338
431
|
* List webhooks on this wallet
|
|
339
432
|
* @param params
|
|
@@ -359,15 +452,13 @@ export declare class Wallet implements IWallet {
|
|
|
359
452
|
*/
|
|
360
453
|
removeWebhook(params?: ModifyWebhookOptions): Promise<any>;
|
|
361
454
|
/**
|
|
362
|
-
* Gets the user
|
|
455
|
+
* Gets the user keychain for this wallet
|
|
363
456
|
*
|
|
364
|
-
* The user
|
|
457
|
+
* The user keychain is the first keychain of the wallet and usually has the encrypted prv stored on BitGo.
|
|
365
458
|
* Useful when trying to get the users' keychain from the server before decrypting to sign a transaction.
|
|
366
|
-
* @param params
|
|
367
459
|
*/
|
|
368
|
-
getEncryptedUserKeychain(
|
|
369
|
-
|
|
370
|
-
}>;
|
|
460
|
+
getEncryptedUserKeychain(): Promise<KeychainWithEncryptedPrv>;
|
|
461
|
+
private getSafeOwnerChildKeychain;
|
|
371
462
|
/**
|
|
372
463
|
* Gets the unencrypted private key for this wallet (be careful!)
|
|
373
464
|
* Requires wallet passphrase
|
|
@@ -375,11 +466,84 @@ export declare class Wallet implements IWallet {
|
|
|
375
466
|
* @param params
|
|
376
467
|
*/
|
|
377
468
|
getPrv(params?: GetPrvOptions): Promise<any>;
|
|
469
|
+
private isMultiUserKeyWallet;
|
|
378
470
|
/**
|
|
379
471
|
* Send an encrypted wallet share to BitGo.
|
|
380
472
|
* @param params
|
|
381
473
|
*/
|
|
382
474
|
createShare(params?: CreateShareOptions): Promise<any>;
|
|
475
|
+
/**
|
|
476
|
+
* Shares a wallet with multiple users by creating bulk wallet shares.
|
|
477
|
+
*
|
|
478
|
+
* @async
|
|
479
|
+
* @param {BulkWalletShareOptions} params - The options for sharing wallets in bulk.
|
|
480
|
+
* @param {Array<ShareOption>} params.shareOptions - An array of share option objects containing user and permissions information.
|
|
481
|
+
* @param {Object} [params.shareOptions[].keychain] - The keychain object used to share the wallet.
|
|
482
|
+
* @param {string} [params.shareOptions[].keychain.toPubKey] - The recipient's public key.
|
|
483
|
+
* @param {string} [params.shareOptions[].keychain.path] - The derivation path of the keychain.
|
|
484
|
+
* @param {string} params.shareOptions[].user - The user to share the wallet with.
|
|
485
|
+
* @param {string} params.shareOptions[].permissions - The permissions granted to the user.
|
|
486
|
+
* @param {string} [params.walletPassphrase] - The wallet passphrase used to decrypt the keychain.
|
|
487
|
+
* @throws {Error} If `shareOptions` is empty, or if required keychain parameters (`toPubKey` and `path`) are missing when needed.
|
|
488
|
+
* @throws {Error} If unable to decrypt the user keychain.
|
|
489
|
+
* @returns {Promise<CreateBulkWalletShareListResponse>} A promise that resolves with the response of the bulk wallet share creation.
|
|
490
|
+
*/
|
|
491
|
+
createBulkWalletShare(params: BulkWalletShareOptions): Promise<CreateBulkWalletShareListResponse>;
|
|
492
|
+
/**
|
|
493
|
+
* Creates bulk wallet share entries for specified share options.
|
|
494
|
+
* Filters out share options that do not contain valid keychain information or have missing keychain fields.
|
|
495
|
+
* If all share options are invalid or empty, it throws an error.
|
|
496
|
+
* Sends a POST request to create the wallet shares for valid share options.
|
|
497
|
+
*
|
|
498
|
+
* @async
|
|
499
|
+
* @param {BulkCreateShareOption[]} [params=[]] - The array of share options to process.
|
|
500
|
+
* Keychain entries must include the following fields: `pub`, `encryptedPrv`, `fromPubKey`, `toPubKey`, and `path`.
|
|
501
|
+
* @returns {Promise<CreateBulkWalletShareListResponse>} A promise resolving to the result of the wallet shares creation.
|
|
502
|
+
* @throws {Error} Throws an error if no valid share options are provided.
|
|
503
|
+
*/
|
|
504
|
+
createBulkKeyShares(params?: BulkCreateShareOption[]): Promise<CreateBulkWalletShareListResponse>;
|
|
505
|
+
/**
|
|
506
|
+
* Gets keychain with encrypted private key to be shared for wallet sharing.
|
|
507
|
+
*/
|
|
508
|
+
private getEncryptedWalletKeychainForWalletSharing;
|
|
509
|
+
/**
|
|
510
|
+
* Fetches and decrypts the wallet keychain for sharing.
|
|
511
|
+
* This method fetches the keychain once and decrypts it, returning the decrypted
|
|
512
|
+
* private key and public key info needed for sharing with multiple users.
|
|
513
|
+
*
|
|
514
|
+
* @param walletPassphrase - The passphrase to decrypt the keychain
|
|
515
|
+
* @returns Object containing decrypted prv and pub, or undefined for cold wallets
|
|
516
|
+
*/
|
|
517
|
+
getDecryptedKeychainForSharing(walletPassphrase: string | undefined): Promise<DecryptedKeychainData | undefined>;
|
|
518
|
+
/**
|
|
519
|
+
* Encrypts a decrypted private key for sharing with a specific user.
|
|
520
|
+
* This is the pure encryption step - no API calls, no decryption.
|
|
521
|
+
*
|
|
522
|
+
* @param decryptedPrv - The already-decrypted private key
|
|
523
|
+
* @param pub - The wallet's public key
|
|
524
|
+
* @param userPubkey - The recipient user's public key
|
|
525
|
+
* @param path - The key path
|
|
526
|
+
* @param encryptionVersion - Deprecated and ignored because the shared key is high entropy.
|
|
527
|
+
* @returns The encrypted keychain for the recipient with all required fields
|
|
528
|
+
*/
|
|
529
|
+
encryptPrvForUser(decryptedPrv: string, pub: string, userPubkey: string, path: string,
|
|
530
|
+
/** @deprecated Ignored because the shared key is high entropy. */
|
|
531
|
+
encryptionVersion?: EncryptionVersion): Promise<BulkWalletShareKeychain>;
|
|
532
|
+
private rethrowUnlessColdWalletShare;
|
|
533
|
+
/**
|
|
534
|
+
* Prepares a keychain for sharing with another user.
|
|
535
|
+
* Fetches the wallet keychain, decrypts it, and encrypts it for the recipient.
|
|
536
|
+
*
|
|
537
|
+
* @param walletPassphrase - The passphrase to decrypt the keychain
|
|
538
|
+
* @param pubkey - The recipient's public key
|
|
539
|
+
* @param path - The key path
|
|
540
|
+
* @param encryptionVersion - Deprecated and ignored because the shared key is high entropy.
|
|
541
|
+
* @param decryptedKeychain - Pre-decrypted keychain for bulk sharing
|
|
542
|
+
* @returns The encrypted keychain for the recipient
|
|
543
|
+
*/
|
|
544
|
+
prepareSharedKeychain(walletPassphrase: string | undefined, pubkey: string, path: string,
|
|
545
|
+
/** @deprecated Ignored because the shared key is high entropy. */
|
|
546
|
+
encryptionVersion?: EncryptionVersion, decryptedKeychain?: DecryptedKeychainData): Promise<SharedKeyChain>;
|
|
383
547
|
/**
|
|
384
548
|
* Share this wallet with another BitGo user.
|
|
385
549
|
* @param params
|
|
@@ -429,12 +593,25 @@ export declare class Wallet implements IWallet {
|
|
|
429
593
|
* @returns {*}
|
|
430
594
|
*/
|
|
431
595
|
prebuildTransaction(params?: PrebuildTransactionOptions): Promise<PrebuildTransactionResult>;
|
|
596
|
+
/**
|
|
597
|
+
* Gets the User Keychain and sign a TSS transaction
|
|
598
|
+
* @param txRequestId The transaction request id
|
|
599
|
+
* @param walletPassphrase The wallet passphrase
|
|
600
|
+
* @return Promise<SignedTransaction>
|
|
601
|
+
*/
|
|
602
|
+
getUserKeyAndSignTssTransaction({ txRequestId, walletPassphrase, }: {
|
|
603
|
+
txRequestId: string;
|
|
604
|
+
walletPassphrase: string;
|
|
605
|
+
}): Promise<SignedTransaction>;
|
|
432
606
|
/**
|
|
433
607
|
* Sign a transaction
|
|
434
608
|
* @param params
|
|
435
609
|
* - txPrebuild
|
|
436
610
|
* - [keychain / key] (object) or prv (string)
|
|
437
|
-
* - walletPassphrase
|
|
611
|
+
* - walletPassphrase (optional ONLY for OFC wallets with userKeySigningRequired = false)
|
|
612
|
+
* - verifyTxParams (optional) - when provided, the transaction will be verified before signing
|
|
613
|
+
* - txParams: transaction parameters used for verification
|
|
614
|
+
* - verification: optional verification options
|
|
438
615
|
* @return {*}
|
|
439
616
|
*/
|
|
440
617
|
signTransaction(params?: WalletSignTransactionOptions): Promise<SignedTransaction | TxRequest>;
|
|
@@ -451,28 +628,60 @@ export declare class Wallet implements IWallet {
|
|
|
451
628
|
*/
|
|
452
629
|
signMessage(params?: WalletSignMessageOptions): Promise<SignedMessage>;
|
|
453
630
|
/**
|
|
454
|
-
*
|
|
631
|
+
* Prepares and creates a sign message request for TSS wallets, that can be used later for signing.
|
|
632
|
+
*
|
|
633
|
+
* @param params - Parameters for creating the sign message request
|
|
634
|
+
* @returns Promise<TxRequest> - The created transaction request for signing a message
|
|
635
|
+
*/
|
|
636
|
+
buildSignMessageRequest(params: WalletSignMessageOptions): Promise<TxRequest>;
|
|
637
|
+
/**
|
|
638
|
+
* Get the user private key from either a derivation or an encrypted keychain.
|
|
639
|
+
* Supports both v1 (SJCL) and v2 (Argon2id) envelopes.
|
|
455
640
|
* @param [params.keychain / params.key] (object) or params.prv (string)
|
|
456
641
|
* @param params.walletPassphrase (string)
|
|
457
642
|
*/
|
|
458
|
-
getUserPrv(params?: GetUserPrvOptions): string
|
|
643
|
+
getUserPrv(params?: GetUserPrvOptions): Promise<string>;
|
|
644
|
+
/**
|
|
645
|
+
* Verify that user-held TSS signing material belongs to this wallet.
|
|
646
|
+
*
|
|
647
|
+
* Recombines the shares locally and compares the result against the user keychain's
|
|
648
|
+
* `commonKeychain`, answering up front whether the material can sign for this wallet
|
|
649
|
+
* instead of discovering a mismatch only when a signature fails. Supported for TSS EdDSA
|
|
650
|
+
* (MPCv1) wallets; other wallet types are rejected.
|
|
651
|
+
*
|
|
652
|
+
* The result is a consistency check for a caller inspecting its own material, not proof of
|
|
653
|
+
* possession, and must never be used as an authorization signal.
|
|
654
|
+
*
|
|
655
|
+
* `walletPassphrase` is deliberately not accepted: decrypting the BitGo-held `encryptedPrv`
|
|
656
|
+
* and comparing it against the BitGo-held keychain is circular, and callers that hold their
|
|
657
|
+
* own key material do not need it.
|
|
658
|
+
*
|
|
659
|
+
* @param params.prv - user signing material, the same string that would be passed as `prv` when signing
|
|
660
|
+
* @param params.reqId - request tracer
|
|
661
|
+
* @returns whether the recombined key matches the wallet's commonKeychain
|
|
662
|
+
*/
|
|
663
|
+
verifyKey(params: VerifyKeyOptions): Promise<VerifyKeyResult>;
|
|
459
664
|
/**
|
|
460
665
|
* Get a transaction prebuild from BitGo, validate it, and then decrypt the user key and sign the transaction
|
|
461
666
|
* @param params
|
|
462
667
|
*/
|
|
463
668
|
prebuildAndSignTransaction(params?: PrebuildAndSignTransactionOptions): Promise<SignedTransaction>;
|
|
464
669
|
/**
|
|
465
|
-
* Accelerate a transaction's confirmation using Child-Pays-For-Parent (CPFP)
|
|
670
|
+
* Accelerate a transaction's confirmation using Child-Pays-For-Parent (CPFP) or Replace-By-Fee (RBF)
|
|
466
671
|
* @param params
|
|
467
672
|
*/
|
|
468
673
|
accelerateTransaction(params?: AccelerateTransactionOptions): Promise<any>;
|
|
674
|
+
private validateAccelerationParams;
|
|
675
|
+
private validateRbfParams;
|
|
676
|
+
private validateCpfpParams;
|
|
469
677
|
/**
|
|
470
678
|
* Submit a half-signed transaction to BitGo
|
|
471
679
|
* @param params
|
|
472
680
|
* - txHex: transaction hex to submit
|
|
473
681
|
* - halfSigned: object containing transaction (txHex or txBase64) to submit
|
|
682
|
+
* @param reqId - request tracer request id
|
|
474
683
|
*/
|
|
475
|
-
submitTransaction(params?: SubmitTransactionOptions): Promise<any>;
|
|
684
|
+
submitTransaction(params?: SubmitTransactionOptions, reqId?: IRequestTracer): Promise<any>;
|
|
476
685
|
/**
|
|
477
686
|
* Send coins to a recipient
|
|
478
687
|
* @param params
|
|
@@ -488,6 +697,19 @@ export declare class Wallet implements IWallet {
|
|
|
488
697
|
* @returns {*}
|
|
489
698
|
*/
|
|
490
699
|
send(params?: SendOptions): Promise<any>;
|
|
700
|
+
/**
|
|
701
|
+
* Send an ERC-721 NFT or ERC-1155 NFT(s).
|
|
702
|
+
*
|
|
703
|
+
* This function constructs the appropriate call data for an ERC-721/1155 token transfer,
|
|
704
|
+
* and calls the token contract with the data, and amount 0. This transaction will always produce
|
|
705
|
+
* a pending approval.
|
|
706
|
+
*
|
|
707
|
+
* @param sendOptions Options to specify how the transaction should be sent.
|
|
708
|
+
* @param sendNftOptions Options to specify the NFT(s) to be sent.
|
|
709
|
+
*
|
|
710
|
+
* @return A pending approval for the transaction.
|
|
711
|
+
*/
|
|
712
|
+
sendNft(sendOptions: SendNFTOptions, sendNftOptions: NFTTransferOptions): Promise<SendNFTResult>;
|
|
491
713
|
/**
|
|
492
714
|
* Send money to multiple recipients
|
|
493
715
|
* 1. Gets the user keychain by checking the wallet for a key which has an encrypted prv
|
|
@@ -606,16 +828,38 @@ export declare class Wallet implements IWallet {
|
|
|
606
828
|
* Extract a JSON representable version of this wallet
|
|
607
829
|
*/
|
|
608
830
|
toJSON(): WalletData;
|
|
831
|
+
/**
|
|
832
|
+
* Create a lightning invoice for this wallet.
|
|
833
|
+
* Supported for OFC (trading) and BTC wallets.
|
|
834
|
+
* Uses the same wallet-platform endpoint as lnbtc wallets.
|
|
835
|
+
* @param params.valueSat - Invoice value in satoshis - if not provided, a zero-value invoice is created
|
|
836
|
+
* @param params.memo - Optional memo/description
|
|
837
|
+
* @param params.expiry - Optional expiry in seconds (not supported for trading wallets)
|
|
838
|
+
*/
|
|
839
|
+
createLightningInvoice(params: CreateLightningInvoiceParams): Promise<LightningInvoiceResponse>;
|
|
609
840
|
/**
|
|
610
841
|
* Create a trading account from this wallet
|
|
611
842
|
*/
|
|
612
843
|
toTradingAccount(): TradingAccount;
|
|
844
|
+
/**
|
|
845
|
+
* Get the address book for this wallet
|
|
846
|
+
*/
|
|
847
|
+
toAddressBook(): IAddressBook;
|
|
848
|
+
/**
|
|
849
|
+
* Access DeFi vault operations for this wallet (deposit, withdraw, resume).
|
|
850
|
+
*/
|
|
851
|
+
get defi(): DefiVault;
|
|
613
852
|
/**
|
|
614
853
|
* Create a staking wallet from this wallet
|
|
615
854
|
*/
|
|
616
855
|
toStakingWallet(): StakingWallet;
|
|
617
856
|
/**
|
|
618
|
-
*
|
|
857
|
+
* Create a go staking wallet from this wallet
|
|
858
|
+
*/
|
|
859
|
+
toGoStakingWallet(): GoStakingWallet;
|
|
860
|
+
/**
|
|
861
|
+
* Creates and downloads PDF keycard for wallet (requires response from wallets.generateWallet).
|
|
862
|
+
* `encryptionVersion` applies to the backup key. Box D uses its fixed version.
|
|
619
863
|
*
|
|
620
864
|
* Note: this is example code and is not the version used on bitgo.com
|
|
621
865
|
*
|
|
@@ -632,7 +876,30 @@ export declare class Wallet implements IWallet {
|
|
|
632
876
|
* * backupKeyID - the Key ID used for deriving a cold wallet's backup key
|
|
633
877
|
* @returns {*}
|
|
634
878
|
*/
|
|
635
|
-
downloadKeycard(params?: DownloadKeycardOptions): void
|
|
879
|
+
downloadKeycard(params?: DownloadKeycardOptions): Promise<void>;
|
|
880
|
+
/**
|
|
881
|
+
* Upgrade this wallet's keychain encryption from v1 (SJCL / PBKDF2-SHA256 + AES-256-CCM) to
|
|
882
|
+
* v2 (Argon2id + AES-256-GCM) and, optionally, regenerate the keycard PDF.
|
|
883
|
+
*
|
|
884
|
+
* Steps:
|
|
885
|
+
* 1. Unlock the BitGo session (skipped in dry-run).
|
|
886
|
+
* 2. Validate MPCv2 requirements (boxA/boxB when relevant).
|
|
887
|
+
* 3. Resolve the current and original passphrases (deriving from boxD if needed).
|
|
888
|
+
* 4. Re-encrypt user and backup keychains from v1 to v2 and PUT them to the server.
|
|
889
|
+
* 5. Re-encrypt MPCv2 reducedEncryptedPrv shares from boxA/boxB (keycard-only, no server PUT).
|
|
890
|
+
* 6. Invoke the injected {@link UpgradeEncryptionPdfGenerator} to regenerate the keycard PDF.
|
|
891
|
+
*
|
|
892
|
+
* @returns the generated PDF and wallet label, or undefined in dry-run or when no PDF generator is provided.
|
|
893
|
+
*/
|
|
894
|
+
upgradeEncryption(params: UpgradeEncryptionOptions): Promise<UpgradeEncryptionResult | undefined>;
|
|
895
|
+
/**
|
|
896
|
+
* Re-encrypt a ciphertext that was written at wallet creation time (backup key, boxA, boxB).
|
|
897
|
+
* These are not re-encrypted on password change, so the encryption passphrase may still be
|
|
898
|
+
* the original one from when the wallet was created. Try the current passphrase first; fall
|
|
899
|
+
* back to `originalPassphrase` if provided.
|
|
900
|
+
*/
|
|
901
|
+
private reencryptCreationTimeKey;
|
|
902
|
+
private fetchPasscodeEncryptionCode;
|
|
636
903
|
/**
|
|
637
904
|
* Builds a set of consolidation transactions for a wallet.
|
|
638
905
|
* @param params
|
|
@@ -653,6 +920,75 @@ export declare class Wallet implements IWallet {
|
|
|
653
920
|
* consolidateAddresses - these are the on-chain receive addresses we want to pick a consolidation amount from
|
|
654
921
|
*/
|
|
655
922
|
sendAccountConsolidations(params?: BuildConsolidationTransactionOptions): Promise<any>;
|
|
923
|
+
/**
|
|
924
|
+
* Shared build logic for resource delegation and undelegation.
|
|
925
|
+
* POSTs to the given endpoint and post-processes each prebuild.
|
|
926
|
+
*/
|
|
927
|
+
private buildResourceManagementTransactions;
|
|
928
|
+
/**
|
|
929
|
+
* Shared signing logic for a single resource management transaction (delegation or undelegation).
|
|
930
|
+
* Signing flow by wallet type (mirrors sendAccountConsolidation):
|
|
931
|
+
* - TSS (hot or custodial) → sendManyTxRequests (requires txRequestId on prebuildTx)
|
|
932
|
+
* - Custodial non-TSS → initiateTransaction (BitGo auto-signs with its key)
|
|
933
|
+
* - Hot non-TSS → prebuildAndSignTransaction + submitTransaction
|
|
934
|
+
*/
|
|
935
|
+
private sendResourceManagementTransaction;
|
|
936
|
+
/**
|
|
937
|
+
* Shared build → sign → send loop for resource delegation and undelegation.
|
|
938
|
+
* Validates the wallet passphrase upfront, then sends each transaction individually.
|
|
939
|
+
* Returns { success, failure } so partial success is handled gracefully.
|
|
940
|
+
*/
|
|
941
|
+
private sendResourceManagementTransactions;
|
|
942
|
+
/**
|
|
943
|
+
* Builds a set of resource delegation transactions for the given delegation entries.
|
|
944
|
+
* Each entry delegates resources (e.g. ENERGY, BANDWIDTH) from this wallet's root address
|
|
945
|
+
* to a receiver address. Modelled after buildAccountConsolidations.
|
|
946
|
+
*
|
|
947
|
+
* @param params.delegations - Array of { receiverAddress, amount, resource } entries
|
|
948
|
+
* @returns Unsigned prebuild transaction results, one per delegation entry
|
|
949
|
+
*/
|
|
950
|
+
buildResourceDelegations(params: BuildResourceDelegationTransactionOptions): Promise<BuildResourceManagementTransactionResult>;
|
|
951
|
+
/**
|
|
952
|
+
* Signs and sends a single resource delegation transaction.
|
|
953
|
+
* @param params.prebuildTx - A single prebuild result from buildResourceDelegations
|
|
954
|
+
*/
|
|
955
|
+
sendResourceDelegation(params?: PrebuildAndSignTransactionOptions): Promise<ResourceManagementSendResult>;
|
|
956
|
+
/**
|
|
957
|
+
* Builds, signs, and sends all resource delegation transactions in a single call.
|
|
958
|
+
* @param params.delegations - Array of { receiverAddress, amount, resource } entries
|
|
959
|
+
*/
|
|
960
|
+
sendResourceDelegations(params: BuildResourceDelegationTransactionOptions): Promise<{
|
|
961
|
+
success: ResourceManagementSendResult[];
|
|
962
|
+
failure: {
|
|
963
|
+
message: string;
|
|
964
|
+
receiverAddress?: string;
|
|
965
|
+
}[];
|
|
966
|
+
}>;
|
|
967
|
+
/**
|
|
968
|
+
* Builds a set of resource undelegation transactions for the given entries.
|
|
969
|
+
* Each entry reclaims delegated resources from this wallet's root address back from
|
|
970
|
+
* a receiver address. Modelled after buildResourceDelegations.
|
|
971
|
+
*
|
|
972
|
+
* @param params.undelegations - Array of { receiverAddress, amount, resource } entries
|
|
973
|
+
* @returns Unsigned prebuild transaction results, one per undelegation entry
|
|
974
|
+
*/
|
|
975
|
+
buildResourceUndelegations(params: BuildResourceUndelegationTransactionOptions): Promise<BuildResourceManagementTransactionResult>;
|
|
976
|
+
/**
|
|
977
|
+
* Signs and sends a single resource undelegation transaction.
|
|
978
|
+
* @param params.prebuildTx - A single prebuild result from buildResourceUndelegations
|
|
979
|
+
*/
|
|
980
|
+
sendResourceUndelegation(params?: PrebuildAndSignTransactionOptions): Promise<ResourceManagementSendResult>;
|
|
981
|
+
/**
|
|
982
|
+
* Builds, signs, and sends all resource undelegation transactions in a single call.
|
|
983
|
+
* @param params.undelegations - Array of { receiverAddress, amount, resource } entries
|
|
984
|
+
*/
|
|
985
|
+
sendResourceUndelegations(params: BuildResourceUndelegationTransactionOptions): Promise<{
|
|
986
|
+
success: ResourceManagementSendResult[];
|
|
987
|
+
failure: {
|
|
988
|
+
message: string;
|
|
989
|
+
receiverAddress?: string;
|
|
990
|
+
}[];
|
|
991
|
+
}>;
|
|
656
992
|
/**
|
|
657
993
|
* Builds a set of transactions that enables the specified tokens
|
|
658
994
|
* @param params -
|
|
@@ -660,6 +996,12 @@ export declare class Wallet implements IWallet {
|
|
|
660
996
|
* @returns Unsigned transactions that enables the specified tokens
|
|
661
997
|
*/
|
|
662
998
|
buildTokenEnablements(params?: BuildTokenEnablementOptions): Promise<PrebuildTransactionResult[]>;
|
|
999
|
+
/**
|
|
1000
|
+
* Builds wallet initialization
|
|
1001
|
+
* @param {PrebuildTransactionOptions} params
|
|
1002
|
+
* @returns {Promise<PrebuildTransactionResult>}
|
|
1003
|
+
*/
|
|
1004
|
+
buildWalletInitialization(params: PrebuildTransactionOptions): Promise<PrebuildTransactionResult>;
|
|
663
1005
|
/**
|
|
664
1006
|
* Signs and sends a single unsigned token enablement transaction
|
|
665
1007
|
* @param params
|
|
@@ -684,21 +1026,98 @@ export declare class Wallet implements IWallet {
|
|
|
684
1026
|
failure: Error[];
|
|
685
1027
|
}>;
|
|
686
1028
|
/**
|
|
687
|
-
*
|
|
1029
|
+
* The chain canton, requires the wallet to be initialized by sending out a transaction
|
|
1030
|
+
* to be onboarded onto the validator.
|
|
1031
|
+
* Builds, Signs and sends a transaction that initializes the canton wallet
|
|
1032
|
+
* @param params
|
|
688
1033
|
*/
|
|
689
|
-
|
|
1034
|
+
sendWalletInitialization(params?: PrebuildTransactionOptions): Promise<WalletInitResult>;
|
|
690
1035
|
/**
|
|
691
1036
|
* Prebuilds a transaction for a TSS wallet.
|
|
692
1037
|
*
|
|
693
1038
|
* @param params prebuild transaction options
|
|
694
1039
|
*/
|
|
695
|
-
private
|
|
1040
|
+
private prebuildTransactionTxRequests;
|
|
696
1041
|
/**
|
|
697
|
-
* Signs a transaction from a TSS wallet using external signer.
|
|
1042
|
+
* Signs a transaction from a TSS EdDSA wallet using external signer.
|
|
698
1043
|
*
|
|
699
1044
|
* @param params signing options
|
|
700
1045
|
*/
|
|
701
1046
|
private signTransactionTssExternalSignerEdDSA;
|
|
1047
|
+
/**
|
|
1048
|
+
* Signs and sends a transaction request from a TSS (hot) wallet, or a SMC (cold) wallet with an external signer.
|
|
1049
|
+
* Meant to be used for a transaction request where the signing process is aborted.
|
|
1050
|
+
*
|
|
1051
|
+
* Always clears any existing signature shares before signing, for both full and lite transaction
|
|
1052
|
+
* requests, so a resumed/retried sign (including one picked up by a different user than whoever
|
|
1053
|
+
* last touched this transaction request) restarts cleanly instead of building on stale shares.
|
|
1054
|
+
*
|
|
1055
|
+
* @param params
|
|
1056
|
+
* txRequestId - The ID of the transaction request.
|
|
1057
|
+
* walletPassphrase - The passphrase for the wallet.
|
|
1058
|
+
* isTxRequestFull - Flag indicating if the transaction request is full.
|
|
1059
|
+
* @returns A promise that resolves to a SignedTransaction.
|
|
1060
|
+
*/
|
|
1061
|
+
signAndSendTxRequest(params: SignAndSendTxRequestOptions): Promise<SignedTransaction>;
|
|
1062
|
+
/**
|
|
1063
|
+
* Signs the message of a full (apiVersion === 'full') message-sign
|
|
1064
|
+
* transaction request from a TSS wallet whose user signing material is
|
|
1065
|
+
* held server-side and decryptable via wallet passphrase (hot wallets —
|
|
1066
|
+
* there is no distinct warm wallet type). Meant to be used for a
|
|
1067
|
+
* message-sign request whose signing was parked behind a pending approval
|
|
1068
|
+
* by the message-signing policy and resumed after the approval was
|
|
1069
|
+
* resolved. Message-sign transaction requests are full-only: the lite
|
|
1070
|
+
* (deprecated) request flow never carries messages.
|
|
1071
|
+
*
|
|
1072
|
+
* Cold / external-signer wallets do not use this method: they resume via
|
|
1073
|
+
* wallet.signMessage({ message: { ..., txRequestId }, prv }), which routes
|
|
1074
|
+
* through the same pendingApproval guard and message signing path.
|
|
1075
|
+
*
|
|
1076
|
+
* Unlike signAndSendTxRequest, this signs through the message path
|
|
1077
|
+
* (signTxRequestForMessage with the WP-persisted messageEncoded); the
|
|
1078
|
+
* transaction signer has no transaction to sign on a message-only request.
|
|
1079
|
+
* The method only signs — delivery of the signature to the requestor is
|
|
1080
|
+
* completed server-side once the signature shares are ingested.
|
|
1081
|
+
*
|
|
1082
|
+
* If the request is still parked behind a pending approval (txRequest
|
|
1083
|
+
* state 'pendingApproval'), resolves with the pendingApprovalId instead
|
|
1084
|
+
* of signing (same contract as signMessage/signTypedData).
|
|
1085
|
+
*
|
|
1086
|
+
* @param params
|
|
1087
|
+
* txRequestId - The ID of the message-sign transaction request.
|
|
1088
|
+
* walletPassphrase - The passphrase for the wallet.
|
|
1089
|
+
* reqId - Optional request tracer.
|
|
1090
|
+
* @returns A promise that resolves to a SignedMessage.
|
|
1091
|
+
*/
|
|
1092
|
+
signAndSendMessageTxRequest(params: SignAndSendMessageTxRequestOptions): Promise<SignedMessage>;
|
|
1093
|
+
/**
|
|
1094
|
+
* Ensures signature shares are in a clean state before signing a transaction.
|
|
1095
|
+
* Automatically deletes signature shares for Full TxRequests before signing to prevent
|
|
1096
|
+
* issues with stale or partial signatures.
|
|
1097
|
+
* Use this for Express API and other integrations that need automatic cleanup of signatures.
|
|
1098
|
+
*
|
|
1099
|
+
* @param params - signing options
|
|
1100
|
+
* @returns signed transaction
|
|
1101
|
+
*/
|
|
1102
|
+
ensureCleanSigSharesAndSignTransaction(params?: WalletSignTransactionOptions): Promise<SignedTransaction | TxRequest>;
|
|
1103
|
+
/**
|
|
1104
|
+
* Signs a transaction from a TSS ECDSA wallet using external signer.
|
|
1105
|
+
*
|
|
1106
|
+
* @param params signing options
|
|
1107
|
+
*/
|
|
1108
|
+
private signTransactionTssExternalSignerECDSA;
|
|
1109
|
+
/**
|
|
1110
|
+
* Signs a transaction from a TSS EdDSA MPCv2 wallet using external signer.
|
|
1111
|
+
*
|
|
1112
|
+
* @param params signing options
|
|
1113
|
+
*/
|
|
1114
|
+
private signTransactionTssExternalSignerEdDSAMPCv2;
|
|
1115
|
+
/**
|
|
1116
|
+
* Signs a transaction from a TSS ECDSA wallet using external signer.
|
|
1117
|
+
*
|
|
1118
|
+
* @param params signing options
|
|
1119
|
+
*/
|
|
1120
|
+
private signTransactionTssExternalSignerECDSAMPCv2;
|
|
702
1121
|
/**
|
|
703
1122
|
* Signs a transaction from a TSS wallet.
|
|
704
1123
|
*
|
|
@@ -722,7 +1141,7 @@ export declare class Wallet implements IWallet {
|
|
|
722
1141
|
*
|
|
723
1142
|
* @param params send options
|
|
724
1143
|
*/
|
|
725
|
-
private
|
|
1144
|
+
private sendManyTxRequests;
|
|
726
1145
|
/**
|
|
727
1146
|
* Send funds from a fee address to a forwarder. Only supports eth-like coins.
|
|
728
1147
|
*
|
|
@@ -731,7 +1150,15 @@ export declare class Wallet implements IWallet {
|
|
|
731
1150
|
* @param {String} params.amount - Amount to send the forwarder (optional). If not given, defaults to sending an estimate of the amount needed for a fund recovery
|
|
732
1151
|
* @returns {*}
|
|
733
1152
|
*/
|
|
734
|
-
fundForwarder(params: FundForwardersOptions): Promise<
|
|
1153
|
+
fundForwarder(params: FundForwardersOptions): Promise<WalletData>;
|
|
1154
|
+
/**
|
|
1155
|
+
* Send funds from a fee address to a forwarder.
|
|
1156
|
+
*
|
|
1157
|
+
* @param {Object} params - parameters object
|
|
1158
|
+
* @param {List} params.forwarders - list of fund forwarder options
|
|
1159
|
+
* @returns {*}
|
|
1160
|
+
*/
|
|
1161
|
+
fundForwarders(params: FundForwarderParams): Promise<WalletData>;
|
|
735
1162
|
/**
|
|
736
1163
|
* Gets forwarder's balance
|
|
737
1164
|
* @param params - optional query parameters
|
|
@@ -747,5 +1174,34 @@ export declare class Wallet implements IWallet {
|
|
|
747
1174
|
* @returns {Promise<WalletEcdsaChallenges>}
|
|
748
1175
|
*/
|
|
749
1176
|
getChallengesForEcdsaSigning(): Promise<WalletEcdsaChallenges>;
|
|
1177
|
+
private sendTransaction;
|
|
1178
|
+
private initiateTransaction;
|
|
1179
|
+
/**
|
|
1180
|
+
* Get wallet keychains and validate passphrase if necessary
|
|
1181
|
+
* @param {PrebuildTransactionOptions} params - prebuild transaction options
|
|
1182
|
+
* @param {string} params.walletPassphrase - wallet passphrase
|
|
1183
|
+
* @param {string} params.reqId - request id for tracing purposes
|
|
1184
|
+
* @param {Function} params.customSigningFunction - custom signing function for external signing
|
|
1185
|
+
* @returns {Promise<Keychain[]>}
|
|
1186
|
+
*/
|
|
1187
|
+
private getKeychainsAndValidatePassphrase;
|
|
1188
|
+
/**
|
|
1189
|
+
* Approve token for use with a batcher contract
|
|
1190
|
+
* This function builds, signs, and sends a token approval transaction
|
|
1191
|
+
*
|
|
1192
|
+
* @param {string} walletPassphrase - The passphrase to be used to decrypt the user key
|
|
1193
|
+
* @param {string} tokenName - The name of the token to be approved
|
|
1194
|
+
* @returns {Promise<any>} The transaction details
|
|
1195
|
+
*/
|
|
1196
|
+
approveErc20Token(walletPassphrase: string, tokenName: string): Promise<SubmitTransactionResponse>;
|
|
1197
|
+
/**
|
|
1198
|
+
* Build token approval transaction for ERC20 tokens
|
|
1199
|
+
* If walletPassphrase is provided, also signs and sends the transaction
|
|
1200
|
+
*
|
|
1201
|
+
* @param {string} tokenName - The name of the token to be approved
|
|
1202
|
+
* @param {string} [walletPassphrase] - Optional wallet passphrase for signing and sending
|
|
1203
|
+
* @returns {Promise<BuildTokenApprovalResponse | SubmitTransactionResponse>} The token approval build response or transaction details if signed
|
|
1204
|
+
*/
|
|
1205
|
+
buildErc20TokenApproval(tokenName: string, walletPassphrase?: string): Promise<BuildTokenApprovalResponse | SubmitTransactionResponse>;
|
|
750
1206
|
}
|
|
751
1207
|
//# sourceMappingURL=wallet.d.ts.map
|