@bitgo-beta/sdk-core 8.2.1-beta.192 → 8.2.1-beta.1921
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 +41 -29
- package/dist/src/account-lib/baseCoin/enum.d.ts +54 -5
- package/dist/src/account-lib/baseCoin/enum.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/enum.js +101 -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.js +23 -9
- 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/account-lib/util/ed25519KeyDeriver.d.ts +2 -1
- package/dist/src/account-lib/util/ed25519KeyDeriver.d.ts.map +1 -1
- package/dist/src/account-lib/util/ed25519KeyDeriver.js +5 -3
- package/dist/src/api/bip32path.js +2 -3
- package/dist/src/api/index.js +6 -2
- package/dist/src/api/types.d.ts +31 -0
- package/dist/src/api/types.d.ts.map +1 -1
- package/dist/src/api/types.js +1 -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/bitgo/address-book/index.js +19 -0
- 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 +110 -11
- package/dist/src/bitgo/baseCoin/baseCoin.d.ts.map +1 -1
- package/dist/src/bitgo/baseCoin/baseCoin.js +169 -16
- package/dist/src/bitgo/baseCoin/iBaseCoin.d.ts +270 -27
- 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 +7 -3
- 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 +17 -3
- package/dist/src/bitgo/coinFactory.d.ts.map +1 -1
- package/dist/src/bitgo/coinFactory.js +26 -3
- package/dist/src/bitgo/config.d.ts +3 -95
- 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 +117 -0
- package/dist/src/bitgo/defi/defiVault.d.ts.map +1 -0
- package/dist/src/bitgo/defi/defiVault.js +354 -0
- package/dist/src/bitgo/defi/iDefiVault.d.ts +80 -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 +9 -4
- package/dist/src/bitgo/enterprise/enterprise.d.ts.map +1 -1
- package/dist/src/bitgo/enterprise/enterprise.js +47 -21
- package/dist/src/bitgo/enterprise/enterprises.js +27 -13
- package/dist/src/bitgo/enterprise/iEnterprise.d.ts +5 -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 +68 -3
- package/dist/src/bitgo/environments.d.ts.map +1 -1
- package/dist/src/bitgo/environments.js +414 -34
- package/dist/src/bitgo/errors.d.ts +175 -0
- package/dist/src/bitgo/errors.d.ts.map +1 -1
- package/dist/src/bitgo/errors.js +166 -2
- 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 +5 -1
- package/dist/src/bitgo/index.d.ts.map +1 -1
- package/dist/src/bitgo/index.js +31 -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 +12 -8
- package/dist/src/bitgo/internal/keycard.d.ts.map +1 -1
- package/dist/src/bitgo/internal/keycard.js +60 -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 +108 -11
- 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 +51 -7
- package/dist/src/bitgo/keychain/keychains.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/keychains.js +245 -52
- 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/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 +1 -0
- 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 +228 -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 +13 -3
- 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/iSafe.d.ts +85 -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 +86 -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 +5 -0
- package/dist/src/bitgo/safe/index.d.ts.map +1 -0
- package/dist/src/bitgo/safe/index.js +21 -0
- package/dist/src/bitgo/safe/safe.d.ts +66 -0
- package/dist/src/bitgo/safe/safe.d.ts.map +1 -0
- package/dist/src/bitgo/safe/safe.js +96 -0
- package/dist/src/bitgo/safe/safes.d.ts +104 -0
- package/dist/src/bitgo/safe/safes.d.ts.map +1 -0
- package/dist/src/bitgo/safe/safes.js +294 -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 +178 -7
- 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 +140 -7
- package/dist/src/bitgo/trading/iTradingAccount.d.ts +15 -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 +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 +99 -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 +22 -1
- package/dist/src/bitgo/trading/tradingAccount.d.ts.map +1 -1
- package/dist/src/bitgo/trading/tradingAccount.js +64 -7
- package/dist/src/bitgo/tss/bitgoPubKeys.d.ts +38 -0
- package/dist/src/bitgo/tss/bitgoPubKeys.d.ts.map +1 -0
- package/dist/src/bitgo/tss/bitgoPubKeys.js +72 -0
- package/dist/src/bitgo/tss/common.d.ts +40 -6
- package/dist/src/bitgo/tss/common.d.ts.map +1 -1
- package/dist/src/bitgo/tss/common.js +124 -17
- 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 +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 +15 -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 +37 -0
- package/dist/src/bitgo/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/tss/eddsa/eddsaMPCv2.js +95 -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/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 +8 -0
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.d.ts.map +1 -1
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.js +55 -13
- 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 +4 -2
- package/dist/src/bitgo/utils/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/index.js +27 -11
- package/dist/src/bitgo/utils/messageTypes.d.ts +40 -0
- package/dist/src/bitgo/utils/messageTypes.d.ts.map +1 -0
- package/dist/src/bitgo/utils/messageTypes.js +17 -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 +160 -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 +10 -7
- package/dist/src/bitgo/utils/opengpgUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/opengpgUtils.js +75 -62
- package/dist/src/bitgo/utils/postWithCodec.d.ts.map +1 -1
- package/dist/src/bitgo/utils/postWithCodec.js +4 -38
- 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/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 +97 -18
- package/dist/src/bitgo/utils/tss/baseTSSUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/baseTSSUtils.js +309 -46
- package/dist/src/bitgo/utils/tss/baseTypes.d.ts +417 -46
- 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 +25 -51
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.js +172 -246
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts +216 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.js +1050 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.d.ts +8 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.js +16 -0
- package/dist/src/bitgo/utils/tss/ecdsa/index.d.ts +4 -0
- package/dist/src/bitgo/utils/tss/ecdsa/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/index.js +10 -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 +107 -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 +118 -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 +38 -11
- package/dist/src/bitgo/utils/tss/eddsa/eddsa.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/eddsa.js +254 -96
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts +156 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.js +737 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.d.ts +6 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.js +16 -0
- package/dist/src/bitgo/utils/tss/eddsa/index.d.ts +4 -0
- package/dist/src/bitgo/utils/tss/eddsa/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/index.js +29 -8
- package/dist/src/bitgo/utils/tss/eddsa/types.d.ts +12 -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 +40 -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 +3 -0
- package/dist/src/bitgo/utils/tss/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/index.js +26 -9
- 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 +33 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.js +118 -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/wallet/BuildParams.d.ts +80 -1
- package/dist/src/bitgo/wallet/BuildParams.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/BuildParams.js +83 -11
- package/dist/src/bitgo/wallet/iWallet.d.ts +528 -25
- 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 +298 -16
- package/dist/src/bitgo/wallet/iWallets.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/iWallets.js +63 -3
- package/dist/src/bitgo/wallet/index.js +6 -2
- package/dist/src/bitgo/wallet/wallet.d.ts +353 -27
- package/dist/src/bitgo/wallet/wallet.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/wallet.js +2123 -371
- package/dist/src/bitgo/wallet/wallets.d.ts +93 -4
- package/dist/src/bitgo/wallet/wallets.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/wallets.js +1146 -155
- 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/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 +7 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +32 -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 +542 -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/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/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 +134 -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 +297 -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/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/utils/abstractUtxoCoinUtil.js +24 -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/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 +32 -38
- 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 +399 -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 +999 -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 +1524 -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 +311 -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 +172 -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/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 +124 -0
- package/dist/test/unit/bitgo/wallet/SendTransactionRequest.js +30 -9
- 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/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/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/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 +201 -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 +43 -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/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 +228 -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 +670 -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 +24 -21
- package/.eslintignore +0 -5
- package/CHANGELOG.md +0 -1638
- 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/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,16 +1,16 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { Key, SerializedKeyPair } from 'openpgp';
|
|
3
|
-
import { IRequestTracer } from '../../../api';
|
|
4
|
-
import { KeychainsTriplet, ParsedTransaction } from '../../baseCoin';
|
|
5
|
-
import { ApiKeyShare, Keychain } from '../../keychain';
|
|
2
|
+
import { EncryptionVersion, IEncryptionSession, IRequestTracer } from '../../../api';
|
|
3
|
+
import { type ITransactionRecipient, KeychainsTriplet, ParsedTransaction, TransactionParams } from '../../baseCoin';
|
|
4
|
+
import { ApiKeyShare, Keychain, WebauthnKeyEncryptionInfo } from '../../keychain';
|
|
6
5
|
import { ApiVersion, Memo, WalletType } from '../../wallet';
|
|
7
|
-
import { EDDSA, GShare,
|
|
6
|
+
import { EDDSA, GShare, Signature, SignShare } from '../../../account-lib/mpc/tss';
|
|
7
|
+
import { Signature as EcdsaSignature } from '../../../account-lib/mpc/tss/ecdsa/types';
|
|
8
8
|
import { KeyShare } from './ecdsa';
|
|
9
|
-
import { Hash } from 'crypto';
|
|
10
9
|
import { EcdsaTypes } from '@bitgo-beta/sdk-lib-mpc';
|
|
11
10
|
import { TssEcdsaStep1ReturnMessage, TssEcdsaStep2ReturnMessage, TxRequestChallengeResponse } from '../../tss/types';
|
|
12
11
|
import { AShare, DShare, SShare } from '../../tss/ecdsa/types';
|
|
13
|
-
|
|
12
|
+
import { MessageStandardType } from '../messageTypes';
|
|
13
|
+
export type TxRequestVersion = 'full' | 'lite';
|
|
14
14
|
export interface HopParams {
|
|
15
15
|
paymentId?: string;
|
|
16
16
|
userReqSig?: string;
|
|
@@ -18,8 +18,9 @@ export interface HopParams {
|
|
|
18
18
|
}
|
|
19
19
|
export interface EIP1559FeeOptions {
|
|
20
20
|
gasLimit?: number;
|
|
21
|
-
maxFeePerGas
|
|
22
|
-
maxPriorityFeePerGas
|
|
21
|
+
maxFeePerGas: number;
|
|
22
|
+
maxPriorityFeePerGas: number;
|
|
23
|
+
feeToken?: string;
|
|
23
24
|
}
|
|
24
25
|
export interface FeeOption {
|
|
25
26
|
unit?: 'baseUnit' | 'cpu' | 'ram';
|
|
@@ -27,11 +28,77 @@ export interface FeeOption {
|
|
|
27
28
|
feeType?: 'base' | 'max' | 'tip';
|
|
28
29
|
gasLimit?: number;
|
|
29
30
|
gasPrice?: number;
|
|
31
|
+
feeToken?: string;
|
|
30
32
|
}
|
|
31
33
|
export interface TokenEnablement {
|
|
32
34
|
name: string;
|
|
33
35
|
address?: string;
|
|
34
36
|
}
|
|
37
|
+
export interface SolInstruction {
|
|
38
|
+
programId: string;
|
|
39
|
+
keys: Array<{
|
|
40
|
+
pubkey: string;
|
|
41
|
+
isSigner: boolean;
|
|
42
|
+
isWritable: boolean;
|
|
43
|
+
}>;
|
|
44
|
+
data: string;
|
|
45
|
+
}
|
|
46
|
+
export interface SolVersionedInstruction {
|
|
47
|
+
programIdIndex: number;
|
|
48
|
+
accountKeyIndexes: number[];
|
|
49
|
+
data: string;
|
|
50
|
+
}
|
|
51
|
+
export interface SolAddressLookupTable {
|
|
52
|
+
accountKey: string;
|
|
53
|
+
writableIndexes: number[];
|
|
54
|
+
readonlyIndexes: number[];
|
|
55
|
+
}
|
|
56
|
+
export interface SolVersionedTransactionData {
|
|
57
|
+
versionedInstructions: SolVersionedInstruction[];
|
|
58
|
+
addressLookupTables: SolAddressLookupTable[];
|
|
59
|
+
staticAccountKeys: string[];
|
|
60
|
+
messageHeader: {
|
|
61
|
+
numRequiredSignatures: number;
|
|
62
|
+
numReadonlySignedAccounts: number;
|
|
63
|
+
numReadonlyUnsignedAccounts: number;
|
|
64
|
+
};
|
|
65
|
+
recentBlockhash?: string;
|
|
66
|
+
}
|
|
67
|
+
export interface aptosCustomTransactionParams {
|
|
68
|
+
moduleName: string;
|
|
69
|
+
functionName: string;
|
|
70
|
+
typeArguments?: string[];
|
|
71
|
+
functionArguments?: any[];
|
|
72
|
+
abi?: any;
|
|
73
|
+
}
|
|
74
|
+
export interface CantonCreateCommand {
|
|
75
|
+
CreateCommand: {
|
|
76
|
+
templateId: string;
|
|
77
|
+
createArguments: Record<string, unknown>;
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
export interface CantonExerciseCommand {
|
|
81
|
+
ExerciseCommand: {
|
|
82
|
+
templateId: string;
|
|
83
|
+
contractId?: string;
|
|
84
|
+
choice: string;
|
|
85
|
+
choiceArgument?: Record<string, unknown>;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
88
|
+
export type CantonCommand = CantonCreateCommand | CantonExerciseCommand;
|
|
89
|
+
export interface CantonCommandResolveContractSpec {
|
|
90
|
+
templateId: string;
|
|
91
|
+
actAs: string[];
|
|
92
|
+
readAs?: string[];
|
|
93
|
+
injectAs: string;
|
|
94
|
+
resolveAll?: boolean;
|
|
95
|
+
}
|
|
96
|
+
export interface CantonCommandParams {
|
|
97
|
+
command: CantonCommand;
|
|
98
|
+
actAs: string[];
|
|
99
|
+
readAs?: string[];
|
|
100
|
+
resolveContracts?: CantonCommandResolveContractSpec[];
|
|
101
|
+
}
|
|
35
102
|
export declare enum ShareType {
|
|
36
103
|
R = "R",
|
|
37
104
|
Commitment = "commitment",
|
|
@@ -39,7 +106,13 @@ export declare enum ShareType {
|
|
|
39
106
|
S = "S",
|
|
40
107
|
K = "K",
|
|
41
108
|
MuDelta = "MuDelta",
|
|
42
|
-
PaillierModulus = "PaillierModulus"
|
|
109
|
+
PaillierModulus = "PaillierModulus",
|
|
110
|
+
MPCv2Round1 = "MPCv2Round1",
|
|
111
|
+
MPCv2Round2 = "MPCv2Round2",
|
|
112
|
+
MPCv2Round3 = "MPCv2Round3",
|
|
113
|
+
EddsaMPCv2Round1 = "EddsaMPCv2Round1",
|
|
114
|
+
EddsaMPCv2Round2 = "EddsaMPCv2Round2",
|
|
115
|
+
EddsaMPCv2Round3 = "EddsaMPCv2Round3"
|
|
43
116
|
}
|
|
44
117
|
export declare enum MPCType {
|
|
45
118
|
EDDSA = "eddsa",
|
|
@@ -81,6 +154,7 @@ export interface CustomSShareGeneratingFunction {
|
|
|
81
154
|
export interface CustomCommitmentGeneratingFunction {
|
|
82
155
|
(params: {
|
|
83
156
|
txRequest: TxRequest;
|
|
157
|
+
bitgoGpgPubKey?: string;
|
|
84
158
|
}): Promise<{
|
|
85
159
|
userToBitgoCommitment: CommitmentShareRecord;
|
|
86
160
|
encryptedSignerShare: EncryptedSignerShareRecord;
|
|
@@ -103,10 +177,73 @@ export interface CustomGShareGeneratingFunction {
|
|
|
103
177
|
bitgoToUserCommitment: CommitmentShareRecord;
|
|
104
178
|
}): Promise<GShare>;
|
|
105
179
|
}
|
|
180
|
+
export interface CustomMPCv2SigningRound1GeneratingFunction {
|
|
181
|
+
(params: {
|
|
182
|
+
txRequest: TxRequest;
|
|
183
|
+
}): Promise<{
|
|
184
|
+
signatureShareRound1: SignatureShareRecord;
|
|
185
|
+
encryptedRound1Session: string;
|
|
186
|
+
userGpgPubKey: string;
|
|
187
|
+
encryptedUserGpgPrvKey: string;
|
|
188
|
+
}>;
|
|
189
|
+
}
|
|
190
|
+
export interface CustomMPCv2SigningRound2GeneratingFunction {
|
|
191
|
+
(params: {
|
|
192
|
+
txRequest: TxRequest;
|
|
193
|
+
bitgoPublicGpgKey: string;
|
|
194
|
+
encryptedUserGpgPrvKey: string;
|
|
195
|
+
encryptedRound1Session: string;
|
|
196
|
+
}): Promise<{
|
|
197
|
+
signatureShareRound2: SignatureShareRecord;
|
|
198
|
+
encryptedRound2Session: string;
|
|
199
|
+
}>;
|
|
200
|
+
}
|
|
201
|
+
export interface CustomMPCv2SigningRound3GeneratingFunction {
|
|
202
|
+
(params: {
|
|
203
|
+
txRequest: TxRequest;
|
|
204
|
+
bitgoPublicGpgKey: string;
|
|
205
|
+
encryptedUserGpgPrvKey: string;
|
|
206
|
+
encryptedRound2Session: string;
|
|
207
|
+
}): Promise<{
|
|
208
|
+
signatureShareRound3: SignatureShareRecord;
|
|
209
|
+
}>;
|
|
210
|
+
}
|
|
211
|
+
export interface CustomEddsaMPCv2SigningRound1GeneratingFunction {
|
|
212
|
+
(params: {
|
|
213
|
+
txRequest: TxRequest;
|
|
214
|
+
}): Promise<{
|
|
215
|
+
signatureShareRound1: SignatureShareRecord;
|
|
216
|
+
encryptedRound1Session: string;
|
|
217
|
+
userGpgPubKey: string;
|
|
218
|
+
encryptedUserGpgPrvKey: string;
|
|
219
|
+
}>;
|
|
220
|
+
}
|
|
221
|
+
export interface CustomEddsaMPCv2SigningRound2GeneratingFunction {
|
|
222
|
+
(params: {
|
|
223
|
+
txRequest: TxRequest;
|
|
224
|
+
bitgoPublicGpgKey: string;
|
|
225
|
+
encryptedUserGpgPrvKey: string;
|
|
226
|
+
encryptedRound1Session: string;
|
|
227
|
+
}): Promise<{
|
|
228
|
+
signatureShareRound2: SignatureShareRecord;
|
|
229
|
+
encryptedRound2Session: string;
|
|
230
|
+
}>;
|
|
231
|
+
}
|
|
232
|
+
export interface CustomEddsaMPCv2SigningRound3GeneratingFunction {
|
|
233
|
+
(params: {
|
|
234
|
+
txRequest: TxRequest;
|
|
235
|
+
bitgoPublicGpgKey: string;
|
|
236
|
+
encryptedUserGpgPrvKey: string;
|
|
237
|
+
encryptedRound2Session: string;
|
|
238
|
+
}): Promise<{
|
|
239
|
+
signatureShareRound3: SignatureShareRecord;
|
|
240
|
+
}>;
|
|
241
|
+
}
|
|
106
242
|
export declare enum TokenType {
|
|
107
243
|
ERC721 = "ERC721",
|
|
108
244
|
ERC1155 = "ERC1155",
|
|
109
|
-
ERC20 = "ERC20"
|
|
245
|
+
ERC20 = "ERC20",
|
|
246
|
+
DIGITAL_ASSET = "Digital Asset"
|
|
110
247
|
}
|
|
111
248
|
export interface TokenTransferRecipientParams {
|
|
112
249
|
tokenType: TokenType;
|
|
@@ -126,9 +263,34 @@ interface IntentOptionsBase {
|
|
|
126
263
|
custodianTransactionId?: string;
|
|
127
264
|
custodianMessageId?: string;
|
|
128
265
|
}
|
|
266
|
+
/**
|
|
267
|
+
* DeFi intent fields for ERC-4626 vault operations.
|
|
268
|
+
* Extended by PopulatedIntent so these land at the top level of the payload.
|
|
269
|
+
*/
|
|
270
|
+
export interface DefiIntentFields {
|
|
271
|
+
vaultId?: string;
|
|
272
|
+
amount?: {
|
|
273
|
+
value: string;
|
|
274
|
+
symbol: string;
|
|
275
|
+
} | string;
|
|
276
|
+
/** Vault share token amount for defi-withdraw intent (base units) */
|
|
277
|
+
shareTokenAmount?: {
|
|
278
|
+
value: string;
|
|
279
|
+
symbol: string;
|
|
280
|
+
} | string;
|
|
281
|
+
operationId?: string;
|
|
282
|
+
}
|
|
283
|
+
/** DeFi-specific intent parameters (input container for defiParams). */
|
|
284
|
+
export interface DefiIntentParams {
|
|
285
|
+
vaultId: string;
|
|
286
|
+
amount: string;
|
|
287
|
+
operationId?: string;
|
|
288
|
+
}
|
|
129
289
|
export interface IntentOptionsForMessage extends IntentOptionsBase {
|
|
130
290
|
messageRaw: string;
|
|
131
291
|
messageEncoded?: string;
|
|
292
|
+
messageStandardType?: MessageStandardType;
|
|
293
|
+
signerAddress?: string;
|
|
132
294
|
}
|
|
133
295
|
export interface IntentOptionsForTypedData extends IntentOptionsBase {
|
|
134
296
|
typedDataRaw: string;
|
|
@@ -151,6 +313,72 @@ export interface PrebuildTransactionWithIntentOptions extends IntentOptionsBase
|
|
|
151
313
|
lowFeeTxid?: string;
|
|
152
314
|
custodianTransactionId?: string;
|
|
153
315
|
receiveAddress?: string;
|
|
316
|
+
unspents?: string[];
|
|
317
|
+
/**
|
|
318
|
+
* MIST to redeem from the sender's address balance (SIP-58 / SUI address balances).
|
|
319
|
+
* When set, the PTB includes tx.withdrawal() + redeem_funds() before the transfer.
|
|
320
|
+
*/
|
|
321
|
+
fundsInAddressBalance?: string;
|
|
322
|
+
/**
|
|
323
|
+
* The receive address from which funds will be withdrawn.
|
|
324
|
+
* This feature is supported only for specific coins, like ADA.
|
|
325
|
+
*/
|
|
326
|
+
senderAddress?: string;
|
|
327
|
+
/**
|
|
328
|
+
* Custom Solana instructions for use with the customTx intent type.
|
|
329
|
+
* Each instruction should contain programId, keys, and data fields.
|
|
330
|
+
*/
|
|
331
|
+
solInstructions?: SolInstruction[];
|
|
332
|
+
/**
|
|
333
|
+
* Deconstructed Versioned Transaction data for Solana customTx intent type.
|
|
334
|
+
* Contains compiled instructions, Address Lookup Tables, and static account keys.
|
|
335
|
+
*/
|
|
336
|
+
solVersionedTransactionData?: SolVersionedTransactionData;
|
|
337
|
+
/**
|
|
338
|
+
* Custom transaction parameters for Aptos entry function calls.
|
|
339
|
+
* Used with the customTx intent type for Aptos smart contract interactions.
|
|
340
|
+
*/
|
|
341
|
+
aptosCustomTransactionParams?: {
|
|
342
|
+
moduleName: string;
|
|
343
|
+
functionName: string;
|
|
344
|
+
typeArguments?: string[];
|
|
345
|
+
functionArguments?: any[];
|
|
346
|
+
abi?: any;
|
|
347
|
+
};
|
|
348
|
+
txRequestId?: string;
|
|
349
|
+
isTestTransaction?: boolean;
|
|
350
|
+
transferOfferId?: string;
|
|
351
|
+
/**
|
|
352
|
+
* Amount for intents that use a top-level amount instead of recipients (e.g. bridgeFunds).
|
|
353
|
+
*/
|
|
354
|
+
amount?: {
|
|
355
|
+
value: string;
|
|
356
|
+
symbol: string;
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* TIP-20 token address to use for paying transaction fees (Tempo only).
|
|
360
|
+
*/
|
|
361
|
+
feeToken?: string;
|
|
362
|
+
/** Canton-specific params for the cantonCommand intent. */
|
|
363
|
+
cantonCommandParams?: CantonCommandParams;
|
|
364
|
+
/** DeFi vault intent fields for defi-approve / defi-deposit intents. */
|
|
365
|
+
defiParams?: DefiIntentParams;
|
|
366
|
+
/** Canton party ID of the end investor to onboard (cantonEndInvestorOnboardingOffer intent). */
|
|
367
|
+
endInvestorPartyId?: string;
|
|
368
|
+
/** Reason for rejecting the onboarding offer (cantonEndInvestorOnboardingReject intent). */
|
|
369
|
+
reason?: string;
|
|
370
|
+
/** DTCC operator party ID (cantonParticipantOnboardingRequest intent). */
|
|
371
|
+
operator?: string;
|
|
372
|
+
/** DTCC provider party ID (cantonParticipantOnboardingRequest intent). */
|
|
373
|
+
provider?: string;
|
|
374
|
+
/** DTCC compliance party ID (cantonParticipantOnboardingRequest intent). */
|
|
375
|
+
compliance?: string;
|
|
376
|
+
/** DTCC registrar party ID (cantonParticipantOnboardingRequest intent). */
|
|
377
|
+
registrar?: string;
|
|
378
|
+
/** DTCC client onboarder party ID (cantonParticipantOnboardingRequest intent). */
|
|
379
|
+
clientOnboarder?: string;
|
|
380
|
+
/** Optional ISO 8601 expiration timestamp (cantonParticipantOnboardingRequest intent). */
|
|
381
|
+
expirationIso?: string;
|
|
154
382
|
}
|
|
155
383
|
export interface IntentRecipient {
|
|
156
384
|
address: {
|
|
@@ -174,32 +402,94 @@ export interface PopulatedIntentForMessageSigning extends PopulatedIntentBase {
|
|
|
174
402
|
messageRaw: string;
|
|
175
403
|
messageEncoded: string;
|
|
176
404
|
custodianMessageId?: string;
|
|
405
|
+
messageStandardType?: MessageStandardType;
|
|
406
|
+
signerAddress?: string;
|
|
177
407
|
}
|
|
178
408
|
export interface PopulatedIntentForTypedDataSigning extends PopulatedIntentBase {
|
|
179
409
|
messageRaw: string;
|
|
180
410
|
messageEncoded: string;
|
|
181
411
|
custodianMessageId?: string;
|
|
182
412
|
}
|
|
183
|
-
export interface PopulatedIntent extends PopulatedIntentBase {
|
|
413
|
+
export interface PopulatedIntent extends PopulatedIntentBase, DefiIntentFields {
|
|
414
|
+
stakingRequestId?: string;
|
|
184
415
|
recipients?: IntentRecipient[];
|
|
185
416
|
nonce?: string;
|
|
186
417
|
token?: string;
|
|
187
418
|
enableTokens?: TokenEnablement[];
|
|
419
|
+
unspents?: string[];
|
|
420
|
+
fundsInAddressBalance?: string;
|
|
421
|
+
/**
|
|
422
|
+
* The receive address from which funds will be withdrawn.
|
|
423
|
+
* This feature is supported only for specific coins, like ADA.
|
|
424
|
+
*/
|
|
425
|
+
senderAddress?: string;
|
|
188
426
|
selfSend?: boolean;
|
|
189
427
|
feeOptions?: FeeOption | EIP1559FeeOptions;
|
|
428
|
+
/**
|
|
429
|
+
* TIP-20 token address to use for paying transaction fees (Tempo only).
|
|
430
|
+
* This is placed at the intent level, not nested in feeOptions.
|
|
431
|
+
*/
|
|
432
|
+
feeToken?: string;
|
|
190
433
|
hopParams?: HopParams;
|
|
191
434
|
txid?: string;
|
|
192
435
|
receiveAddress?: string;
|
|
193
436
|
custodianTransactionId?: string;
|
|
194
437
|
custodianMessageId?: string;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
438
|
+
tokenName?: string;
|
|
439
|
+
/**
|
|
440
|
+
* Custom Solana instructions for use with the customTx intent type.
|
|
441
|
+
* Each instruction should contain programId, keys, and data fields.
|
|
442
|
+
*/
|
|
443
|
+
solInstructions?: SolInstruction[];
|
|
444
|
+
/**
|
|
445
|
+
* Deconstructed Versioned Transaction data for Solana customTx intent type.
|
|
446
|
+
* Contains compiled instructions, Address Lookup Tables, and static account keys.
|
|
447
|
+
*/
|
|
448
|
+
solVersionedTransactionData?: SolVersionedTransactionData;
|
|
449
|
+
/**
|
|
450
|
+
* Custom Aptos transaction for use with the customTx intent type.
|
|
451
|
+
*/
|
|
452
|
+
aptosCustomTransactionParams?: aptosCustomTransactionParams;
|
|
453
|
+
txRequestId?: string;
|
|
454
|
+
isTestTransaction?: boolean;
|
|
455
|
+
transferOfferId?: string;
|
|
456
|
+
/**
|
|
457
|
+
* Amount for intents that use a top-level amount instead of recipients (e.g. bridgeFunds).
|
|
458
|
+
*/
|
|
459
|
+
amount?: {
|
|
460
|
+
value: string;
|
|
461
|
+
symbol: string;
|
|
462
|
+
} | string;
|
|
463
|
+
/** Canton-specific params serialized into the cantonCommand intent payload. */
|
|
464
|
+
cantonCommandParams?: CantonCommandParams;
|
|
465
|
+
/** Canton party ID of the end investor to onboard (cantonEndInvestorOnboardingOffer intent). */
|
|
466
|
+
endInvestorPartyId?: string;
|
|
467
|
+
/** Reason for rejecting the onboarding offer (cantonEndInvestorOnboardingReject intent). */
|
|
468
|
+
reason?: string;
|
|
469
|
+
/** DTCC operator party ID (cantonParticipantOnboardingRequest intent). */
|
|
470
|
+
operator?: string;
|
|
471
|
+
/** DTCC provider party ID (cantonParticipantOnboardingRequest intent). */
|
|
472
|
+
provider?: string;
|
|
473
|
+
/** DTCC compliance party ID (cantonParticipantOnboardingRequest intent). */
|
|
474
|
+
compliance?: string;
|
|
475
|
+
/** DTCC registrar party ID (cantonParticipantOnboardingRequest intent). */
|
|
476
|
+
registrar?: string;
|
|
477
|
+
/** DTCC client onboarder party ID (cantonParticipantOnboardingRequest intent). */
|
|
478
|
+
clientOnboarder?: string;
|
|
479
|
+
/** Optional ISO 8601 expiration timestamp (cantonParticipantOnboardingRequest intent). */
|
|
480
|
+
expirationIso?: string;
|
|
481
|
+
}
|
|
482
|
+
export type TxRequestState = 'pendingCommitment' | 'pendingApproval' | 'canceled' | 'rejected' | 'initialized' | 'pendingDelivery' | 'delivered' | 'pendingUserSignature' | 'signed';
|
|
483
|
+
export type TransactionState = 'initialized' | 'pendingCommitment' | 'pendingSignature' | 'signed' | 'held' | 'delivered' | 'invalidSignature' | 'rejected';
|
|
484
|
+
export type SignableTransaction = {
|
|
199
485
|
serializedTxHex: string;
|
|
200
486
|
signableHex: string;
|
|
201
487
|
};
|
|
202
|
-
export
|
|
488
|
+
export interface ReplayProtectionOptions {
|
|
489
|
+
chain: string | number;
|
|
490
|
+
hardfork: string;
|
|
491
|
+
}
|
|
492
|
+
export type UnsignedTransactionTss = SignableTransaction & {
|
|
203
493
|
derivationPath: string;
|
|
204
494
|
feeInfo?: {
|
|
205
495
|
fee: number;
|
|
@@ -207,8 +497,10 @@ export declare type UnsignedTransactionTss = SignableTransaction & {
|
|
|
207
497
|
};
|
|
208
498
|
coinSpecific?: Record<string, unknown>;
|
|
209
499
|
parsedTx?: unknown;
|
|
500
|
+
eip1559?: EIP1559FeeOptions;
|
|
501
|
+
replayProtectionOptions?: ReplayProtectionOptions;
|
|
210
502
|
};
|
|
211
|
-
export
|
|
503
|
+
export type UnsignedMessageTss = {
|
|
212
504
|
derivationPath: string;
|
|
213
505
|
message: string;
|
|
214
506
|
};
|
|
@@ -216,7 +508,13 @@ export declare enum RequestType {
|
|
|
216
508
|
tx = 0,
|
|
217
509
|
message = 1
|
|
218
510
|
}
|
|
219
|
-
export
|
|
511
|
+
export type SignedTx = {
|
|
512
|
+
id: string;
|
|
513
|
+
tx: string;
|
|
514
|
+
publicKey?: string;
|
|
515
|
+
signature?: string;
|
|
516
|
+
};
|
|
517
|
+
export type TxRequest = {
|
|
220
518
|
txRequestId: string;
|
|
221
519
|
walletId: string;
|
|
222
520
|
walletType: WalletType;
|
|
@@ -238,30 +536,45 @@ export declare type TxRequest = {
|
|
|
238
536
|
state: TransactionState;
|
|
239
537
|
unsignedTx: UnsignedTransactionTss;
|
|
240
538
|
signatureShares: SignatureShareRecord[];
|
|
539
|
+
signedTx?: SignedTx;
|
|
241
540
|
commitmentShares?: CommitmentShareRecord[];
|
|
242
541
|
}[];
|
|
243
542
|
messages?: {
|
|
244
543
|
state: TransactionState;
|
|
245
544
|
signatureShares: SignatureShareRecord[];
|
|
545
|
+
messageRaw: string;
|
|
546
|
+
messageEncoded?: string;
|
|
547
|
+
messageBroadcastable?: string;
|
|
548
|
+
messageStandardType?: MessageStandardType;
|
|
549
|
+
derivationPath: string;
|
|
246
550
|
combineSigShare?: string;
|
|
247
551
|
txHash?: string;
|
|
552
|
+
commitmentShares?: CommitmentShareRecord[];
|
|
248
553
|
}[];
|
|
249
554
|
apiVersion?: TxRequestVersion;
|
|
250
555
|
latest: boolean;
|
|
251
556
|
};
|
|
252
|
-
export
|
|
557
|
+
export type CreateKeychainParamsBase = {
|
|
253
558
|
userGpgKey: SerializedKeyPair<string>;
|
|
254
559
|
bitgoKeychain: Keychain;
|
|
255
560
|
passphrase?: string;
|
|
256
561
|
enterprise?: string;
|
|
257
562
|
originalPasscodeEncryptionCode?: string;
|
|
563
|
+
webauthnInfo?: WebauthnKeyEncryptionInfo;
|
|
564
|
+
encryptionVersion?: EncryptionVersion;
|
|
565
|
+
encryptionSession?: IEncryptionSession;
|
|
258
566
|
};
|
|
259
|
-
export
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
567
|
+
export type CreateBitGoKeychainParamsBase = Omit<CreateKeychainParamsBase, 'bitgoKeychain'>;
|
|
568
|
+
/**
|
|
569
|
+
* Checks whether a ciphertext string is a v2 encryption envelope.
|
|
570
|
+
*/
|
|
571
|
+
export declare function isV2Envelope(ciphertext: string): boolean;
|
|
572
|
+
export declare const SignatureShareType: {
|
|
573
|
+
readonly USER: "user";
|
|
574
|
+
readonly BACKUP: "backup";
|
|
575
|
+
readonly BITGO: "bitgo";
|
|
576
|
+
};
|
|
577
|
+
export type SignatureShareType = (typeof SignatureShareType)[keyof typeof SignatureShareType];
|
|
265
578
|
interface ShareBaseRecord {
|
|
266
579
|
from: SignatureShareType;
|
|
267
580
|
to: SignatureShareType;
|
|
@@ -272,35 +585,85 @@ export interface SignatureShareRecord extends ShareBaseRecord {
|
|
|
272
585
|
privateShareProof?: string;
|
|
273
586
|
publicShare?: string;
|
|
274
587
|
}
|
|
275
|
-
export declare
|
|
276
|
-
COMMITMENT
|
|
277
|
-
DECOMMITMENT
|
|
278
|
-
}
|
|
588
|
+
export declare const CommitmentType: {
|
|
589
|
+
readonly COMMITMENT: "commitment";
|
|
590
|
+
readonly DECOMMITMENT: "decommitment";
|
|
591
|
+
};
|
|
592
|
+
export type CommitmentType = (typeof CommitmentType)[keyof typeof CommitmentType];
|
|
279
593
|
export interface CommitmentShareRecord extends ShareBaseRecord {
|
|
280
594
|
type: CommitmentType;
|
|
281
595
|
}
|
|
282
596
|
export interface ExchangeCommitmentResponse {
|
|
283
597
|
commitmentShare: CommitmentShareRecord;
|
|
284
598
|
}
|
|
285
|
-
export declare
|
|
286
|
-
ENCRYPTED_SIGNER_SHARE
|
|
287
|
-
ENCRYPTED_R_SHARE
|
|
288
|
-
}
|
|
599
|
+
export declare const EncryptedSignerShareType: {
|
|
600
|
+
readonly ENCRYPTED_SIGNER_SHARE: "encryptedSignerShare";
|
|
601
|
+
readonly ENCRYPTED_R_SHARE: "encryptedRShare";
|
|
602
|
+
};
|
|
603
|
+
export type EncryptedSignerShareType = (typeof EncryptedSignerShareType)[keyof typeof EncryptedSignerShareType];
|
|
289
604
|
export interface EncryptedSignerShareRecord extends ShareBaseRecord {
|
|
290
605
|
type: EncryptedSignerShareType;
|
|
291
606
|
}
|
|
292
|
-
export
|
|
607
|
+
export type BitgoPubKeyType = 'nitro' | 'onprem';
|
|
608
|
+
export type TSSParams = {
|
|
293
609
|
txRequest: string | TxRequest;
|
|
294
|
-
prv: string;
|
|
295
610
|
reqId: IRequestTracer;
|
|
296
611
|
apiVersion?: ApiVersion;
|
|
297
|
-
|
|
612
|
+
txParams?: TransactionParams;
|
|
298
613
|
};
|
|
299
|
-
export
|
|
614
|
+
export type TSSParamsForMessage = TSSParams & {
|
|
300
615
|
messageRaw: string;
|
|
301
616
|
messageEncoded?: string;
|
|
302
617
|
bufferToSign: Buffer;
|
|
303
618
|
};
|
|
619
|
+
/** At least one recipient (when using `recipientSource: TssTxRecipientSource.Explicit`). */
|
|
620
|
+
export type NonEmptyRecipientList = [ITransactionRecipient, ...ITransactionRecipient[]];
|
|
621
|
+
/** txParams including a non-empty recipients list for strict signing verification typing. */
|
|
622
|
+
export type TransactionParamsWithMandatoryRecipients = TransactionParams & {
|
|
623
|
+
recipients: NonEmptyRecipientList;
|
|
624
|
+
};
|
|
625
|
+
export declare const TssTxRecipientSource: {
|
|
626
|
+
/** Require txParams.recipients with at least one entry (enforced by TypeScript for this branch). */
|
|
627
|
+
readonly Explicit: "explicit";
|
|
628
|
+
/**
|
|
629
|
+
* Default: txParams may be omitted or partial; verification uses coin-specific rules
|
|
630
|
+
* (for example recipients from txRequest context).
|
|
631
|
+
*/
|
|
632
|
+
readonly Resolved: "resolved";
|
|
633
|
+
};
|
|
634
|
+
export type TssTxRecipientSource = (typeof TssTxRecipientSource)[keyof typeof TssTxRecipientSource];
|
|
635
|
+
export type TssSignTxExplicitRecipientParams = {
|
|
636
|
+
txRequest: string | TxRequest;
|
|
637
|
+
reqId: IRequestTracer;
|
|
638
|
+
apiVersion?: ApiVersion;
|
|
639
|
+
recipientSource: typeof TssTxRecipientSource.Explicit;
|
|
640
|
+
txParams: TransactionParamsWithMandatoryRecipients;
|
|
641
|
+
};
|
|
642
|
+
export type TssSignTxResolvedRecipientParams = {
|
|
643
|
+
txRequest: string | TxRequest;
|
|
644
|
+
reqId: IRequestTracer;
|
|
645
|
+
apiVersion?: ApiVersion;
|
|
646
|
+
recipientSource?: typeof TssTxRecipientSource.Resolved;
|
|
647
|
+
txParams?: TransactionParams;
|
|
648
|
+
};
|
|
649
|
+
/**
|
|
650
|
+
* Parameters for TSS transaction signing ({@link ITssUtils.signTxRequest}).
|
|
651
|
+
* Set {@link TssTxRecipientSource.Explicit} to require a non-empty txParams.recipients array at compile time.
|
|
652
|
+
*/
|
|
653
|
+
export type TssSignTxRequestParams = TssSignTxExplicitRecipientParams | TssSignTxResolvedRecipientParams;
|
|
654
|
+
export type TssSignTxRequestParamsWithPrv = TssSignTxRequestParams & {
|
|
655
|
+
prv: string;
|
|
656
|
+
mpcv2PartyId?: 0 | 1;
|
|
657
|
+
};
|
|
658
|
+
/**
|
|
659
|
+
* @deprecated Use {@link TssSignTxRequestParamsWithPrv} instead. This alias exists for
|
|
660
|
+
* backwards compatibility and will be removed in a future major release.
|
|
661
|
+
*/
|
|
662
|
+
export type TSSParamsWithPrv = TssSignTxRequestParamsWithPrv;
|
|
663
|
+
export type TSSParamsForMessageWithPrv = TSSParamsForMessage & {
|
|
664
|
+
prv: string;
|
|
665
|
+
mpcv2PartyId?: 0 | 1;
|
|
666
|
+
};
|
|
304
667
|
export interface BitgoHeldBackupKeyShare {
|
|
305
668
|
commonKeychain?: string;
|
|
306
669
|
id: string;
|
|
@@ -313,11 +676,13 @@ export interface BackupKeyShare {
|
|
|
313
676
|
export interface BitgoGPGPublicKey {
|
|
314
677
|
name: string;
|
|
315
678
|
publicKey: string;
|
|
679
|
+
mpcv2PublicKey?: string;
|
|
680
|
+
eddsaMpcv2PublicKey?: string;
|
|
316
681
|
enterpriseId: string;
|
|
317
682
|
}
|
|
318
683
|
export interface MPCTx {
|
|
319
684
|
serializedTx: string;
|
|
320
|
-
scanIndex
|
|
685
|
+
scanIndex?: number;
|
|
321
686
|
coin?: string;
|
|
322
687
|
signableHex?: string;
|
|
323
688
|
derivationPath?: string;
|
|
@@ -332,6 +697,8 @@ export interface MPCTx {
|
|
|
332
697
|
commonKeychain?: string;
|
|
333
698
|
lastScanIndex?: number;
|
|
334
699
|
};
|
|
700
|
+
recoveryAmount?: string;
|
|
701
|
+
signature?: string;
|
|
335
702
|
}
|
|
336
703
|
export interface MPCRecoveryOptions {
|
|
337
704
|
userKey?: string;
|
|
@@ -341,6 +708,10 @@ export interface MPCRecoveryOptions {
|
|
|
341
708
|
walletPassphrase?: string;
|
|
342
709
|
seed?: string;
|
|
343
710
|
index?: number;
|
|
711
|
+
startingScanIndex?: number;
|
|
712
|
+
scan?: number;
|
|
713
|
+
tokenContractAddress?: string;
|
|
714
|
+
apiKey?: string;
|
|
344
715
|
}
|
|
345
716
|
export interface MPCConsolidationRecoveryOptions {
|
|
346
717
|
userKey?: string;
|
|
@@ -350,6 +721,7 @@ export interface MPCConsolidationRecoveryOptions {
|
|
|
350
721
|
startingScanIndex?: number;
|
|
351
722
|
endingScanIndex?: number;
|
|
352
723
|
seed?: string;
|
|
724
|
+
tokenContractAddress?: string;
|
|
353
725
|
}
|
|
354
726
|
export interface MPCSweepTxs {
|
|
355
727
|
txRequests: RecoveryTxRequest[];
|
|
@@ -383,10 +755,11 @@ interface SignatureShare {
|
|
|
383
755
|
}
|
|
384
756
|
interface Ovc {
|
|
385
757
|
eddsaSignature: Signature;
|
|
758
|
+
ecdsaSignature?: EcdsaSignature;
|
|
386
759
|
}
|
|
387
760
|
export interface MPCTxs {
|
|
388
761
|
transactions: MPCTx[];
|
|
389
|
-
lastScanIndex
|
|
762
|
+
lastScanIndex?: number;
|
|
390
763
|
}
|
|
391
764
|
export interface OvcInput {
|
|
392
765
|
address: string;
|
|
@@ -398,7 +771,7 @@ export interface OvcOutput {
|
|
|
398
771
|
valueString: string;
|
|
399
772
|
coinName?: string;
|
|
400
773
|
}
|
|
401
|
-
export
|
|
774
|
+
export type BackupGpgKey = SerializedKeyPair<string> | Key;
|
|
402
775
|
/**
|
|
403
776
|
* Common Interface for implementing signature scheme specific
|
|
404
777
|
* util functions
|
|
@@ -414,12 +787,9 @@ export interface ITssUtils<KeyShare = EDDSA.KeyShare> {
|
|
|
414
787
|
enterprise?: string;
|
|
415
788
|
originalPasscodeEncryptionCode?: string;
|
|
416
789
|
isThirdPartyBackup?: boolean;
|
|
790
|
+
encryptionVersion?: EncryptionVersion;
|
|
417
791
|
}): Promise<KeychainsTriplet>;
|
|
418
|
-
signTxRequest(params:
|
|
419
|
-
txRequest: string | TxRequest;
|
|
420
|
-
prv: string;
|
|
421
|
-
reqId: IRequestTracer;
|
|
422
|
-
}): Promise<TxRequest>;
|
|
792
|
+
signTxRequest(params: TssSignTxRequestParamsWithPrv): Promise<TxRequest>;
|
|
423
793
|
signTxRequestForMessage(params: TSSParams): Promise<TxRequest>;
|
|
424
794
|
signEddsaTssUsingExternalSigner(txRequest: string | TxRequest, externalSignerCommitmentGenerator: CustomCommitmentGeneratingFunction, externalSignerRShareGenerator: CustomRShareGeneratingFunction, externalSignerGShareGenerator: CustomGShareGeneratingFunction): Promise<TxRequest>;
|
|
425
795
|
signEcdsaTssUsingExternalSigner(params: TSSParams | TSSParamsForMessage, requestType: RequestType, externalSignerPaillierModulusGetter: CustomPaillierModulusGetterFunction, externalSignerKShareGenerator: CustomKShareGeneratingFunction, externalSignerMuDeltaShareGenerator: CustomMuDeltaShareGeneratingFunction, externalSignerSShareGenerator: CustomSShareGeneratingFunction): Promise<TxRequest>;
|
|
@@ -427,6 +797,7 @@ export interface ITssUtils<KeyShare = EDDSA.KeyShare> {
|
|
|
427
797
|
txRequest: TxRequest;
|
|
428
798
|
prv: string;
|
|
429
799
|
walletPassphrase: string;
|
|
800
|
+
bitgoGpgPubKey: string;
|
|
430
801
|
}): Promise<{
|
|
431
802
|
userToBitgoCommitment: CommitmentShareRecord;
|
|
432
803
|
encryptedSignerShare: EncryptedSignerShareRecord;
|