@bitgo-beta/sdk-core 8.2.1-beta.217 → 8.2.1-beta.2171
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 +59 -5
- package/dist/src/account-lib/baseCoin/enum.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/enum.js +112 -10
- 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/index.d.ts +1 -1
- package/dist/src/account-lib/mpc/index.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/index.js +6 -2
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts +2 -3
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.js +376 -354
- 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 +46 -53
- 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 +0 -1
- 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 -1
- 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.map +1 -1
- package/dist/src/bitgo/address-book/address-book.js +20 -12
- package/dist/src/bitgo/address-book/index.js +6 -2
- package/dist/src/bitgo/address-book/types.d.ts +36 -36
- package/dist/src/bitgo/address-book/types.d.ts.map +1 -1
- package/dist/src/bitgo/baseCoin/baseCoin.d.ts +123 -13
- package/dist/src/bitgo/baseCoin/baseCoin.d.ts.map +1 -1
- package/dist/src/bitgo/baseCoin/baseCoin.js +200 -16
- package/dist/src/bitgo/baseCoin/iBaseCoin.d.ts +341 -33
- 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 +21 -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 -107
- 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 +28 -7
- package/dist/src/bitgo/enterprise/enterprise.d.ts.map +1 -1
- package/dist/src/bitgo/enterprise/enterprise.js +97 -42
- package/dist/src/bitgo/enterprise/enterprises.js +27 -13
- package/dist/src/bitgo/enterprise/iEnterprise.d.ts +12 -3
- 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/index.js +6 -2
- package/dist/src/bitgo/environments.d.ts +72 -3
- package/dist/src/bitgo/environments.d.ts.map +1 -1
- package/dist/src/bitgo/environments.js +413 -34
- package/dist/src/bitgo/errors.d.ts +193 -1
- package/dist/src/bitgo/errors.d.ts.map +1 -1
- package/dist/src/bitgo/errors.js +194 -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 +234 -11
- package/dist/src/bitgo/keychain/iKeychains.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/iKeychains.js +23 -3
- package/dist/src/bitgo/keychain/index.d.ts +2 -0
- package/dist/src/bitgo/keychain/index.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/index.js +8 -2
- package/dist/src/bitgo/keychain/keychains.d.ts +127 -13
- package/dist/src/bitgo/keychain/keychains.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/keychains.js +519 -72
- package/dist/src/bitgo/keychain/ovcJsonCodec.d.ts +3 -3
- package/dist/src/bitgo/keychain/ovcJsonCodec.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/ovcJsonCodec.js +23 -9
- package/dist/src/bitgo/keychain/upgradeEncryption.d.ts +10 -0
- package/dist/src/bitgo/keychain/upgradeEncryption.d.ts.map +1 -0
- package/dist/src/bitgo/keychain/upgradeEncryption.js +14 -0
- 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 +25 -1
- package/dist/src/bitgo/pendingApproval/iPendingApproval.d.ts.map +1 -1
- package/dist/src/bitgo/pendingApproval/iPendingApproval.js +7 -5
- package/dist/src/bitgo/pendingApproval/index.js +6 -2
- package/dist/src/bitgo/pendingApproval/pendingApproval.d.ts +28 -9
- package/dist/src/bitgo/pendingApproval/pendingApproval.d.ts.map +1 -1
- package/dist/src/bitgo/pendingApproval/pendingApproval.js +278 -113
- 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 +35 -3
- package/dist/src/bitgo/recovery/initiate.d.ts.map +1 -1
- package/dist/src/bitgo/recovery/initiate.js +71 -41
- package/dist/src/bitgo/safe/derivableEd25519Pub.d.ts +72 -0
- package/dist/src/bitgo/safe/derivableEd25519Pub.d.ts.map +1 -0
- package/dist/src/bitgo/safe/derivableEd25519Pub.js +186 -0
- package/dist/src/bitgo/safe/iSafe.d.ts +145 -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 +132 -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 +9 -0
- package/dist/src/bitgo/safe/index.d.ts.map +1 -0
- package/dist/src/bitgo/safe/index.js +25 -0
- package/dist/src/bitgo/safe/keycard.d.ts +165 -0
- package/dist/src/bitgo/safe/keycard.d.ts.map +1 -0
- package/dist/src/bitgo/safe/keycard.js +298 -0
- package/dist/src/bitgo/safe/recovery.d.ts +332 -0
- package/dist/src/bitgo/safe/recovery.d.ts.map +1 -0
- package/dist/src/bitgo/safe/recovery.js +414 -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 +114 -0
- package/dist/src/bitgo/safe/safe.d.ts.map +1 -0
- package/dist/src/bitgo/safe/safe.js +476 -0
- package/dist/src/bitgo/safe/safes.d.ts +116 -0
- package/dist/src/bitgo/safe/safes.d.ts.map +1 -0
- package/dist/src/bitgo/safe/safes.js +467 -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 +161 -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 +21 -8
- package/dist/src/bitgo/staking/stakingWallet.d.ts.map +1 -1
- package/dist/src/bitgo/staking/stakingWallet.js +153 -7
- package/dist/src/bitgo/trading/iTradingAccount.d.ts +13 -1
- 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 -0
- package/dist/src/bitgo/trading/index.d.ts.map +1 -1
- package/dist/src/bitgo/trading/index.js +7 -2
- 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 +2 -0
- package/dist/src/bitgo/trading/network/index.d.ts.map +1 -1
- package/dist/src/bitgo/trading/network/index.js +8 -2
- package/dist/src/bitgo/trading/network/network.d.ts +4 -3
- package/dist/src/bitgo/trading/network/network.d.ts.map +1 -1
- package/dist/src/bitgo/trading/network/network.js +24 -27
- package/dist/src/bitgo/trading/network/types.d.ts +79 -46
- package/dist/src/bitgo/trading/network/types.d.ts.map +1 -1
- package/dist/src/bitgo/trading/network/types.js +1 -1
- 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 +15 -1
- package/dist/src/bitgo/trading/tradingAccount.d.ts.map +1 -1
- package/dist/src/bitgo/trading/tradingAccount.js +55 -7
- 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 +53 -6
- package/dist/src/bitgo/tss/common.d.ts.map +1 -1
- package/dist/src/bitgo/tss/common.js +145 -23
- package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts +7 -4
- package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/bitgo/tss/ecdsa/ecdsa.js +78 -66
- 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 +16 -6
- package/dist/src/bitgo/tss/eddsa/eddsa.d.ts.map +1 -1
- package/dist/src/bitgo/tss/eddsa/eddsa.js +47 -40
- 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 +138 -0
- package/dist/src/bitgo/tss/redpallas/redpallasMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/tss/redpallas/redpallasMPCv2.js +255 -0
- package/dist/src/bitgo/tss/types.d.ts +3 -3
- 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 +10 -0
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.d.ts.map +1 -1
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.js +76 -14
- package/dist/src/bitgo/utils/codecProps.js +24 -11
- 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 +6 -2
- package/dist/src/bitgo/utils/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/index.js +29 -11
- package/dist/src/bitgo/utils/legacyV1Envelope.d.ts +20 -0
- package/dist/src/bitgo/utils/legacyV1Envelope.d.ts.map +1 -0
- package/dist/src/bitgo/utils/legacyV1Envelope.js +74 -0
- 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 +220 -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 +22 -5
- package/dist/src/bitgo/utils/opengpgUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/opengpgUtils.js +116 -60
- package/dist/src/bitgo/utils/postWithCodec.js +2 -3
- 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 +103 -18
- package/dist/src/bitgo/utils/tss/baseTSSUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/baseTSSUtils.js +328 -46
- package/dist/src/bitgo/utils/tss/baseTypes.d.ts +502 -57
- package/dist/src/bitgo/utils/tss/baseTypes.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/baseTypes.js +47 -22
- 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 +96 -52
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.js +421 -248
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts +245 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.js +1096 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.d.ts +17 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.js +39 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaVrfMPCv2.d.ts +65 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaVrfMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaVrfMPCv2.js +439 -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 +7 -10
- 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 +151 -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 +43 -11
- package/dist/src/bitgo/utils/tss/eddsa/eddsa.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/eddsa.js +267 -96
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts +265 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.js +1025 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.d.ts +14 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.js +29 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.d.ts +44 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.js +268 -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/encryptedSessionSingleUse.d.ts +29 -0
- package/dist/src/bitgo/utils/tss/encryptedSessionSingleUse.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/encryptedSessionSingleUse.js +163 -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 +46 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.js +208 -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 +93 -1
- package/dist/src/bitgo/wallet/BuildParams.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/BuildParams.js +106 -11
- package/dist/src/bitgo/wallet/iWallet.d.ts +678 -33
- 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 +311 -16
- 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 +74 -0
- package/dist/src/bitgo/wallet/safeKeychain.d.ts.map +1 -0
- package/dist/src/bitgo/wallet/safeKeychain.js +176 -0
- package/dist/src/bitgo/wallet/wallet.d.ts +437 -28
- package/dist/src/bitgo/wallet/wallet.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/wallet.js +2626 -504
- package/dist/src/bitgo/wallet/wallets.d.ts +99 -4
- package/dist/src/bitgo/wallet/wallets.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/wallets.js +1263 -156
- 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 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +45 -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/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.js +91 -29
- 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 +276 -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 +452 -0
- package/dist/test/unit/bitgo/keychain/upgradeEncryption.d.ts +2 -0
- package/dist/test/unit/bitgo/keychain/upgradeEncryption.d.ts.map +1 -0
- package/dist/test/unit/bitgo/keychain/upgradeEncryption.js +21 -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 +268 -0
- package/dist/test/unit/bitgo/safe/fixtures/derivableEd25519Pub.json +72 -0
- package/dist/test/unit/bitgo/safe/fixtures/safeBip44Vectors.json +319 -0
- package/dist/test/unit/bitgo/safe/keycard.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/keycard.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/keycard.js +530 -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 +1204 -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 +626 -0
- package/dist/test/unit/bitgo/safe/safeBip44Vectors.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/safeBip44Vectors.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/safeBip44Vectors.js +189 -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 +37 -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 +718 -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 +133 -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 +370 -0
- package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.js +45 -4
- 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.canton.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.canton.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.canton.js +90 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.enableToken.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.enableToken.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.enableToken.js +115 -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.js +24 -10
- 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 +521 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsa.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsa.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsa.js +141 -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 +1318 -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 +2682 -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 +553 -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 +578 -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 +167 -0
- package/dist/test/unit/bitgo/wallet/SendTransactionRequest.js +79 -9
- package/dist/test/unit/bitgo/wallet/custodialInitiate.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/custodialInitiate.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/custodialInitiate.js +87 -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 +186 -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 +757 -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 +486 -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 +354 -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.map +1 -1
- package/dist/test/unit/units.js +64 -64
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +25 -22
- package/.eslintignore +0 -5
- package/CHANGELOG.md +0 -1866
- 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/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/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 -5
- package/dist/src/openssl/index.d.ts.map +0 -1
- package/dist/src/openssl/index.js +0 -9
- package/dist/test/unit/openssl.d.ts +0 -2
- package/dist/test/unit/openssl.d.ts.map +0 -1
- package/dist/test/unit/openssl.js +0 -39
|
@@ -1,12 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @prettier
|
|
3
|
+
*/
|
|
4
|
+
import { type AddressQueryResult } from '@bitgo/public-types';
|
|
5
|
+
import { EncryptionVersion, IRequestTracer } from '../../api';
|
|
6
|
+
import { IAddressBook } from '../address-book';
|
|
1
7
|
import { IBaseCoin, NFTTransferOptions, SignedMessage, SignedTransaction } from '../baseCoin';
|
|
2
8
|
import { BitGoBase } from '../bitgoBase';
|
|
9
|
+
import { SubmitTransactionResponse } from '../inscriptionBuilder';
|
|
10
|
+
import { KeychainWithEncryptedPrv, KeyEncryptionUpgradeResult } 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 {
|
|
7
|
-
import {
|
|
8
|
-
import { Lightning } from '../lightning';
|
|
9
|
-
import { IAddressBook } from '../address-book';
|
|
17
|
+
import { AttestationPayload } from './BuildParams';
|
|
18
|
+
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, UpgradeUserKeyEncryptionOptions, VerifyKeyOptions, VerifyKeyResult, WalletCoinSpecific, WalletData, WalletEcdsaChallenges, WalletSignMessageOptions, WalletSignTransactionOptions, WalletSignTypedDataOptions, WalletType, BuildTokenApprovalResponse, WalletInitResult, GetAccountResourcesOptions, GetAccountResourcesResponse, GetResourceDelegationsOptions, GetResourceDelegationsResponse } from './iWallet';
|
|
10
19
|
export declare enum ManageUnspentsOptions {
|
|
11
20
|
BUILD_ONLY = 0,
|
|
12
21
|
BUILD_SIGN_SEND = 1
|
|
@@ -15,8 +24,11 @@ export declare class Wallet implements IWallet {
|
|
|
15
24
|
readonly bitgo: BitGoBase;
|
|
16
25
|
readonly baseCoin: IBaseCoin;
|
|
17
26
|
_wallet: WalletData;
|
|
27
|
+
private _defi?;
|
|
18
28
|
private readonly tssUtils;
|
|
19
29
|
private readonly _permissions?;
|
|
30
|
+
/** Root keychain from passphrase preflight; consumed by getUserPrv to avoid a second GET. */
|
|
31
|
+
private validatedSafeRootKeychain?;
|
|
20
32
|
constructor(bitgo: BitGoBase, baseCoin: IBaseCoin, walletData: any);
|
|
21
33
|
/**
|
|
22
34
|
* Build a URL using this wallet's id which can be used for BitGo API operations
|
|
@@ -71,13 +83,24 @@ export declare class Wallet implements IWallet {
|
|
|
71
83
|
* Get the coin identifier for the type of coin this wallet holds
|
|
72
84
|
*/
|
|
73
85
|
coin(): string;
|
|
74
|
-
type(): WalletType
|
|
86
|
+
type(): WalletType;
|
|
75
87
|
multisigType(): 'onchain' | 'tss';
|
|
88
|
+
multisigTypeVersion(): 'MPCv2' | undefined;
|
|
89
|
+
/**
|
|
90
|
+
* Public id of the parent safe, if this wallet was minted in one.
|
|
91
|
+
* @experimental
|
|
92
|
+
*/
|
|
93
|
+
safeId(): string | undefined;
|
|
76
94
|
subType(): SubWalletType | undefined;
|
|
77
95
|
/**
|
|
78
96
|
* Get the label (name) for this wallet
|
|
79
97
|
*/
|
|
80
98
|
label(): string;
|
|
99
|
+
flags(): {
|
|
100
|
+
name: string;
|
|
101
|
+
value: string;
|
|
102
|
+
}[];
|
|
103
|
+
flag(name: string): string | undefined;
|
|
81
104
|
/**
|
|
82
105
|
* Get the public object ids for the keychains on this wallet.
|
|
83
106
|
*/
|
|
@@ -85,7 +108,7 @@ export declare class Wallet implements IWallet {
|
|
|
85
108
|
/**
|
|
86
109
|
* Get a receive address for this wallet
|
|
87
110
|
*/
|
|
88
|
-
receiveAddress(): string;
|
|
111
|
+
receiveAddress(): string | undefined;
|
|
89
112
|
/**
|
|
90
113
|
* Get the wallet id of the wallet that this wallet was migrated from.
|
|
91
114
|
*
|
|
@@ -118,6 +141,11 @@ export declare class Wallet implements IWallet {
|
|
|
118
141
|
* @returns {*}
|
|
119
142
|
*/
|
|
120
143
|
transactions(params?: PaginationOptions): Promise<any>;
|
|
144
|
+
/**
|
|
145
|
+
* List potentially stuck transactions for this wallet.
|
|
146
|
+
* Age thresholds are opt-in; when both are supplied, the API uses OR semantics.
|
|
147
|
+
*/
|
|
148
|
+
getPotentialStuckTxs(params?: GetPotentialStuckTxsOptions): Promise<GetPotentialStuckTxsResult[]>;
|
|
121
149
|
/**
|
|
122
150
|
* Return a list of nft tokens for this wallet. Will always return undefined if the wallet
|
|
123
151
|
* was not initialized with the allTokens flag.
|
|
@@ -216,6 +244,21 @@ export declare class Wallet implements IWallet {
|
|
|
216
244
|
* with each transaction composed of 200 unspents, except for the last transaction which may have fewer unspents.
|
|
217
245
|
*/
|
|
218
246
|
private manageUnspents;
|
|
247
|
+
/**
|
|
248
|
+
* Manage the unspent reservations on the wallet
|
|
249
|
+
*
|
|
250
|
+
* @param params.create - create a new reservation
|
|
251
|
+
* @param params.modify - modify an existing reservation
|
|
252
|
+
* @param params.delete - delete an existing reservation
|
|
253
|
+
*/
|
|
254
|
+
manageUnspentReservations(params: ManageUnspentReservationOptions): Promise<{
|
|
255
|
+
unspents: {
|
|
256
|
+
id: string;
|
|
257
|
+
walletId: string;
|
|
258
|
+
expireTime: string;
|
|
259
|
+
userId?: string;
|
|
260
|
+
}[];
|
|
261
|
+
}>;
|
|
219
262
|
/**
|
|
220
263
|
* Consolidate unspents on a wallet
|
|
221
264
|
*
|
|
@@ -255,8 +298,10 @@ export declare class Wallet implements IWallet {
|
|
|
255
298
|
* @param {Number} params.maxFeeRate - The max limit for a fee rate in satoshis/kB
|
|
256
299
|
* @param {Number} params.maxNumInputsToUse - the number of unspents you want to use in the transaction
|
|
257
300
|
* @param {Number} params.numUnspentsToMake - the number of new unspents to make
|
|
301
|
+
*
|
|
302
|
+
* @param {ManageUnspentsOptions} option - flag to toggle build and send or build only
|
|
258
303
|
*/
|
|
259
|
-
fanoutUnspents(params?: FanoutUnspentsOptions): Promise<unknown>;
|
|
304
|
+
fanoutUnspents(params?: FanoutUnspentsOptions, option?: ManageUnspentsOptions): Promise<unknown>;
|
|
260
305
|
/**
|
|
261
306
|
* Set the token flush thresholds for the wallet. Updates the wallet.
|
|
262
307
|
* Tokens will only be flushed from forwarder contracts if the balance is greater than the threshold defined here.
|
|
@@ -329,7 +374,13 @@ export declare class Wallet implements IWallet {
|
|
|
329
374
|
* @param params
|
|
330
375
|
* @returns {*}
|
|
331
376
|
*/
|
|
332
|
-
addresses(params?: AddressesOptions): Promise<
|
|
377
|
+
addresses(params?: AddressesOptions): Promise<AddressQueryResult>;
|
|
378
|
+
/**
|
|
379
|
+
* List the addresses sorted by balance for a given wallet
|
|
380
|
+
* @param params
|
|
381
|
+
* @returns {*}
|
|
382
|
+
*/
|
|
383
|
+
addressesByBalance(params: AddressesByBalanceOptions): Promise<any>;
|
|
333
384
|
/**
|
|
334
385
|
* Get a single wallet address by its id
|
|
335
386
|
* @param params
|
|
@@ -363,6 +414,20 @@ export declare class Wallet implements IWallet {
|
|
|
363
414
|
* @returns {*}
|
|
364
415
|
*/
|
|
365
416
|
updateAddress(params?: UpdateAddressOptions): Promise<any>;
|
|
417
|
+
/**
|
|
418
|
+
* Get account resources for the given addresses
|
|
419
|
+
* @param params - options object containing addresses and optional destinationAddress
|
|
420
|
+
* @returns {Promise<GetAccountResourcesResponse>} - response from WP API
|
|
421
|
+
*/
|
|
422
|
+
getAccountResources(params: GetAccountResourcesOptions): Promise<GetAccountResourcesResponse>;
|
|
423
|
+
/**
|
|
424
|
+
* Get resource delegations for this wallet
|
|
425
|
+
* @param params - optional filters: type, resource, limit, nextBatchPrevId
|
|
426
|
+
* @returns {Promise<GetResourceDelegationsResponse>} - response from WP API
|
|
427
|
+
*/
|
|
428
|
+
getResourceDelegations(params?: GetResourceDelegationsOptions): Promise<GetResourceDelegationsResponse>;
|
|
429
|
+
updateWalletBuildDefaults(params: UpdateBuildDefaultOptions): Promise<unknown>;
|
|
430
|
+
updateWallet(params: UpdateWalletOptions): Promise<unknown>;
|
|
366
431
|
/**
|
|
367
432
|
* List webhooks on this wallet
|
|
368
433
|
* @param params
|
|
@@ -388,15 +453,13 @@ export declare class Wallet implements IWallet {
|
|
|
388
453
|
*/
|
|
389
454
|
removeWebhook(params?: ModifyWebhookOptions): Promise<any>;
|
|
390
455
|
/**
|
|
391
|
-
* Gets the user
|
|
456
|
+
* Gets the user keychain for this wallet
|
|
392
457
|
*
|
|
393
|
-
* The user
|
|
458
|
+
* The user keychain is the first keychain of the wallet and usually has the encrypted prv stored on BitGo.
|
|
394
459
|
* Useful when trying to get the users' keychain from the server before decrypting to sign a transaction.
|
|
395
|
-
* @param params
|
|
396
460
|
*/
|
|
397
|
-
getEncryptedUserKeychain(
|
|
398
|
-
|
|
399
|
-
}>;
|
|
461
|
+
getEncryptedUserKeychain(): Promise<KeychainWithEncryptedPrv>;
|
|
462
|
+
private getSafeOwnerChildKeychain;
|
|
400
463
|
/**
|
|
401
464
|
* Gets the unencrypted private key for this wallet (be careful!)
|
|
402
465
|
* Requires wallet passphrase
|
|
@@ -404,11 +467,84 @@ export declare class Wallet implements IWallet {
|
|
|
404
467
|
* @param params
|
|
405
468
|
*/
|
|
406
469
|
getPrv(params?: GetPrvOptions): Promise<any>;
|
|
470
|
+
private isMultiUserKeyWallet;
|
|
407
471
|
/**
|
|
408
472
|
* Send an encrypted wallet share to BitGo.
|
|
409
473
|
* @param params
|
|
410
474
|
*/
|
|
411
475
|
createShare(params?: CreateShareOptions): Promise<any>;
|
|
476
|
+
/**
|
|
477
|
+
* Shares a wallet with multiple users by creating bulk wallet shares.
|
|
478
|
+
*
|
|
479
|
+
* @async
|
|
480
|
+
* @param {BulkWalletShareOptions} params - The options for sharing wallets in bulk.
|
|
481
|
+
* @param {Array<ShareOption>} params.shareOptions - An array of share option objects containing user and permissions information.
|
|
482
|
+
* @param {Object} [params.shareOptions[].keychain] - The keychain object used to share the wallet.
|
|
483
|
+
* @param {string} [params.shareOptions[].keychain.toPubKey] - The recipient's public key.
|
|
484
|
+
* @param {string} [params.shareOptions[].keychain.path] - The derivation path of the keychain.
|
|
485
|
+
* @param {string} params.shareOptions[].user - The user to share the wallet with.
|
|
486
|
+
* @param {string} params.shareOptions[].permissions - The permissions granted to the user.
|
|
487
|
+
* @param {string} [params.walletPassphrase] - The wallet passphrase used to decrypt the keychain.
|
|
488
|
+
* @throws {Error} If `shareOptions` is empty, or if required keychain parameters (`toPubKey` and `path`) are missing when needed.
|
|
489
|
+
* @throws {Error} If unable to decrypt the user keychain.
|
|
490
|
+
* @returns {Promise<CreateBulkWalletShareListResponse>} A promise that resolves with the response of the bulk wallet share creation.
|
|
491
|
+
*/
|
|
492
|
+
createBulkWalletShare(params: BulkWalletShareOptions): Promise<CreateBulkWalletShareListResponse>;
|
|
493
|
+
/**
|
|
494
|
+
* Creates bulk wallet share entries for specified share options.
|
|
495
|
+
* Filters out share options that do not contain valid keychain information or have missing keychain fields.
|
|
496
|
+
* If all share options are invalid or empty, it throws an error.
|
|
497
|
+
* Sends a POST request to create the wallet shares for valid share options.
|
|
498
|
+
*
|
|
499
|
+
* @async
|
|
500
|
+
* @param {BulkCreateShareOption[]} [params=[]] - The array of share options to process.
|
|
501
|
+
* Keychain entries must include the following fields: `pub`, `encryptedPrv`, `fromPubKey`, `toPubKey`, and `path`.
|
|
502
|
+
* @returns {Promise<CreateBulkWalletShareListResponse>} A promise resolving to the result of the wallet shares creation.
|
|
503
|
+
* @throws {Error} Throws an error if no valid share options are provided.
|
|
504
|
+
*/
|
|
505
|
+
createBulkKeyShares(params?: BulkCreateShareOption[]): Promise<CreateBulkWalletShareListResponse>;
|
|
506
|
+
/**
|
|
507
|
+
* Gets keychain with encrypted private key to be shared for wallet sharing.
|
|
508
|
+
*/
|
|
509
|
+
private getEncryptedWalletKeychainForWalletSharing;
|
|
510
|
+
/**
|
|
511
|
+
* Fetches and decrypts the wallet keychain for sharing.
|
|
512
|
+
* This method fetches the keychain once and decrypts it, returning the decrypted
|
|
513
|
+
* private key and public key info needed for sharing with multiple users.
|
|
514
|
+
*
|
|
515
|
+
* @param walletPassphrase - The passphrase to decrypt the keychain
|
|
516
|
+
* @returns Object containing decrypted prv and pub, or undefined for cold wallets
|
|
517
|
+
*/
|
|
518
|
+
getDecryptedKeychainForSharing(walletPassphrase: string | undefined): Promise<DecryptedKeychainData | undefined>;
|
|
519
|
+
/**
|
|
520
|
+
* Encrypts a decrypted private key for sharing with a specific user.
|
|
521
|
+
* This is the pure encryption step - no API calls, no decryption.
|
|
522
|
+
*
|
|
523
|
+
* @param decryptedPrv - The already-decrypted private key
|
|
524
|
+
* @param pub - The wallet's public key
|
|
525
|
+
* @param userPubkey - The recipient user's public key
|
|
526
|
+
* @param path - The key path
|
|
527
|
+
* @param encryptionVersion - Deprecated and ignored because the shared key is high entropy.
|
|
528
|
+
* @returns The encrypted keychain for the recipient with all required fields
|
|
529
|
+
*/
|
|
530
|
+
encryptPrvForUser(decryptedPrv: string, pub: string, userPubkey: string, path: string,
|
|
531
|
+
/** @deprecated Ignored because the shared key is high entropy. */
|
|
532
|
+
encryptionVersion?: EncryptionVersion): Promise<BulkWalletShareKeychain>;
|
|
533
|
+
private rethrowUnlessColdWalletShare;
|
|
534
|
+
/**
|
|
535
|
+
* Prepares a keychain for sharing with another user.
|
|
536
|
+
* Fetches the wallet keychain, decrypts it, and encrypts it for the recipient.
|
|
537
|
+
*
|
|
538
|
+
* @param walletPassphrase - The passphrase to decrypt the keychain
|
|
539
|
+
* @param pubkey - The recipient's public key
|
|
540
|
+
* @param path - The key path
|
|
541
|
+
* @param encryptionVersion - Deprecated and ignored because the shared key is high entropy.
|
|
542
|
+
* @param decryptedKeychain - Pre-decrypted keychain for bulk sharing
|
|
543
|
+
* @returns The encrypted keychain for the recipient
|
|
544
|
+
*/
|
|
545
|
+
prepareSharedKeychain(walletPassphrase: string | undefined, pubkey: string, path: string,
|
|
546
|
+
/** @deprecated Ignored because the shared key is high entropy. */
|
|
547
|
+
encryptionVersion?: EncryptionVersion, decryptedKeychain?: DecryptedKeychainData): Promise<SharedKeyChain>;
|
|
412
548
|
/**
|
|
413
549
|
* Share this wallet with another BitGo user.
|
|
414
550
|
* @param params
|
|
@@ -464,19 +600,47 @@ export declare class Wallet implements IWallet {
|
|
|
464
600
|
* @param walletPassphrase The wallet passphrase
|
|
465
601
|
* @return Promise<SignedTransaction>
|
|
466
602
|
*/
|
|
467
|
-
getUserKeyAndSignTssTransaction({ txRequestId, walletPassphrase, }: {
|
|
603
|
+
getUserKeyAndSignTssTransaction({ txRequestId, walletPassphrase, attestation, }: {
|
|
468
604
|
txRequestId: string;
|
|
469
605
|
walletPassphrase: string;
|
|
606
|
+
/** Optional WebAuthn proof for the first TSS withdrawal-signing round; pass-through only. */
|
|
607
|
+
attestation?: AttestationPayload;
|
|
470
608
|
}): Promise<SignedTransaction>;
|
|
471
609
|
/**
|
|
472
610
|
* Sign a transaction
|
|
473
611
|
* @param params
|
|
474
612
|
* - txPrebuild
|
|
475
613
|
* - [keychain / key] (object) or prv (string)
|
|
476
|
-
* - walletPassphrase
|
|
614
|
+
* - walletPassphrase (optional ONLY for OFC wallets with userKeySigningRequired = false)
|
|
615
|
+
* - verifyTxParams (optional) - when provided, the transaction will be verified before signing
|
|
616
|
+
* - txParams: transaction parameters used for verification
|
|
617
|
+
* - verification: optional verification options
|
|
477
618
|
* @return {*}
|
|
478
619
|
*/
|
|
479
620
|
signTransaction(params?: WalletSignTransactionOptions): Promise<SignedTransaction | TxRequest>;
|
|
621
|
+
/**
|
|
622
|
+
* Upgrade the stored encryption of this wallet's user key to the latest format, using the wallet
|
|
623
|
+
* passphrase. Use it after a signing call to run the upgrade and show the outcome, for example in
|
|
624
|
+
* a UI. It applies regardless of the `upgradeEncryptionOnSign` setting, never throws, and never
|
|
625
|
+
* affects signing.
|
|
626
|
+
*
|
|
627
|
+
* @param params.walletPassphrase - the wallet passphrase that decrypts the user key
|
|
628
|
+
* @param params.reqId - optional request tracer
|
|
629
|
+
*/
|
|
630
|
+
upgradeUserKeyEncryption(params: UpgradeUserKeyEncryptionOptions): Promise<KeyEncryptionUpgradeResult>;
|
|
631
|
+
/**
|
|
632
|
+
* Fire-and-forget upgrade of the user keychain's v1 `encryptedPrv` to v2, for signing paths
|
|
633
|
+
* that just resolved the prv from `walletPassphrase` via `getUserPrv(params)`.
|
|
634
|
+
*
|
|
635
|
+
* Does nothing when the upgrade is not enabled for this call (per-call `upgradeEncryption`, else
|
|
636
|
+
* the `upgradeEncryptionOnSign` setting), when the caller supplied `prv`, when there is no
|
|
637
|
+
* passphrase, when the keychain has no `encryptedPrv`, or for safe child keychains (their prv
|
|
638
|
+
* comes from the root key). The upgrade is never awaited and can never affect the signing result.
|
|
639
|
+
*
|
|
640
|
+
* @param params - the same options that were passed to `getUserPrv`
|
|
641
|
+
* @param upgradeEncryption - the signing call's `upgradeEncryption` option
|
|
642
|
+
*/
|
|
643
|
+
private startUserKeyEncryptionUpgrade;
|
|
480
644
|
/**
|
|
481
645
|
* Sign a typed structured data using TSS
|
|
482
646
|
* @param params
|
|
@@ -490,28 +654,60 @@ export declare class Wallet implements IWallet {
|
|
|
490
654
|
*/
|
|
491
655
|
signMessage(params?: WalletSignMessageOptions): Promise<SignedMessage>;
|
|
492
656
|
/**
|
|
493
|
-
*
|
|
657
|
+
* Prepares and creates a sign message request for TSS wallets, that can be used later for signing.
|
|
658
|
+
*
|
|
659
|
+
* @param params - Parameters for creating the sign message request
|
|
660
|
+
* @returns Promise<TxRequest> - The created transaction request for signing a message
|
|
661
|
+
*/
|
|
662
|
+
buildSignMessageRequest(params: WalletSignMessageOptions): Promise<TxRequest>;
|
|
663
|
+
/**
|
|
664
|
+
* Get the user private key from either a derivation or an encrypted keychain.
|
|
665
|
+
* Supports both v1 (SJCL) and v2 (Argon2id) envelopes.
|
|
494
666
|
* @param [params.keychain / params.key] (object) or params.prv (string)
|
|
495
667
|
* @param params.walletPassphrase (string)
|
|
496
668
|
*/
|
|
497
|
-
getUserPrv(params?: GetUserPrvOptions): string
|
|
669
|
+
getUserPrv(params?: GetUserPrvOptions): Promise<string>;
|
|
670
|
+
/**
|
|
671
|
+
* Verify that user-held TSS signing material belongs to this wallet.
|
|
672
|
+
*
|
|
673
|
+
* Recombines the shares locally and compares the result against the user keychain's
|
|
674
|
+
* `commonKeychain`, answering up front whether the material can sign for this wallet
|
|
675
|
+
* instead of discovering a mismatch only when a signature fails. Supported for TSS EdDSA
|
|
676
|
+
* (MPCv1) wallets; other wallet types are rejected.
|
|
677
|
+
*
|
|
678
|
+
* The result is a consistency check for a caller inspecting its own material, not proof of
|
|
679
|
+
* possession, and must never be used as an authorization signal.
|
|
680
|
+
*
|
|
681
|
+
* `walletPassphrase` is deliberately not accepted: decrypting the BitGo-held `encryptedPrv`
|
|
682
|
+
* and comparing it against the BitGo-held keychain is circular, and callers that hold their
|
|
683
|
+
* own key material do not need it.
|
|
684
|
+
*
|
|
685
|
+
* @param params.prv - user signing material, the same string that would be passed as `prv` when signing
|
|
686
|
+
* @param params.reqId - request tracer
|
|
687
|
+
* @returns whether the recombined key matches the wallet's commonKeychain
|
|
688
|
+
*/
|
|
689
|
+
verifyKey(params: VerifyKeyOptions): Promise<VerifyKeyResult>;
|
|
498
690
|
/**
|
|
499
691
|
* Get a transaction prebuild from BitGo, validate it, and then decrypt the user key and sign the transaction
|
|
500
692
|
* @param params
|
|
501
693
|
*/
|
|
502
694
|
prebuildAndSignTransaction(params?: PrebuildAndSignTransactionOptions): Promise<SignedTransaction>;
|
|
503
695
|
/**
|
|
504
|
-
* Accelerate a transaction's confirmation using Child-Pays-For-Parent (CPFP)
|
|
696
|
+
* Accelerate a transaction's confirmation using Child-Pays-For-Parent (CPFP) or Replace-By-Fee (RBF)
|
|
505
697
|
* @param params
|
|
506
698
|
*/
|
|
507
699
|
accelerateTransaction(params?: AccelerateTransactionOptions): Promise<any>;
|
|
700
|
+
private validateAccelerationParams;
|
|
701
|
+
private validateRbfParams;
|
|
702
|
+
private validateCpfpParams;
|
|
508
703
|
/**
|
|
509
704
|
* Submit a half-signed transaction to BitGo
|
|
510
705
|
* @param params
|
|
511
706
|
* - txHex: transaction hex to submit
|
|
512
707
|
* - halfSigned: object containing transaction (txHex or txBase64) to submit
|
|
708
|
+
* @param reqId - request tracer request id
|
|
513
709
|
*/
|
|
514
|
-
submitTransaction(params?: SubmitTransactionOptions): Promise<any>;
|
|
710
|
+
submitTransaction(params?: SubmitTransactionOptions, reqId?: IRequestTracer): Promise<any>;
|
|
515
711
|
/**
|
|
516
712
|
* Send coins to a recipient
|
|
517
713
|
* @param params
|
|
@@ -658,6 +854,15 @@ export declare class Wallet implements IWallet {
|
|
|
658
854
|
* Extract a JSON representable version of this wallet
|
|
659
855
|
*/
|
|
660
856
|
toJSON(): WalletData;
|
|
857
|
+
/**
|
|
858
|
+
* Create a lightning invoice for this wallet.
|
|
859
|
+
* Supported for OFC (trading) and BTC wallets.
|
|
860
|
+
* Uses the same wallet-platform endpoint as lnbtc wallets.
|
|
861
|
+
* @param params.valueSat - Invoice value in satoshis - if not provided, a zero-value invoice is created
|
|
862
|
+
* @param params.memo - Optional memo/description
|
|
863
|
+
* @param params.expiry - Optional expiry in seconds (not supported for trading wallets)
|
|
864
|
+
*/
|
|
865
|
+
createLightningInvoice(params: CreateLightningInvoiceParams): Promise<LightningInvoiceResponse>;
|
|
661
866
|
/**
|
|
662
867
|
* Create a trading account from this wallet
|
|
663
868
|
*/
|
|
@@ -666,12 +871,21 @@ export declare class Wallet implements IWallet {
|
|
|
666
871
|
* Get the address book for this wallet
|
|
667
872
|
*/
|
|
668
873
|
toAddressBook(): IAddressBook;
|
|
874
|
+
/**
|
|
875
|
+
* Access DeFi vault operations for this wallet (deposit, withdraw, resume).
|
|
876
|
+
*/
|
|
877
|
+
get defi(): DefiVault;
|
|
669
878
|
/**
|
|
670
879
|
* Create a staking wallet from this wallet
|
|
671
880
|
*/
|
|
672
881
|
toStakingWallet(): StakingWallet;
|
|
673
882
|
/**
|
|
674
|
-
*
|
|
883
|
+
* Create a go staking wallet from this wallet
|
|
884
|
+
*/
|
|
885
|
+
toGoStakingWallet(): GoStakingWallet;
|
|
886
|
+
/**
|
|
887
|
+
* Creates and downloads PDF keycard for wallet (requires response from wallets.generateWallet).
|
|
888
|
+
* `encryptionVersion` applies to the backup key. Box D uses its fixed version.
|
|
675
889
|
*
|
|
676
890
|
* Note: this is example code and is not the version used on bitgo.com
|
|
677
891
|
*
|
|
@@ -688,7 +902,30 @@ export declare class Wallet implements IWallet {
|
|
|
688
902
|
* * backupKeyID - the Key ID used for deriving a cold wallet's backup key
|
|
689
903
|
* @returns {*}
|
|
690
904
|
*/
|
|
691
|
-
downloadKeycard(params?: DownloadKeycardOptions): void
|
|
905
|
+
downloadKeycard(params?: DownloadKeycardOptions): Promise<void>;
|
|
906
|
+
/**
|
|
907
|
+
* Upgrade this wallet's keychain encryption from v1 (SJCL / PBKDF2-SHA256 + AES-256-CCM) to
|
|
908
|
+
* v2 (Argon2id + AES-256-GCM) and, optionally, regenerate the keycard PDF.
|
|
909
|
+
*
|
|
910
|
+
* Steps:
|
|
911
|
+
* 1. Unlock the BitGo session (skipped in dry-run).
|
|
912
|
+
* 2. Validate MPCv2 requirements (boxA/boxB when relevant).
|
|
913
|
+
* 3. Resolve the current and original passphrases (deriving from boxD if needed).
|
|
914
|
+
* 4. Re-encrypt user and backup keychains from v1 to v2 and PUT them to the server.
|
|
915
|
+
* 5. Re-encrypt MPCv2 reducedEncryptedPrv shares from boxA/boxB (keycard-only, no server PUT).
|
|
916
|
+
* 6. Invoke the injected {@link UpgradeEncryptionPdfGenerator} to regenerate the keycard PDF.
|
|
917
|
+
*
|
|
918
|
+
* @returns the generated PDF and wallet label, or undefined in dry-run or when no PDF generator is provided.
|
|
919
|
+
*/
|
|
920
|
+
upgradeEncryption(params: UpgradeEncryptionOptions): Promise<UpgradeEncryptionResult | undefined>;
|
|
921
|
+
/**
|
|
922
|
+
* Re-encrypt a ciphertext that was written at wallet creation time (backup key, boxA, boxB).
|
|
923
|
+
* These are not re-encrypted on password change, so the encryption passphrase may still be
|
|
924
|
+
* the original one from when the wallet was created. Try the current passphrase first; fall
|
|
925
|
+
* back to `originalPassphrase` if provided.
|
|
926
|
+
*/
|
|
927
|
+
private reencryptCreationTimeKey;
|
|
928
|
+
private fetchPasscodeEncryptionCode;
|
|
692
929
|
/**
|
|
693
930
|
* Builds a set of consolidation transactions for a wallet.
|
|
694
931
|
* @param params
|
|
@@ -709,6 +946,75 @@ export declare class Wallet implements IWallet {
|
|
|
709
946
|
* consolidateAddresses - these are the on-chain receive addresses we want to pick a consolidation amount from
|
|
710
947
|
*/
|
|
711
948
|
sendAccountConsolidations(params?: BuildConsolidationTransactionOptions): Promise<any>;
|
|
949
|
+
/**
|
|
950
|
+
* Shared build logic for resource delegation and undelegation.
|
|
951
|
+
* POSTs to the given endpoint and post-processes each prebuild.
|
|
952
|
+
*/
|
|
953
|
+
private buildResourceManagementTransactions;
|
|
954
|
+
/**
|
|
955
|
+
* Shared signing logic for a single resource management transaction (delegation or undelegation).
|
|
956
|
+
* Signing flow by wallet type (mirrors sendAccountConsolidation):
|
|
957
|
+
* - TSS (hot or custodial) → sendManyTxRequests (requires txRequestId on prebuildTx)
|
|
958
|
+
* - Custodial non-TSS → initiateTransaction (BitGo auto-signs with its key)
|
|
959
|
+
* - Hot non-TSS → prebuildAndSignTransaction + submitTransaction
|
|
960
|
+
*/
|
|
961
|
+
private sendResourceManagementTransaction;
|
|
962
|
+
/**
|
|
963
|
+
* Shared build → sign → send loop for resource delegation and undelegation.
|
|
964
|
+
* Validates the wallet passphrase upfront, then sends each transaction individually.
|
|
965
|
+
* Returns { success, failure } so partial success is handled gracefully.
|
|
966
|
+
*/
|
|
967
|
+
private sendResourceManagementTransactions;
|
|
968
|
+
/**
|
|
969
|
+
* Builds a set of resource delegation transactions for the given delegation entries.
|
|
970
|
+
* Each entry delegates resources (e.g. ENERGY, BANDWIDTH) from this wallet's root address
|
|
971
|
+
* to a receiver address. Modelled after buildAccountConsolidations.
|
|
972
|
+
*
|
|
973
|
+
* @param params.delegations - Array of { receiverAddress, amount, resource } entries
|
|
974
|
+
* @returns Unsigned prebuild transaction results, one per delegation entry
|
|
975
|
+
*/
|
|
976
|
+
buildResourceDelegations(params: BuildResourceDelegationTransactionOptions): Promise<BuildResourceManagementTransactionResult>;
|
|
977
|
+
/**
|
|
978
|
+
* Signs and sends a single resource delegation transaction.
|
|
979
|
+
* @param params.prebuildTx - A single prebuild result from buildResourceDelegations
|
|
980
|
+
*/
|
|
981
|
+
sendResourceDelegation(params?: PrebuildAndSignTransactionOptions): Promise<ResourceManagementSendResult>;
|
|
982
|
+
/**
|
|
983
|
+
* Builds, signs, and sends all resource delegation transactions in a single call.
|
|
984
|
+
* @param params.delegations - Array of { receiverAddress, amount, resource } entries
|
|
985
|
+
*/
|
|
986
|
+
sendResourceDelegations(params: BuildResourceDelegationTransactionOptions): Promise<{
|
|
987
|
+
success: ResourceManagementSendResult[];
|
|
988
|
+
failure: {
|
|
989
|
+
message: string;
|
|
990
|
+
receiverAddress?: string;
|
|
991
|
+
}[];
|
|
992
|
+
}>;
|
|
993
|
+
/**
|
|
994
|
+
* Builds a set of resource undelegation transactions for the given entries.
|
|
995
|
+
* Each entry reclaims delegated resources from this wallet's root address back from
|
|
996
|
+
* a receiver address. Modelled after buildResourceDelegations.
|
|
997
|
+
*
|
|
998
|
+
* @param params.undelegations - Array of { receiverAddress, amount, resource } entries
|
|
999
|
+
* @returns Unsigned prebuild transaction results, one per undelegation entry
|
|
1000
|
+
*/
|
|
1001
|
+
buildResourceUndelegations(params: BuildResourceUndelegationTransactionOptions): Promise<BuildResourceManagementTransactionResult>;
|
|
1002
|
+
/**
|
|
1003
|
+
* Signs and sends a single resource undelegation transaction.
|
|
1004
|
+
* @param params.prebuildTx - A single prebuild result from buildResourceUndelegations
|
|
1005
|
+
*/
|
|
1006
|
+
sendResourceUndelegation(params?: PrebuildAndSignTransactionOptions): Promise<ResourceManagementSendResult>;
|
|
1007
|
+
/**
|
|
1008
|
+
* Builds, signs, and sends all resource undelegation transactions in a single call.
|
|
1009
|
+
* @param params.undelegations - Array of { receiverAddress, amount, resource } entries
|
|
1010
|
+
*/
|
|
1011
|
+
sendResourceUndelegations(params: BuildResourceUndelegationTransactionOptions): Promise<{
|
|
1012
|
+
success: ResourceManagementSendResult[];
|
|
1013
|
+
failure: {
|
|
1014
|
+
message: string;
|
|
1015
|
+
receiverAddress?: string;
|
|
1016
|
+
}[];
|
|
1017
|
+
}>;
|
|
712
1018
|
/**
|
|
713
1019
|
* Builds a set of transactions that enables the specified tokens
|
|
714
1020
|
* @param params -
|
|
@@ -716,6 +1022,12 @@ export declare class Wallet implements IWallet {
|
|
|
716
1022
|
* @returns Unsigned transactions that enables the specified tokens
|
|
717
1023
|
*/
|
|
718
1024
|
buildTokenEnablements(params?: BuildTokenEnablementOptions): Promise<PrebuildTransactionResult[]>;
|
|
1025
|
+
/**
|
|
1026
|
+
* Builds wallet initialization
|
|
1027
|
+
* @param {PrebuildTransactionOptions} params
|
|
1028
|
+
* @returns {Promise<PrebuildTransactionResult>}
|
|
1029
|
+
*/
|
|
1030
|
+
buildWalletInitialization(params: PrebuildTransactionOptions): Promise<PrebuildTransactionResult>;
|
|
719
1031
|
/**
|
|
720
1032
|
* Signs and sends a single unsigned token enablement transaction
|
|
721
1033
|
* @param params
|
|
@@ -740,27 +1052,98 @@ export declare class Wallet implements IWallet {
|
|
|
740
1052
|
failure: Error[];
|
|
741
1053
|
}>;
|
|
742
1054
|
/**
|
|
743
|
-
*
|
|
1055
|
+
* The chain canton, requires the wallet to be initialized by sending out a transaction
|
|
1056
|
+
* to be onboarded onto the validator.
|
|
1057
|
+
* Builds, Signs and sends a transaction that initializes the canton wallet
|
|
1058
|
+
* @param params
|
|
744
1059
|
*/
|
|
745
|
-
|
|
1060
|
+
sendWalletInitialization(params?: PrebuildTransactionOptions): Promise<WalletInitResult>;
|
|
746
1061
|
/**
|
|
747
1062
|
* Prebuilds a transaction for a TSS wallet.
|
|
748
1063
|
*
|
|
749
1064
|
* @param params prebuild transaction options
|
|
750
1065
|
*/
|
|
751
|
-
private
|
|
1066
|
+
private prebuildTransactionTxRequests;
|
|
752
1067
|
/**
|
|
753
1068
|
* Signs a transaction from a TSS EdDSA wallet using external signer.
|
|
754
1069
|
*
|
|
755
1070
|
* @param params signing options
|
|
756
1071
|
*/
|
|
757
1072
|
private signTransactionTssExternalSignerEdDSA;
|
|
1073
|
+
/**
|
|
1074
|
+
* Signs and sends a transaction request from a TSS (hot) wallet, or a SMC (cold) wallet with an external signer.
|
|
1075
|
+
* Meant to be used for a transaction request where the signing process is aborted.
|
|
1076
|
+
*
|
|
1077
|
+
* Always clears any existing signature shares before signing, for both full and lite transaction
|
|
1078
|
+
* requests, so a resumed/retried sign (including one picked up by a different user than whoever
|
|
1079
|
+
* last touched this transaction request) restarts cleanly instead of building on stale shares.
|
|
1080
|
+
*
|
|
1081
|
+
* @param params
|
|
1082
|
+
* txRequestId - The ID of the transaction request.
|
|
1083
|
+
* walletPassphrase - The passphrase for the wallet.
|
|
1084
|
+
* isTxRequestFull - Flag indicating if the transaction request is full.
|
|
1085
|
+
* @returns A promise that resolves to a SignedTransaction.
|
|
1086
|
+
*/
|
|
1087
|
+
signAndSendTxRequest(params: SignAndSendTxRequestOptions): Promise<SignedTransaction>;
|
|
1088
|
+
/**
|
|
1089
|
+
* Signs the message of a full (apiVersion === 'full') message-sign
|
|
1090
|
+
* transaction request from a TSS wallet whose user signing material is
|
|
1091
|
+
* held server-side and decryptable via wallet passphrase (hot wallets —
|
|
1092
|
+
* there is no distinct warm wallet type). Meant to be used for a
|
|
1093
|
+
* message-sign request whose signing was parked behind a pending approval
|
|
1094
|
+
* by the message-signing policy and resumed after the approval was
|
|
1095
|
+
* resolved. Message-sign transaction requests are full-only: the lite
|
|
1096
|
+
* (deprecated) request flow never carries messages.
|
|
1097
|
+
*
|
|
1098
|
+
* Cold / external-signer wallets do not use this method: they resume via
|
|
1099
|
+
* wallet.signMessage({ message: { ..., txRequestId }, prv }), which routes
|
|
1100
|
+
* through the same pendingApproval guard and message signing path.
|
|
1101
|
+
*
|
|
1102
|
+
* Unlike signAndSendTxRequest, this signs through the message path
|
|
1103
|
+
* (signTxRequestForMessage with the WP-persisted messageEncoded); the
|
|
1104
|
+
* transaction signer has no transaction to sign on a message-only request.
|
|
1105
|
+
* The method only signs — delivery of the signature to the requestor is
|
|
1106
|
+
* completed server-side once the signature shares are ingested.
|
|
1107
|
+
*
|
|
1108
|
+
* If the request is still parked behind a pending approval (txRequest
|
|
1109
|
+
* state 'pendingApproval'), resolves with the pendingApprovalId instead
|
|
1110
|
+
* of signing (same contract as signMessage/signTypedData).
|
|
1111
|
+
*
|
|
1112
|
+
* @param params
|
|
1113
|
+
* txRequestId - The ID of the message-sign transaction request.
|
|
1114
|
+
* walletPassphrase - The passphrase for the wallet.
|
|
1115
|
+
* reqId - Optional request tracer.
|
|
1116
|
+
* @returns A promise that resolves to a SignedMessage.
|
|
1117
|
+
*/
|
|
1118
|
+
signAndSendMessageTxRequest(params: SignAndSendMessageTxRequestOptions): Promise<SignedMessage>;
|
|
1119
|
+
/**
|
|
1120
|
+
* Ensures signature shares are in a clean state before signing a transaction.
|
|
1121
|
+
* Automatically deletes signature shares for Full TxRequests before signing to prevent
|
|
1122
|
+
* issues with stale or partial signatures.
|
|
1123
|
+
* Use this for Express API and other integrations that need automatic cleanup of signatures.
|
|
1124
|
+
*
|
|
1125
|
+
* @param params - signing options
|
|
1126
|
+
* @returns signed transaction
|
|
1127
|
+
*/
|
|
1128
|
+
ensureCleanSigSharesAndSignTransaction(params?: WalletSignTransactionOptions): Promise<SignedTransaction | TxRequest>;
|
|
758
1129
|
/**
|
|
759
1130
|
* Signs a transaction from a TSS ECDSA wallet using external signer.
|
|
760
1131
|
*
|
|
761
1132
|
* @param params signing options
|
|
762
1133
|
*/
|
|
763
1134
|
private signTransactionTssExternalSignerECDSA;
|
|
1135
|
+
/**
|
|
1136
|
+
* Signs a transaction from a TSS EdDSA MPCv2 wallet using external signer.
|
|
1137
|
+
*
|
|
1138
|
+
* @param params signing options
|
|
1139
|
+
*/
|
|
1140
|
+
private signTransactionTssExternalSignerEdDSAMPCv2;
|
|
1141
|
+
/**
|
|
1142
|
+
* Signs a transaction from a TSS ECDSA wallet using external signer.
|
|
1143
|
+
*
|
|
1144
|
+
* @param params signing options
|
|
1145
|
+
*/
|
|
1146
|
+
private signTransactionTssExternalSignerECDSAMPCv2;
|
|
764
1147
|
/**
|
|
765
1148
|
* Signs a transaction from a TSS wallet.
|
|
766
1149
|
*
|
|
@@ -784,7 +1167,7 @@ export declare class Wallet implements IWallet {
|
|
|
784
1167
|
*
|
|
785
1168
|
* @param params send options
|
|
786
1169
|
*/
|
|
787
|
-
private
|
|
1170
|
+
private sendManyTxRequests;
|
|
788
1171
|
/**
|
|
789
1172
|
* Send funds from a fee address to a forwarder. Only supports eth-like coins.
|
|
790
1173
|
*
|
|
@@ -793,7 +1176,15 @@ export declare class Wallet implements IWallet {
|
|
|
793
1176
|
* @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
|
|
794
1177
|
* @returns {*}
|
|
795
1178
|
*/
|
|
796
|
-
fundForwarder(params: FundForwardersOptions): Promise<
|
|
1179
|
+
fundForwarder(params: FundForwardersOptions): Promise<WalletData>;
|
|
1180
|
+
/**
|
|
1181
|
+
* Send funds from a fee address to a forwarder.
|
|
1182
|
+
*
|
|
1183
|
+
* @param {Object} params - parameters object
|
|
1184
|
+
* @param {List} params.forwarders - list of fund forwarder options
|
|
1185
|
+
* @returns {*}
|
|
1186
|
+
*/
|
|
1187
|
+
fundForwarders(params: FundForwarderParams): Promise<WalletData>;
|
|
797
1188
|
/**
|
|
798
1189
|
* Gets forwarder's balance
|
|
799
1190
|
* @param params - optional query parameters
|
|
@@ -820,5 +1211,23 @@ export declare class Wallet implements IWallet {
|
|
|
820
1211
|
* @returns {Promise<Keychain[]>}
|
|
821
1212
|
*/
|
|
822
1213
|
private getKeychainsAndValidatePassphrase;
|
|
1214
|
+
/**
|
|
1215
|
+
* Approve token for use with a batcher contract
|
|
1216
|
+
* This function builds, signs, and sends a token approval transaction
|
|
1217
|
+
*
|
|
1218
|
+
* @param {string} walletPassphrase - The passphrase to be used to decrypt the user key
|
|
1219
|
+
* @param {string} tokenName - The name of the token to be approved
|
|
1220
|
+
* @returns {Promise<any>} The transaction details
|
|
1221
|
+
*/
|
|
1222
|
+
approveErc20Token(walletPassphrase: string, tokenName: string): Promise<SubmitTransactionResponse>;
|
|
1223
|
+
/**
|
|
1224
|
+
* Build token approval transaction for ERC20 tokens
|
|
1225
|
+
* If walletPassphrase is provided, also signs and sends the transaction
|
|
1226
|
+
*
|
|
1227
|
+
* @param {string} tokenName - The name of the token to be approved
|
|
1228
|
+
* @param {string} [walletPassphrase] - Optional wallet passphrase for signing and sending
|
|
1229
|
+
* @returns {Promise<BuildTokenApprovalResponse | SubmitTransactionResponse>} The token approval build response or transaction details if signed
|
|
1230
|
+
*/
|
|
1231
|
+
buildErc20TokenApproval(tokenName: string, walletPassphrase?: string): Promise<BuildTokenApprovalResponse | SubmitTransactionResponse>;
|
|
823
1232
|
}
|
|
824
1233
|
//# sourceMappingURL=wallet.d.ts.map
|