@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,16 +1,17 @@
|
|
|
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';
|
|
6
|
-
import { ApiVersion, Memo, WalletType } from '../../wallet';
|
|
7
|
-
import {
|
|
2
|
+
import { EncryptionVersion, IEncryptionSession, IRequestTracer } from '../../../api';
|
|
3
|
+
import { type ITransactionRecipient, KeychainsTriplet, ParsedTransaction, TransactionParams } from '../../baseCoin';
|
|
4
|
+
import { ApiKeyShare, Keychain, WebauthnKeyEncryptionInfo } from '../../keychain';
|
|
5
|
+
import { ApiVersion, Memo, WalletType, type PrebuildTransactionFeeInfo } from '../../wallet';
|
|
6
|
+
import type { AttestationPayload } from '../../wallet/BuildParams';
|
|
7
|
+
import { EDDSA, GShare, Signature, SignShare } from '../../../account-lib/mpc/tss';
|
|
8
|
+
import { Signature as EcdsaSignature } from '../../../account-lib/mpc/tss/ecdsa/types';
|
|
8
9
|
import { KeyShare } from './ecdsa';
|
|
9
|
-
import { Hash } from 'crypto';
|
|
10
10
|
import { EcdsaTypes } from '@bitgo-beta/sdk-lib-mpc';
|
|
11
11
|
import { TssEcdsaStep1ReturnMessage, TssEcdsaStep2ReturnMessage, TxRequestChallengeResponse } from '../../tss/types';
|
|
12
12
|
import { AShare, DShare, SShare } from '../../tss/ecdsa/types';
|
|
13
|
-
|
|
13
|
+
import { MessageStandardType } from '../messageTypes';
|
|
14
|
+
export type TxRequestVersion = 'full' | 'lite';
|
|
14
15
|
export interface HopParams {
|
|
15
16
|
paymentId?: string;
|
|
16
17
|
userReqSig?: string;
|
|
@@ -18,8 +19,9 @@ export interface HopParams {
|
|
|
18
19
|
}
|
|
19
20
|
export interface EIP1559FeeOptions {
|
|
20
21
|
gasLimit?: number;
|
|
21
|
-
maxFeePerGas
|
|
22
|
-
maxPriorityFeePerGas
|
|
22
|
+
maxFeePerGas: number;
|
|
23
|
+
maxPriorityFeePerGas: number;
|
|
24
|
+
feeToken?: string;
|
|
23
25
|
}
|
|
24
26
|
export interface FeeOption {
|
|
25
27
|
unit?: 'baseUnit' | 'cpu' | 'ram';
|
|
@@ -27,11 +29,86 @@ export interface FeeOption {
|
|
|
27
29
|
feeType?: 'base' | 'max' | 'tip';
|
|
28
30
|
gasLimit?: number;
|
|
29
31
|
gasPrice?: number;
|
|
32
|
+
feeToken?: string;
|
|
30
33
|
}
|
|
31
34
|
export interface TokenEnablement {
|
|
32
35
|
name: string;
|
|
33
36
|
address?: string;
|
|
34
37
|
}
|
|
38
|
+
export interface SolInstruction {
|
|
39
|
+
programId: string;
|
|
40
|
+
keys: Array<{
|
|
41
|
+
pubkey: string;
|
|
42
|
+
isSigner: boolean;
|
|
43
|
+
isWritable: boolean;
|
|
44
|
+
}>;
|
|
45
|
+
data: string;
|
|
46
|
+
}
|
|
47
|
+
export interface SolVersionedInstruction {
|
|
48
|
+
programIdIndex: number;
|
|
49
|
+
accountKeyIndexes: number[];
|
|
50
|
+
data: string;
|
|
51
|
+
}
|
|
52
|
+
export interface SolAddressLookupTable {
|
|
53
|
+
accountKey: string;
|
|
54
|
+
writableIndexes: number[];
|
|
55
|
+
readonlyIndexes: number[];
|
|
56
|
+
}
|
|
57
|
+
export type SolTransactionVersion = 0 | 1;
|
|
58
|
+
export interface SolV1TransactionConfig {
|
|
59
|
+
computeUnitLimit: number | null;
|
|
60
|
+
heapSize: number | null;
|
|
61
|
+
loadedAccountsDataSizeLimit: number | null;
|
|
62
|
+
priorityFee: number | null;
|
|
63
|
+
}
|
|
64
|
+
export interface SolVersionedTransactionData {
|
|
65
|
+
versionedInstructions: SolVersionedInstruction[];
|
|
66
|
+
addressLookupTables: SolAddressLookupTable[];
|
|
67
|
+
staticAccountKeys: string[];
|
|
68
|
+
messageHeader: {
|
|
69
|
+
numRequiredSignatures: number;
|
|
70
|
+
numReadonlySignedAccounts: number;
|
|
71
|
+
numReadonlyUnsignedAccounts: number;
|
|
72
|
+
};
|
|
73
|
+
recentBlockhash?: string;
|
|
74
|
+
version?: SolTransactionVersion;
|
|
75
|
+
transactionConfig?: SolV1TransactionConfig;
|
|
76
|
+
}
|
|
77
|
+
export interface aptosCustomTransactionParams {
|
|
78
|
+
moduleName: string;
|
|
79
|
+
functionName: string;
|
|
80
|
+
typeArguments?: string[];
|
|
81
|
+
functionArguments?: any[];
|
|
82
|
+
abi?: any;
|
|
83
|
+
}
|
|
84
|
+
export interface CantonCreateCommand {
|
|
85
|
+
CreateCommand: {
|
|
86
|
+
templateId: string;
|
|
87
|
+
createArguments: Record<string, unknown>;
|
|
88
|
+
};
|
|
89
|
+
}
|
|
90
|
+
export interface CantonExerciseCommand {
|
|
91
|
+
ExerciseCommand: {
|
|
92
|
+
templateId: string;
|
|
93
|
+
contractId?: string;
|
|
94
|
+
choice: string;
|
|
95
|
+
choiceArgument?: Record<string, unknown>;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
export type CantonCommand = CantonCreateCommand | CantonExerciseCommand;
|
|
99
|
+
export interface CantonCommandResolveContractSpec {
|
|
100
|
+
templateId: string;
|
|
101
|
+
actAs: string[];
|
|
102
|
+
readAs?: string[];
|
|
103
|
+
injectAs: string;
|
|
104
|
+
resolveAll?: boolean;
|
|
105
|
+
}
|
|
106
|
+
export interface CantonCommandParams {
|
|
107
|
+
command: CantonCommand;
|
|
108
|
+
actAs: string[];
|
|
109
|
+
readAs?: string[];
|
|
110
|
+
resolveContracts?: CantonCommandResolveContractSpec[];
|
|
111
|
+
}
|
|
35
112
|
export declare enum ShareType {
|
|
36
113
|
R = "R",
|
|
37
114
|
Commitment = "commitment",
|
|
@@ -39,7 +116,13 @@ export declare enum ShareType {
|
|
|
39
116
|
S = "S",
|
|
40
117
|
K = "K",
|
|
41
118
|
MuDelta = "MuDelta",
|
|
42
|
-
PaillierModulus = "PaillierModulus"
|
|
119
|
+
PaillierModulus = "PaillierModulus",
|
|
120
|
+
MPCv2Round1 = "MPCv2Round1",
|
|
121
|
+
MPCv2Round2 = "MPCv2Round2",
|
|
122
|
+
MPCv2Round3 = "MPCv2Round3",
|
|
123
|
+
EddsaMPCv2Round1 = "EddsaMPCv2Round1",
|
|
124
|
+
EddsaMPCv2Round2 = "EddsaMPCv2Round2",
|
|
125
|
+
EddsaMPCv2Round3 = "EddsaMPCv2Round3"
|
|
43
126
|
}
|
|
44
127
|
export declare enum MPCType {
|
|
45
128
|
EDDSA = "eddsa",
|
|
@@ -64,7 +147,13 @@ export interface CustomKShareGeneratingFunction {
|
|
|
64
147
|
}
|
|
65
148
|
export interface CustomMuDeltaShareGeneratingFunction {
|
|
66
149
|
(params: {
|
|
67
|
-
|
|
150
|
+
/** Bound signable context; enables adata validation. */
|
|
151
|
+
tssParams?: TSSParams | TSSParamsForMessage;
|
|
152
|
+
requestType?: RequestType;
|
|
153
|
+
/** Legacy relays pass txRequest at top level; still adata-validated. */
|
|
154
|
+
txRequest?: TxRequest;
|
|
155
|
+
/** Injected by the express signer route; enables modulus validation. */
|
|
156
|
+
prv?: string;
|
|
68
157
|
aShareFromBitgo: Omit<AShare, 'ntilde' | 'h1' | 'h2'>;
|
|
69
158
|
bitgoChallenge: TxRequestChallengeResponse;
|
|
70
159
|
encryptedWShare: string;
|
|
@@ -81,6 +170,7 @@ export interface CustomSShareGeneratingFunction {
|
|
|
81
170
|
export interface CustomCommitmentGeneratingFunction {
|
|
82
171
|
(params: {
|
|
83
172
|
txRequest: TxRequest;
|
|
173
|
+
bitgoGpgPubKey?: string;
|
|
84
174
|
}): Promise<{
|
|
85
175
|
userToBitgoCommitment: CommitmentShareRecord;
|
|
86
176
|
encryptedSignerShare: EncryptedSignerShareRecord;
|
|
@@ -103,10 +193,73 @@ export interface CustomGShareGeneratingFunction {
|
|
|
103
193
|
bitgoToUserCommitment: CommitmentShareRecord;
|
|
104
194
|
}): Promise<GShare>;
|
|
105
195
|
}
|
|
196
|
+
export interface CustomMPCv2SigningRound1GeneratingFunction {
|
|
197
|
+
(params: {
|
|
198
|
+
txRequest: TxRequest;
|
|
199
|
+
}): Promise<{
|
|
200
|
+
signatureShareRound1: SignatureShareRecord;
|
|
201
|
+
encryptedRound1Session: string;
|
|
202
|
+
userGpgPubKey: string;
|
|
203
|
+
encryptedUserGpgPrvKey: string;
|
|
204
|
+
}>;
|
|
205
|
+
}
|
|
206
|
+
export interface CustomMPCv2SigningRound2GeneratingFunction {
|
|
207
|
+
(params: {
|
|
208
|
+
txRequest: TxRequest;
|
|
209
|
+
bitgoPublicGpgKey: string;
|
|
210
|
+
encryptedUserGpgPrvKey: string;
|
|
211
|
+
encryptedRound1Session: string;
|
|
212
|
+
}): Promise<{
|
|
213
|
+
signatureShareRound2: SignatureShareRecord;
|
|
214
|
+
encryptedRound2Session: string;
|
|
215
|
+
}>;
|
|
216
|
+
}
|
|
217
|
+
export interface CustomMPCv2SigningRound3GeneratingFunction {
|
|
218
|
+
(params: {
|
|
219
|
+
txRequest: TxRequest;
|
|
220
|
+
bitgoPublicGpgKey: string;
|
|
221
|
+
encryptedUserGpgPrvKey: string;
|
|
222
|
+
encryptedRound2Session: string;
|
|
223
|
+
}): Promise<{
|
|
224
|
+
signatureShareRound3: SignatureShareRecord;
|
|
225
|
+
}>;
|
|
226
|
+
}
|
|
227
|
+
export interface CustomEddsaMPCv2SigningRound1GeneratingFunction {
|
|
228
|
+
(params: {
|
|
229
|
+
txRequest: TxRequest;
|
|
230
|
+
}): Promise<{
|
|
231
|
+
signatureShareRound1: SignatureShareRecord;
|
|
232
|
+
encryptedRound1Session: string;
|
|
233
|
+
userGpgPubKey: string;
|
|
234
|
+
encryptedUserGpgPrvKey: string;
|
|
235
|
+
}>;
|
|
236
|
+
}
|
|
237
|
+
export interface CustomEddsaMPCv2SigningRound2GeneratingFunction {
|
|
238
|
+
(params: {
|
|
239
|
+
txRequest: TxRequest;
|
|
240
|
+
bitgoPublicGpgKey: string;
|
|
241
|
+
encryptedUserGpgPrvKey: string;
|
|
242
|
+
encryptedRound1Session: string;
|
|
243
|
+
}): Promise<{
|
|
244
|
+
signatureShareRound2: SignatureShareRecord;
|
|
245
|
+
encryptedRound2Session: string;
|
|
246
|
+
}>;
|
|
247
|
+
}
|
|
248
|
+
export interface CustomEddsaMPCv2SigningRound3GeneratingFunction {
|
|
249
|
+
(params: {
|
|
250
|
+
txRequest: TxRequest;
|
|
251
|
+
bitgoPublicGpgKey: string;
|
|
252
|
+
encryptedUserGpgPrvKey: string;
|
|
253
|
+
encryptedRound2Session: string;
|
|
254
|
+
}): Promise<{
|
|
255
|
+
signatureShareRound3: SignatureShareRecord;
|
|
256
|
+
}>;
|
|
257
|
+
}
|
|
106
258
|
export declare enum TokenType {
|
|
107
259
|
ERC721 = "ERC721",
|
|
108
260
|
ERC1155 = "ERC1155",
|
|
109
|
-
ERC20 = "ERC20"
|
|
261
|
+
ERC20 = "ERC20",
|
|
262
|
+
DIGITAL_ASSET = "Digital Asset"
|
|
110
263
|
}
|
|
111
264
|
export interface TokenTransferRecipientParams {
|
|
112
265
|
tokenType: TokenType;
|
|
@@ -126,11 +279,50 @@ interface IntentOptionsBase {
|
|
|
126
279
|
custodianTransactionId?: string;
|
|
127
280
|
custodianMessageId?: string;
|
|
128
281
|
}
|
|
282
|
+
/**
|
|
283
|
+
* DeFi intent fields for ERC-4626 vault operations.
|
|
284
|
+
* Extended by PopulatedIntent so these land at the top level of the payload.
|
|
285
|
+
*/
|
|
286
|
+
export interface DefiIntentFields {
|
|
287
|
+
vaultId?: string;
|
|
288
|
+
amount?: {
|
|
289
|
+
value: string;
|
|
290
|
+
symbol: string;
|
|
291
|
+
} | string;
|
|
292
|
+
/** Vault share token amount for defi-withdraw intent (base units) */
|
|
293
|
+
shareTokenAmount?: {
|
|
294
|
+
value: string;
|
|
295
|
+
symbol: string;
|
|
296
|
+
} | string;
|
|
297
|
+
operationId?: string;
|
|
298
|
+
}
|
|
299
|
+
/** DeFi-specific intent parameters (input container for defiParams). */
|
|
300
|
+
export interface DefiIntentParams {
|
|
301
|
+
vaultId: string;
|
|
302
|
+
amount: string;
|
|
303
|
+
operationId?: string;
|
|
304
|
+
}
|
|
305
|
+
/** ERC-7984 wrap / wrapApprove parameters (input container for wrapParams). */
|
|
306
|
+
export interface WrapIntentParams {
|
|
307
|
+
tokenName: string;
|
|
308
|
+
amount: string;
|
|
309
|
+
}
|
|
310
|
+
/** ERC-7984 unwrap (unshield) parameters (input container for unwrapParams). */
|
|
311
|
+
export interface UnwrapIntentParams {
|
|
312
|
+
tokenName: string;
|
|
313
|
+
amount: string;
|
|
314
|
+
}
|
|
129
315
|
export interface IntentOptionsForMessage extends IntentOptionsBase {
|
|
316
|
+
isWalletConnectTx?: true;
|
|
130
317
|
messageRaw: string;
|
|
131
318
|
messageEncoded?: string;
|
|
319
|
+
messageStandardType?: MessageStandardType;
|
|
320
|
+
signerAddress?: string;
|
|
321
|
+
/** Base64-encoded prepared transaction bytes required by Canton message signing. */
|
|
322
|
+
preparedTransaction?: string;
|
|
132
323
|
}
|
|
133
324
|
export interface IntentOptionsForTypedData extends IntentOptionsBase {
|
|
325
|
+
isWalletConnectTx?: true;
|
|
134
326
|
typedDataRaw: string;
|
|
135
327
|
typedDataEncoded?: string;
|
|
136
328
|
}
|
|
@@ -144,6 +336,8 @@ export interface PrebuildTransactionWithIntentOptions extends IntentOptionsBase
|
|
|
144
336
|
}[];
|
|
145
337
|
tokenName?: string;
|
|
146
338
|
enableTokens?: TokenEnablement[];
|
|
339
|
+
/** Solana CT: run ConfigureAccount after ATA creation (opt-out, default true). */
|
|
340
|
+
configureAccount?: boolean;
|
|
147
341
|
nonce?: string;
|
|
148
342
|
selfSend?: boolean;
|
|
149
343
|
feeOptions?: FeeOption | EIP1559FeeOptions;
|
|
@@ -151,6 +345,92 @@ export interface PrebuildTransactionWithIntentOptions extends IntentOptionsBase
|
|
|
151
345
|
lowFeeTxid?: string;
|
|
152
346
|
custodianTransactionId?: string;
|
|
153
347
|
receiveAddress?: string;
|
|
348
|
+
unspents?: string[];
|
|
349
|
+
/**
|
|
350
|
+
* User IDs of the Video ID approvers selected for this withdrawal. Sent as a top-level field of the
|
|
351
|
+
* /txrequests body (not part of the intent); Wallet Platform validates each ID against the
|
|
352
|
+
* enterprise's approved Video ID users.
|
|
353
|
+
*/
|
|
354
|
+
videoApprovers?: string[];
|
|
355
|
+
/** Optional pass-through WebAuthn proof sent at the top level of a withdrawal txrequest. */
|
|
356
|
+
attestation?: AttestationPayload;
|
|
357
|
+
/**
|
|
358
|
+
* MIST to redeem from the sender's address balance (SIP-58 / SUI address balances).
|
|
359
|
+
* When set, the PTB includes tx.withdrawal() + redeem_funds() before the transfer.
|
|
360
|
+
*/
|
|
361
|
+
fundsInAddressBalance?: string;
|
|
362
|
+
/**
|
|
363
|
+
* The receive address from which funds will be withdrawn.
|
|
364
|
+
* This feature is supported only for specific coins, like ADA.
|
|
365
|
+
*/
|
|
366
|
+
senderAddress?: string;
|
|
367
|
+
/**
|
|
368
|
+
* Custom Solana instructions for use with the customTx intent type.
|
|
369
|
+
* Each instruction should contain programId, keys, and data fields.
|
|
370
|
+
*/
|
|
371
|
+
solInstructions?: SolInstruction[];
|
|
372
|
+
/**
|
|
373
|
+
* Deconstructed Versioned Transaction data for Solana customTx intent type.
|
|
374
|
+
* Contains compiled instructions, Address Lookup Tables, and static account keys.
|
|
375
|
+
*/
|
|
376
|
+
solVersionedTransactionData?: SolVersionedTransactionData;
|
|
377
|
+
/**
|
|
378
|
+
* Solana wire-version marker for structured intents (SIMD-0296/0385): 1 selects the
|
|
379
|
+
* v1 envelope. Forwarded to the intent as `version`.
|
|
380
|
+
*/
|
|
381
|
+
version?: 0 | 1;
|
|
382
|
+
/**
|
|
383
|
+
* Custom transaction parameters for Aptos entry function calls.
|
|
384
|
+
* Used with the customTx intent type for Aptos smart contract interactions.
|
|
385
|
+
*/
|
|
386
|
+
aptosCustomTransactionParams?: {
|
|
387
|
+
moduleName: string;
|
|
388
|
+
functionName: string;
|
|
389
|
+
typeArguments?: string[];
|
|
390
|
+
functionArguments?: any[];
|
|
391
|
+
abi?: any;
|
|
392
|
+
};
|
|
393
|
+
txRequestId?: string;
|
|
394
|
+
isTestTransaction?: boolean;
|
|
395
|
+
isWalletConnectTx?: boolean;
|
|
396
|
+
transferOfferId?: string;
|
|
397
|
+
/**
|
|
398
|
+
* Amount for intents that use a top-level amount instead of recipients (e.g. bridgeFunds).
|
|
399
|
+
*/
|
|
400
|
+
amount?: {
|
|
401
|
+
value: string;
|
|
402
|
+
symbol: string;
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* TIP-20 token address to use for paying transaction fees (Tempo only).
|
|
406
|
+
*/
|
|
407
|
+
feeToken?: string;
|
|
408
|
+
/** Canton-specific params for the cantonCommand intent. */
|
|
409
|
+
cantonCommandParams?: CantonCommandParams;
|
|
410
|
+
/** External settlement executor party ID (cantonBroadridgeStandingDelegation intent). */
|
|
411
|
+
executorPartyId?: string;
|
|
412
|
+
/** DeFi vault intent fields for defi-* and wrap-native / unwrap-native intents. */
|
|
413
|
+
defiParams?: DefiIntentParams;
|
|
414
|
+
/** ERC-7984 wrap / wrapApprove fields flattened onto the WP intent. */
|
|
415
|
+
wrapParams?: WrapIntentParams;
|
|
416
|
+
/** ERC-7984 unwrap (unshield) fields flattened onto the WP intent. */
|
|
417
|
+
unwrapParams?: UnwrapIntentParams;
|
|
418
|
+
/** Canton party ID of the end investor to onboard (cantonEndInvestorOnboardingOffer intent). */
|
|
419
|
+
endInvestorPartyId?: string;
|
|
420
|
+
/** Reason for rejecting the onboarding offer (cantonEndInvestorOnboardingReject intent). */
|
|
421
|
+
reason?: string;
|
|
422
|
+
/** DTCC operator party ID (cantonParticipantOnboardingRequest intent). */
|
|
423
|
+
operator?: string;
|
|
424
|
+
/** DTCC provider party ID (cantonParticipantOnboardingRequest intent). */
|
|
425
|
+
provider?: string;
|
|
426
|
+
/** DTCC compliance party ID (cantonParticipantOnboardingRequest intent). */
|
|
427
|
+
compliance?: string;
|
|
428
|
+
/** DTCC registrar party ID (cantonParticipantOnboardingRequest intent). */
|
|
429
|
+
registrar?: string;
|
|
430
|
+
/** DTCC client onboarder party ID (cantonParticipantOnboardingRequest intent). */
|
|
431
|
+
clientOnboarder?: string;
|
|
432
|
+
/** Optional ISO 8601 expiration timestamp (cantonParticipantOnboardingRequest intent). */
|
|
433
|
+
expirationIso?: string;
|
|
154
434
|
}
|
|
155
435
|
export interface IntentRecipient {
|
|
156
436
|
address: {
|
|
@@ -171,44 +451,123 @@ interface PopulatedIntentBase {
|
|
|
171
451
|
isTss?: boolean;
|
|
172
452
|
}
|
|
173
453
|
export interface PopulatedIntentForMessageSigning extends PopulatedIntentBase {
|
|
454
|
+
isWalletConnectTx?: true;
|
|
174
455
|
messageRaw: string;
|
|
175
456
|
messageEncoded: string;
|
|
176
457
|
custodianMessageId?: string;
|
|
458
|
+
messageStandardType?: MessageStandardType;
|
|
459
|
+
signerAddress?: string;
|
|
460
|
+
/** Base64-encoded prepared transaction bytes required by Canton message signing. */
|
|
461
|
+
preparedTransaction?: string;
|
|
177
462
|
}
|
|
178
463
|
export interface PopulatedIntentForTypedDataSigning extends PopulatedIntentBase {
|
|
464
|
+
isWalletConnectTx?: true;
|
|
179
465
|
messageRaw: string;
|
|
180
466
|
messageEncoded: string;
|
|
181
467
|
custodianMessageId?: string;
|
|
182
468
|
}
|
|
183
|
-
export interface PopulatedIntent extends PopulatedIntentBase {
|
|
469
|
+
export interface PopulatedIntent extends PopulatedIntentBase, DefiIntentFields {
|
|
470
|
+
stakingRequestId?: string;
|
|
184
471
|
recipients?: IntentRecipient[];
|
|
472
|
+
/** Canton split (fanout): number of equal-value holdings the unspents are split into. */
|
|
473
|
+
numberOfSplits?: number;
|
|
185
474
|
nonce?: string;
|
|
186
475
|
token?: string;
|
|
187
476
|
enableTokens?: TokenEnablement[];
|
|
477
|
+
/**
|
|
478
|
+
* Solana confidential transfer: also run ConfigureAccount after ATA creation so the
|
|
479
|
+
* address can hold a confidential balance. Defaults to true; ignored for CMB mints.
|
|
480
|
+
*/
|
|
481
|
+
configureAccount?: boolean;
|
|
482
|
+
unspents?: string[];
|
|
483
|
+
fundsInAddressBalance?: string;
|
|
484
|
+
/**
|
|
485
|
+
* The receive address from which funds will be withdrawn.
|
|
486
|
+
* This feature is supported only for specific coins, like ADA.
|
|
487
|
+
*/
|
|
488
|
+
senderAddress?: string;
|
|
188
489
|
selfSend?: boolean;
|
|
189
490
|
feeOptions?: FeeOption | EIP1559FeeOptions;
|
|
491
|
+
/**
|
|
492
|
+
* TIP-20 token address to use for paying transaction fees (Tempo only).
|
|
493
|
+
* This is placed at the intent level, not nested in feeOptions.
|
|
494
|
+
*/
|
|
495
|
+
feeToken?: string;
|
|
190
496
|
hopParams?: HopParams;
|
|
191
497
|
txid?: string;
|
|
192
498
|
receiveAddress?: string;
|
|
193
499
|
custodianTransactionId?: string;
|
|
194
500
|
custodianMessageId?: string;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
501
|
+
tokenName?: string;
|
|
502
|
+
/**
|
|
503
|
+
* Custom Solana instructions for use with the customTx intent type.
|
|
504
|
+
* Each instruction should contain programId, keys, and data fields.
|
|
505
|
+
*/
|
|
506
|
+
solInstructions?: SolInstruction[];
|
|
507
|
+
/**
|
|
508
|
+
* Deconstructed Versioned Transaction data for Solana customTx intent type.
|
|
509
|
+
* Contains compiled instructions, Address Lookup Tables, and static account keys.
|
|
510
|
+
*/
|
|
511
|
+
solVersionedTransactionData?: SolVersionedTransactionData;
|
|
512
|
+
/**
|
|
513
|
+
* Solana wire-version marker for structured intents (SIMD-0296/0385): 1 = v1 envelope.
|
|
514
|
+
*/
|
|
515
|
+
version?: 0 | 1;
|
|
516
|
+
/**
|
|
517
|
+
* Custom Aptos transaction for use with the customTx intent type.
|
|
518
|
+
*/
|
|
519
|
+
aptosCustomTransactionParams?: aptosCustomTransactionParams;
|
|
520
|
+
txRequestId?: string;
|
|
521
|
+
isTestTransaction?: boolean;
|
|
522
|
+
isWalletConnectTx?: boolean;
|
|
523
|
+
transferOfferId?: string;
|
|
524
|
+
/**
|
|
525
|
+
* Amount for intents that use a top-level amount instead of recipients (e.g. bridgeFunds).
|
|
526
|
+
*/
|
|
527
|
+
amount?: {
|
|
528
|
+
value: string;
|
|
529
|
+
symbol: string;
|
|
530
|
+
} | string;
|
|
531
|
+
/** Canton-specific params serialized into the cantonCommand intent payload. */
|
|
532
|
+
cantonCommandParams?: CantonCommandParams;
|
|
533
|
+
/** External settlement executor party ID (cantonBroadridgeStandingDelegation intent). */
|
|
534
|
+
executorPartyId?: string;
|
|
535
|
+
/** Canton party ID of the end investor to onboard (cantonEndInvestorOnboardingOffer intent). */
|
|
536
|
+
endInvestorPartyId?: string;
|
|
537
|
+
/** Reason for rejecting the onboarding offer (cantonEndInvestorOnboardingReject intent). */
|
|
538
|
+
reason?: string;
|
|
539
|
+
/** DTCC operator party ID (cantonParticipantOnboardingRequest intent). */
|
|
540
|
+
operator?: string;
|
|
541
|
+
/** DTCC provider party ID (cantonParticipantOnboardingRequest intent). */
|
|
542
|
+
provider?: string;
|
|
543
|
+
/** DTCC compliance party ID (cantonParticipantOnboardingRequest intent). */
|
|
544
|
+
compliance?: string;
|
|
545
|
+
/** DTCC registrar party ID (cantonParticipantOnboardingRequest intent). */
|
|
546
|
+
registrar?: string;
|
|
547
|
+
/** DTCC client onboarder party ID (cantonParticipantOnboardingRequest intent). */
|
|
548
|
+
clientOnboarder?: string;
|
|
549
|
+
/** Optional ISO 8601 expiration timestamp (cantonParticipantOnboardingRequest intent). */
|
|
550
|
+
expirationIso?: string;
|
|
551
|
+
}
|
|
552
|
+
export type TxRequestState = 'pendingCommitment' | 'pendingApproval' | 'canceled' | 'rejected' | 'initialized' | 'pendingDelivery' | 'delivered' | 'pendingUserSignature' | 'signed';
|
|
553
|
+
export type TransactionState = 'initialized' | 'pendingCommitment' | 'pendingSignature' | 'signed' | 'held' | 'delivered' | 'invalidSignature' | 'rejected';
|
|
554
|
+
export type SignableTransaction = {
|
|
199
555
|
serializedTxHex: string;
|
|
200
556
|
signableHex: string;
|
|
201
557
|
};
|
|
202
|
-
export
|
|
558
|
+
export interface ReplayProtectionOptions {
|
|
559
|
+
chain: string | number;
|
|
560
|
+
hardfork: string;
|
|
561
|
+
}
|
|
562
|
+
export type UnsignedTransactionTss = SignableTransaction & {
|
|
203
563
|
derivationPath: string;
|
|
204
|
-
feeInfo?:
|
|
205
|
-
fee: number;
|
|
206
|
-
feeString: string;
|
|
207
|
-
};
|
|
564
|
+
feeInfo?: Required<PrebuildTransactionFeeInfo>;
|
|
208
565
|
coinSpecific?: Record<string, unknown>;
|
|
209
566
|
parsedTx?: unknown;
|
|
567
|
+
eip1559?: EIP1559FeeOptions;
|
|
568
|
+
replayProtectionOptions?: ReplayProtectionOptions;
|
|
210
569
|
};
|
|
211
|
-
export
|
|
570
|
+
export type UnsignedMessageTss = {
|
|
212
571
|
derivationPath: string;
|
|
213
572
|
message: string;
|
|
214
573
|
};
|
|
@@ -216,7 +575,13 @@ export declare enum RequestType {
|
|
|
216
575
|
tx = 0,
|
|
217
576
|
message = 1
|
|
218
577
|
}
|
|
219
|
-
export
|
|
578
|
+
export type SignedTx = {
|
|
579
|
+
id: string;
|
|
580
|
+
tx: string;
|
|
581
|
+
publicKey?: string;
|
|
582
|
+
signature?: string;
|
|
583
|
+
};
|
|
584
|
+
export type TxRequest = {
|
|
220
585
|
txRequestId: string;
|
|
221
586
|
walletId: string;
|
|
222
587
|
walletType: WalletType;
|
|
@@ -238,30 +603,45 @@ export declare type TxRequest = {
|
|
|
238
603
|
state: TransactionState;
|
|
239
604
|
unsignedTx: UnsignedTransactionTss;
|
|
240
605
|
signatureShares: SignatureShareRecord[];
|
|
606
|
+
signedTx?: SignedTx;
|
|
241
607
|
commitmentShares?: CommitmentShareRecord[];
|
|
242
608
|
}[];
|
|
243
609
|
messages?: {
|
|
244
610
|
state: TransactionState;
|
|
245
611
|
signatureShares: SignatureShareRecord[];
|
|
612
|
+
messageRaw: string;
|
|
613
|
+
messageEncoded?: string;
|
|
614
|
+
messageBroadcastable?: string;
|
|
615
|
+
messageStandardType?: MessageStandardType;
|
|
616
|
+
derivationPath: string;
|
|
246
617
|
combineSigShare?: string;
|
|
247
618
|
txHash?: string;
|
|
619
|
+
commitmentShares?: CommitmentShareRecord[];
|
|
248
620
|
}[];
|
|
249
621
|
apiVersion?: TxRequestVersion;
|
|
250
622
|
latest: boolean;
|
|
251
623
|
};
|
|
252
|
-
export
|
|
624
|
+
export type CreateKeychainParamsBase = {
|
|
253
625
|
userGpgKey: SerializedKeyPair<string>;
|
|
254
626
|
bitgoKeychain: Keychain;
|
|
255
627
|
passphrase?: string;
|
|
256
628
|
enterprise?: string;
|
|
257
629
|
originalPasscodeEncryptionCode?: string;
|
|
630
|
+
webauthnInfo?: WebauthnKeyEncryptionInfo;
|
|
631
|
+
encryptionVersion?: EncryptionVersion;
|
|
632
|
+
encryptionSession?: IEncryptionSession;
|
|
258
633
|
};
|
|
259
|
-
export
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
634
|
+
export type CreateBitGoKeychainParamsBase = Omit<CreateKeychainParamsBase, 'bitgoKeychain'>;
|
|
635
|
+
/**
|
|
636
|
+
* Checks whether a ciphertext string is a v2 encryption envelope.
|
|
637
|
+
*/
|
|
638
|
+
export declare function isV2Envelope(ciphertext: string): boolean;
|
|
639
|
+
export declare const SignatureShareType: {
|
|
640
|
+
readonly USER: "user";
|
|
641
|
+
readonly BACKUP: "backup";
|
|
642
|
+
readonly BITGO: "bitgo";
|
|
643
|
+
};
|
|
644
|
+
export type SignatureShareType = (typeof SignatureShareType)[keyof typeof SignatureShareType];
|
|
265
645
|
interface ShareBaseRecord {
|
|
266
646
|
from: SignatureShareType;
|
|
267
647
|
to: SignatureShareType;
|
|
@@ -272,35 +652,88 @@ export interface SignatureShareRecord extends ShareBaseRecord {
|
|
|
272
652
|
privateShareProof?: string;
|
|
273
653
|
publicShare?: string;
|
|
274
654
|
}
|
|
275
|
-
export declare
|
|
276
|
-
COMMITMENT
|
|
277
|
-
DECOMMITMENT
|
|
278
|
-
}
|
|
655
|
+
export declare const CommitmentType: {
|
|
656
|
+
readonly COMMITMENT: "commitment";
|
|
657
|
+
readonly DECOMMITMENT: "decommitment";
|
|
658
|
+
};
|
|
659
|
+
export type CommitmentType = (typeof CommitmentType)[keyof typeof CommitmentType];
|
|
279
660
|
export interface CommitmentShareRecord extends ShareBaseRecord {
|
|
280
661
|
type: CommitmentType;
|
|
281
662
|
}
|
|
282
663
|
export interface ExchangeCommitmentResponse {
|
|
283
664
|
commitmentShare: CommitmentShareRecord;
|
|
284
665
|
}
|
|
285
|
-
export declare
|
|
286
|
-
ENCRYPTED_SIGNER_SHARE
|
|
287
|
-
ENCRYPTED_R_SHARE
|
|
288
|
-
}
|
|
666
|
+
export declare const EncryptedSignerShareType: {
|
|
667
|
+
readonly ENCRYPTED_SIGNER_SHARE: "encryptedSignerShare";
|
|
668
|
+
readonly ENCRYPTED_R_SHARE: "encryptedRShare";
|
|
669
|
+
};
|
|
670
|
+
export type EncryptedSignerShareType = (typeof EncryptedSignerShareType)[keyof typeof EncryptedSignerShareType];
|
|
289
671
|
export interface EncryptedSignerShareRecord extends ShareBaseRecord {
|
|
290
672
|
type: EncryptedSignerShareType;
|
|
291
673
|
}
|
|
292
|
-
export
|
|
674
|
+
export type BitgoPubKeyType = 'nitro' | 'onprem';
|
|
675
|
+
export type TSSParams = {
|
|
293
676
|
txRequest: string | TxRequest;
|
|
294
|
-
prv: string;
|
|
295
677
|
reqId: IRequestTracer;
|
|
296
678
|
apiVersion?: ApiVersion;
|
|
297
|
-
|
|
679
|
+
txParams?: TransactionParams;
|
|
680
|
+
attestation?: AttestationPayload;
|
|
298
681
|
};
|
|
299
|
-
export
|
|
682
|
+
export type TSSParamsForMessage = TSSParams & {
|
|
300
683
|
messageRaw: string;
|
|
301
684
|
messageEncoded?: string;
|
|
302
685
|
bufferToSign: Buffer;
|
|
303
686
|
};
|
|
687
|
+
/** At least one recipient (when using `recipientSource: TssTxRecipientSource.Explicit`). */
|
|
688
|
+
export type NonEmptyRecipientList = [ITransactionRecipient, ...ITransactionRecipient[]];
|
|
689
|
+
/** txParams including a non-empty recipients list for strict signing verification typing. */
|
|
690
|
+
export type TransactionParamsWithMandatoryRecipients = TransactionParams & {
|
|
691
|
+
recipients: NonEmptyRecipientList;
|
|
692
|
+
};
|
|
693
|
+
export declare const TssTxRecipientSource: {
|
|
694
|
+
/** Require txParams.recipients with at least one entry (enforced by TypeScript for this branch). */
|
|
695
|
+
readonly Explicit: "explicit";
|
|
696
|
+
/**
|
|
697
|
+
* Default: txParams may be omitted or partial; verification uses coin-specific rules
|
|
698
|
+
* (for example recipients from txRequest context).
|
|
699
|
+
*/
|
|
700
|
+
readonly Resolved: "resolved";
|
|
701
|
+
};
|
|
702
|
+
export type TssTxRecipientSource = (typeof TssTxRecipientSource)[keyof typeof TssTxRecipientSource];
|
|
703
|
+
export type TssSignTxExplicitRecipientParams = {
|
|
704
|
+
txRequest: string | TxRequest;
|
|
705
|
+
reqId: IRequestTracer;
|
|
706
|
+
apiVersion?: ApiVersion;
|
|
707
|
+
recipientSource: typeof TssTxRecipientSource.Explicit;
|
|
708
|
+
txParams: TransactionParamsWithMandatoryRecipients;
|
|
709
|
+
attestation?: AttestationPayload;
|
|
710
|
+
};
|
|
711
|
+
export type TssSignTxResolvedRecipientParams = {
|
|
712
|
+
txRequest: string | TxRequest;
|
|
713
|
+
reqId: IRequestTracer;
|
|
714
|
+
apiVersion?: ApiVersion;
|
|
715
|
+
recipientSource?: typeof TssTxRecipientSource.Resolved;
|
|
716
|
+
txParams?: TransactionParams;
|
|
717
|
+
attestation?: AttestationPayload;
|
|
718
|
+
};
|
|
719
|
+
/**
|
|
720
|
+
* Parameters for TSS transaction signing ({@link ITssUtils.signTxRequest}).
|
|
721
|
+
* Set {@link TssTxRecipientSource.Explicit} to require a non-empty txParams.recipients array at compile time.
|
|
722
|
+
*/
|
|
723
|
+
export type TssSignTxRequestParams = TssSignTxExplicitRecipientParams | TssSignTxResolvedRecipientParams;
|
|
724
|
+
export type TssSignTxRequestParamsWithPrv = TssSignTxRequestParams & {
|
|
725
|
+
prv: string;
|
|
726
|
+
mpcv2PartyId?: 0 | 1;
|
|
727
|
+
};
|
|
728
|
+
/**
|
|
729
|
+
* @deprecated Use {@link TssSignTxRequestParamsWithPrv} instead. This alias exists for
|
|
730
|
+
* backwards compatibility and will be removed in a future major release.
|
|
731
|
+
*/
|
|
732
|
+
export type TSSParamsWithPrv = TssSignTxRequestParamsWithPrv;
|
|
733
|
+
export type TSSParamsForMessageWithPrv = TSSParamsForMessage & {
|
|
734
|
+
prv: string;
|
|
735
|
+
mpcv2PartyId?: 0 | 1;
|
|
736
|
+
};
|
|
304
737
|
export interface BitgoHeldBackupKeyShare {
|
|
305
738
|
commonKeychain?: string;
|
|
306
739
|
id: string;
|
|
@@ -313,25 +746,27 @@ export interface BackupKeyShare {
|
|
|
313
746
|
export interface BitgoGPGPublicKey {
|
|
314
747
|
name: string;
|
|
315
748
|
publicKey: string;
|
|
749
|
+
mpcv2PublicKey?: string;
|
|
750
|
+
eddsaMpcv2PublicKey?: string;
|
|
751
|
+
redpallasMpcv2PublicKey?: string;
|
|
316
752
|
enterpriseId: string;
|
|
317
753
|
}
|
|
318
754
|
export interface MPCTx {
|
|
319
755
|
serializedTx: string;
|
|
320
|
-
scanIndex
|
|
756
|
+
scanIndex?: number;
|
|
321
757
|
coin?: string;
|
|
322
758
|
signableHex?: string;
|
|
323
759
|
derivationPath?: string;
|
|
324
760
|
parsedTx?: ParsedTransaction;
|
|
325
|
-
feeInfo?:
|
|
326
|
-
fee: number;
|
|
327
|
-
feeString: string;
|
|
328
|
-
};
|
|
761
|
+
feeInfo?: Required<PrebuildTransactionFeeInfo>;
|
|
329
762
|
coinSpecific?: {
|
|
330
763
|
firstValid?: number;
|
|
331
764
|
maxDuration?: number;
|
|
332
765
|
commonKeychain?: string;
|
|
333
766
|
lastScanIndex?: number;
|
|
334
767
|
};
|
|
768
|
+
recoveryAmount?: string;
|
|
769
|
+
signature?: string;
|
|
335
770
|
}
|
|
336
771
|
export interface MPCRecoveryOptions {
|
|
337
772
|
userKey?: string;
|
|
@@ -341,6 +776,10 @@ export interface MPCRecoveryOptions {
|
|
|
341
776
|
walletPassphrase?: string;
|
|
342
777
|
seed?: string;
|
|
343
778
|
index?: number;
|
|
779
|
+
startingScanIndex?: number;
|
|
780
|
+
scan?: number;
|
|
781
|
+
tokenContractAddress?: string;
|
|
782
|
+
apiKey?: string;
|
|
344
783
|
}
|
|
345
784
|
export interface MPCConsolidationRecoveryOptions {
|
|
346
785
|
userKey?: string;
|
|
@@ -350,6 +789,7 @@ export interface MPCConsolidationRecoveryOptions {
|
|
|
350
789
|
startingScanIndex?: number;
|
|
351
790
|
endingScanIndex?: number;
|
|
352
791
|
seed?: string;
|
|
792
|
+
tokenContractAddress?: string;
|
|
353
793
|
}
|
|
354
794
|
export interface MPCSweepTxs {
|
|
355
795
|
txRequests: RecoveryTxRequest[];
|
|
@@ -383,10 +823,12 @@ interface SignatureShare {
|
|
|
383
823
|
}
|
|
384
824
|
interface Ovc {
|
|
385
825
|
eddsaSignature: Signature;
|
|
826
|
+
ecdsaSignature?: EcdsaSignature;
|
|
827
|
+
eddsaMpcv2Signature?: string;
|
|
386
828
|
}
|
|
387
829
|
export interface MPCTxs {
|
|
388
830
|
transactions: MPCTx[];
|
|
389
|
-
lastScanIndex
|
|
831
|
+
lastScanIndex?: number;
|
|
390
832
|
}
|
|
391
833
|
export interface OvcInput {
|
|
392
834
|
address: string;
|
|
@@ -398,7 +840,7 @@ export interface OvcOutput {
|
|
|
398
840
|
valueString: string;
|
|
399
841
|
coinName?: string;
|
|
400
842
|
}
|
|
401
|
-
export
|
|
843
|
+
export type BackupGpgKey = SerializedKeyPair<string> | Key;
|
|
402
844
|
/**
|
|
403
845
|
* Common Interface for implementing signature scheme specific
|
|
404
846
|
* util functions
|
|
@@ -414,19 +856,17 @@ export interface ITssUtils<KeyShare = EDDSA.KeyShare> {
|
|
|
414
856
|
enterprise?: string;
|
|
415
857
|
originalPasscodeEncryptionCode?: string;
|
|
416
858
|
isThirdPartyBackup?: boolean;
|
|
859
|
+
encryptionVersion?: EncryptionVersion;
|
|
417
860
|
}): Promise<KeychainsTriplet>;
|
|
418
|
-
signTxRequest(params:
|
|
419
|
-
txRequest: string | TxRequest;
|
|
420
|
-
prv: string;
|
|
421
|
-
reqId: IRequestTracer;
|
|
422
|
-
}): Promise<TxRequest>;
|
|
861
|
+
signTxRequest(params: TssSignTxRequestParamsWithPrv): Promise<TxRequest>;
|
|
423
862
|
signTxRequestForMessage(params: TSSParams): Promise<TxRequest>;
|
|
424
|
-
signEddsaTssUsingExternalSigner(txRequest: string | TxRequest, externalSignerCommitmentGenerator: CustomCommitmentGeneratingFunction, externalSignerRShareGenerator: CustomRShareGeneratingFunction, externalSignerGShareGenerator: CustomGShareGeneratingFunction): Promise<TxRequest>;
|
|
863
|
+
signEddsaTssUsingExternalSigner(txRequest: string | TxRequest, externalSignerCommitmentGenerator: CustomCommitmentGeneratingFunction, externalSignerRShareGenerator: CustomRShareGeneratingFunction, externalSignerGShareGenerator: CustomGShareGeneratingFunction, reqId?: IRequestTracer, attestation?: TSSParams['attestation']): Promise<TxRequest>;
|
|
425
864
|
signEcdsaTssUsingExternalSigner(params: TSSParams | TSSParamsForMessage, requestType: RequestType, externalSignerPaillierModulusGetter: CustomPaillierModulusGetterFunction, externalSignerKShareGenerator: CustomKShareGeneratingFunction, externalSignerMuDeltaShareGenerator: CustomMuDeltaShareGeneratingFunction, externalSignerSShareGenerator: CustomSShareGeneratingFunction): Promise<TxRequest>;
|
|
426
865
|
createCommitmentShareFromTxRequest(params: {
|
|
427
866
|
txRequest: TxRequest;
|
|
428
867
|
prv: string;
|
|
429
868
|
walletPassphrase: string;
|
|
869
|
+
bitgoGpgPubKey: string;
|
|
430
870
|
}): Promise<{
|
|
431
871
|
userToBitgoCommitment: CommitmentShareRecord;
|
|
432
872
|
encryptedSignerShare: EncryptedSignerShareRecord;
|
|
@@ -452,6 +892,11 @@ export interface ITssUtils<KeyShare = EDDSA.KeyShare> {
|
|
|
452
892
|
recreateTxRequest(txRequestId: string, decryptedPrv: string, reqId: IRequestTracer): Promise<TxRequest>;
|
|
453
893
|
getTxRequest(txRequestId: string): Promise<TxRequest>;
|
|
454
894
|
supportedTxRequestVersions(): TxRequestVersion[];
|
|
895
|
+
supportsVerifyKey(): boolean;
|
|
896
|
+
verifyKey(params: {
|
|
897
|
+
prv: string;
|
|
898
|
+
commonKeychain: string;
|
|
899
|
+
}): Promise<boolean>;
|
|
455
900
|
}
|
|
456
901
|
export {};
|
|
457
902
|
//# sourceMappingURL=baseTypes.d.ts.map
|