@bitgo-beta/sdk-core 8.2.1-beta.21 → 8.2.1-beta.2100
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/account-lib/baseCoin/baseTransaction.d.ts +0 -1
- package/dist/src/account-lib/baseCoin/baseTransaction.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/baseTransactionBuilder.d.ts +3 -3
- package/dist/src/account-lib/baseCoin/baseTransactionBuilder.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/baseTransactionBuilder.js +4 -3
- package/dist/src/account-lib/baseCoin/ed25519KeyPair.d.ts +1 -0
- package/dist/src/account-lib/baseCoin/ed25519KeyPair.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/ed25519KeyPair.js +43 -31
- package/dist/src/account-lib/baseCoin/enum.d.ts +61 -2
- package/dist/src/account-lib/baseCoin/enum.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/enum.js +118 -6
- package/dist/src/account-lib/baseCoin/errors.d.ts +3 -0
- package/dist/src/account-lib/baseCoin/errors.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/errors.js +8 -2
- package/dist/src/account-lib/baseCoin/iface.d.ts +19 -35
- package/dist/src/account-lib/baseCoin/iface.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/iface.js +26 -18
- package/dist/src/account-lib/baseCoin/index.d.ts +1 -1
- package/dist/src/account-lib/baseCoin/index.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/index.js +8 -5
- package/dist/src/account-lib/baseCoin/messages/baseMessage.d.ts +88 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessage.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessage.js +154 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilder.d.ts +67 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilder.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilder.js +144 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilderFactory.d.ts +33 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilderFactory.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/baseMessageBuilderFactory.js +45 -0
- package/dist/src/account-lib/baseCoin/messages/iface.d.ts +164 -0
- package/dist/src/account-lib/baseCoin/messages/iface.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/iface.js +3 -0
- package/dist/src/account-lib/baseCoin/messages/index.d.ts +6 -0
- package/dist/src/account-lib/baseCoin/messages/index.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/index.js +22 -0
- package/dist/src/account-lib/baseCoin/messages/simple/index.d.ts +3 -0
- package/dist/src/account-lib/baseCoin/messages/simple/index.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/simple/index.js +19 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessage.d.ts +13 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessage.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessage.js +28 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessageBuilder.d.ts +21 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessageBuilder.d.ts.map +1 -0
- package/dist/src/account-lib/baseCoin/messages/simple/simpleMessageBuilder.js +28 -0
- package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.d.ts +1 -2
- package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.d.ts.map +1 -1
- package/dist/src/account-lib/baseCoin/secp256k1ExtendedKeyPair.js +38 -26
- package/dist/src/account-lib/index.d.ts +0 -1
- package/dist/src/account-lib/index.d.ts.map +1 -1
- package/dist/src/account-lib/index.js +23 -10
- package/dist/src/account-lib/mpc/curves/ed25519.d.ts +4 -18
- package/dist/src/account-lib/mpc/curves/ed25519.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/curves/ed25519.js +6 -60
- package/dist/src/account-lib/mpc/index.d.ts +4 -4
- package/dist/src/account-lib/mpc/index.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/index.js +11 -7
- package/dist/src/account-lib/mpc/shamir.d.ts +5 -37
- package/dist/src/account-lib/mpc/shamir.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/shamir.js +6 -130
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts +40 -11
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/ecdsa/ecdsa.js +521 -378
- package/dist/src/account-lib/mpc/tss/ecdsa/index.js +23 -9
- package/dist/src/account-lib/mpc/tss/ecdsa/rangeproof.d.ts +2 -2
- package/dist/src/account-lib/mpc/tss/ecdsa/rangeproof.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/ecdsa/rangeproof.js +3 -3
- package/dist/src/account-lib/mpc/tss/ecdsa/types.d.ts +73 -52
- package/dist/src/account-lib/mpc/tss/ecdsa/types.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/ecdsa/types.js +1 -1
- package/dist/src/account-lib/mpc/tss/eddsa/eddsa.d.ts +1 -2
- package/dist/src/account-lib/mpc/tss/eddsa/eddsa.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/eddsa/eddsa.js +66 -69
- package/dist/src/account-lib/mpc/tss/eddsa/index.js +23 -9
- package/dist/src/account-lib/mpc/tss/eddsa/types.d.ts +1 -4
- package/dist/src/account-lib/mpc/tss/eddsa/types.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/tss/eddsa/types.js +1 -1
- package/dist/src/account-lib/mpc/tss/index.js +23 -9
- package/dist/src/account-lib/mpc/util.d.ts +7 -1
- package/dist/src/account-lib/mpc/util.d.ts.map +1 -1
- package/dist/src/account-lib/mpc/util.js +24 -1
- package/dist/src/account-lib/staking/index.js +6 -2
- package/dist/src/account-lib/staking/utils.js +3 -3
- package/dist/src/account-lib/util/crypto.d.ts +8 -2
- package/dist/src/account-lib/util/crypto.d.ts.map +1 -1
- package/dist/src/account-lib/util/crypto.js +69 -38
- package/dist/src/api/bip32path.js +2 -3
- package/dist/src/api/index.js +6 -2
- package/dist/src/api/types.d.ts +37 -0
- package/dist/src/api/types.d.ts.map +1 -1
- package/dist/src/api/types.js +8 -1
- package/dist/src/bitgo/address-book/address-book.d.ts +61 -0
- package/dist/src/bitgo/address-book/address-book.d.ts.map +1 -0
- package/dist/src/bitgo/address-book/address-book.js +150 -0
- package/dist/src/bitgo/address-book/index.d.ts +3 -0
- package/dist/src/bitgo/address-book/index.d.ts.map +1 -0
- package/dist/src/{openssl → bitgo/address-book}/index.js +8 -3
- package/dist/src/bitgo/address-book/types.d.ts +170 -0
- package/dist/src/bitgo/address-book/types.d.ts.map +1 -0
- package/dist/src/bitgo/address-book/types.js +3 -0
- package/dist/src/bitgo/baseCoin/baseCoin.d.ts +139 -12
- package/dist/src/bitgo/baseCoin/baseCoin.d.ts.map +1 -1
- package/dist/src/bitgo/baseCoin/baseCoin.js +217 -16
- package/dist/src/bitgo/baseCoin/iBaseCoin.d.ts +366 -29
- package/dist/src/bitgo/baseCoin/iBaseCoin.d.ts.map +1 -1
- package/dist/src/bitgo/baseCoin/iBaseCoin.js +14 -3
- package/dist/src/bitgo/baseCoin/index.js +6 -2
- package/dist/src/bitgo/bip32util.d.ts +3 -16
- package/dist/src/bitgo/bip32util.d.ts.map +1 -1
- package/dist/src/bitgo/bip32util.js +4 -56
- package/dist/src/bitgo/bitcoin.d.ts +0 -1
- package/dist/src/bitgo/bitcoin.d.ts.map +1 -1
- package/dist/src/bitgo/bitcoin.js +26 -13
- package/dist/src/bitgo/bitgoBase.d.ts +19 -5
- package/dist/src/bitgo/bitgoBase.d.ts.map +1 -1
- package/dist/src/bitgo/bitgoBase.js +1 -1
- package/dist/src/bitgo/coinFactory.d.ts +24 -3
- package/dist/src/bitgo/coinFactory.d.ts.map +1 -1
- package/dist/src/bitgo/coinFactory.js +35 -3
- package/dist/src/bitgo/config.d.ts +3 -89
- package/dist/src/bitgo/config.d.ts.map +1 -1
- package/dist/src/bitgo/config.js +26 -15
- package/dist/src/bitgo/defi/defiVault.d.ts +171 -0
- package/dist/src/bitgo/defi/defiVault.d.ts.map +1 -0
- package/dist/src/bitgo/defi/defiVault.js +445 -0
- package/dist/src/bitgo/defi/iDefiVault.d.ts +101 -0
- package/dist/src/bitgo/defi/iDefiVault.d.ts.map +1 -0
- package/dist/src/bitgo/defi/iDefiVault.js +6 -0
- package/dist/src/bitgo/defi/index.d.ts +3 -0
- package/dist/src/bitgo/defi/index.d.ts.map +1 -0
- package/dist/src/bitgo/defi/index.js +22 -0
- package/dist/src/bitgo/ecdh.d.ts +0 -1
- package/dist/src/bitgo/ecdh.d.ts.map +1 -1
- package/dist/src/bitgo/ecdh.js +26 -13
- package/dist/src/bitgo/enterprise/enterprise.d.ts +22 -14
- package/dist/src/bitgo/enterprise/enterprise.d.ts.map +1 -1
- package/dist/src/bitgo/enterprise/enterprise.js +72 -31
- package/dist/src/bitgo/enterprise/enterprises.d.ts +6 -0
- package/dist/src/bitgo/enterprise/enterprises.d.ts.map +1 -1
- package/dist/src/bitgo/enterprise/enterprises.js +48 -9
- package/dist/src/bitgo/enterprise/iEnterprise.d.ts +9 -7
- package/dist/src/bitgo/enterprise/iEnterprise.d.ts.map +1 -1
- package/dist/src/bitgo/enterprise/iEnterprise.js +1 -1
- package/dist/src/bitgo/enterprise/iEnterprises.d.ts +2 -0
- package/dist/src/bitgo/enterprise/iEnterprises.d.ts.map +1 -1
- package/dist/src/bitgo/enterprise/iEnterprises.js +1 -1
- package/dist/src/bitgo/enterprise/index.js +6 -2
- package/dist/src/bitgo/environments.d.ts +88 -5
- package/dist/src/bitgo/environments.d.ts.map +1 -1
- package/dist/src/bitgo/environments.js +436 -30
- package/dist/src/bitgo/errors.d.ts +189 -1
- package/dist/src/bitgo/errors.d.ts.map +1 -1
- package/dist/src/bitgo/errors.js +187 -3
- package/dist/src/bitgo/evm/evmUtils.d.ts +26 -0
- package/dist/src/bitgo/evm/evmUtils.d.ts.map +1 -0
- package/dist/src/bitgo/evm/evmUtils.js +50 -0
- package/dist/src/bitgo/index.d.ts +6 -1
- package/dist/src/bitgo/index.d.ts.map +1 -1
- package/dist/src/bitgo/index.js +32 -11
- package/dist/src/bitgo/inscriptionBuilder/iInscriptionBuilder.d.ts +3 -3
- package/dist/src/bitgo/inscriptionBuilder/iInscriptionBuilder.d.ts.map +1 -1
- package/dist/src/bitgo/inscriptionBuilder/iInscriptionBuilder.js +1 -1
- package/dist/src/bitgo/inscriptionBuilder/index.js +6 -2
- package/dist/src/bitgo/internal/index.js +6 -2
- package/dist/src/bitgo/internal/internal.js +5 -6
- package/dist/src/bitgo/internal/keycard.d.ts +13 -8
- package/dist/src/bitgo/internal/keycard.d.ts.map +1 -1
- package/dist/src/bitgo/internal/keycard.js +63 -48
- package/dist/src/bitgo/keychain/decryptKeychain.d.ts +14 -0
- package/dist/src/bitgo/keychain/decryptKeychain.d.ts.map +1 -0
- package/dist/src/bitgo/keychain/decryptKeychain.js +36 -0
- package/dist/src/bitgo/keychain/iKeychains.d.ts +189 -10
- package/dist/src/bitgo/keychain/iKeychains.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/iKeychains.js +2 -2
- package/dist/src/bitgo/keychain/index.d.ts +1 -0
- package/dist/src/bitgo/keychain/index.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/index.js +7 -2
- package/dist/src/bitgo/keychain/keychains.d.ts +106 -13
- package/dist/src/bitgo/keychain/keychains.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/keychains.js +451 -93
- package/dist/src/bitgo/keychain/ovcJsonCodec.d.ts +126 -91
- package/dist/src/bitgo/keychain/ovcJsonCodec.d.ts.map +1 -1
- package/dist/src/bitgo/keychain/ovcJsonCodec.js +53 -32
- package/dist/src/bitgo/legacyBitcoin.d.ts +0 -1
- package/dist/src/bitgo/legacyBitcoin.d.ts.map +1 -1
- package/dist/src/bitgo/legacyBitcoin.js +27 -13
- package/dist/src/bitgo/lightning/lightningWalletUtil.d.ts +7 -0
- package/dist/src/bitgo/lightning/lightningWalletUtil.d.ts.map +1 -0
- package/dist/src/bitgo/lightning/lightningWalletUtil.js +25 -0
- package/dist/src/bitgo/market/iMarkets.d.ts +2 -2
- package/dist/src/bitgo/market/iMarkets.d.ts.map +1 -1
- package/dist/src/bitgo/market/index.js +6 -2
- package/dist/src/bitgo/market/markets.js +23 -9
- package/dist/src/bitgo/pendingApproval/iPendingApproval.d.ts +7 -1
- package/dist/src/bitgo/pendingApproval/iPendingApproval.d.ts.map +1 -1
- package/dist/src/bitgo/pendingApproval/iPendingApproval.js +4 -4
- package/dist/src/bitgo/pendingApproval/index.js +6 -2
- package/dist/src/bitgo/pendingApproval/pendingApproval.d.ts +20 -8
- package/dist/src/bitgo/pendingApproval/pendingApproval.d.ts.map +1 -1
- package/dist/src/bitgo/pendingApproval/pendingApproval.js +251 -110
- package/dist/src/bitgo/pendingApproval/pendingApprovals.js +23 -9
- package/dist/src/bitgo/proofs/WalletProofs.d.ts +19 -0
- package/dist/src/bitgo/proofs/WalletProofs.d.ts.map +1 -0
- package/dist/src/bitgo/proofs/WalletProofs.js +37 -0
- package/dist/src/bitgo/proofs/index.d.ts +2 -0
- package/dist/src/bitgo/proofs/index.d.ts.map +1 -0
- package/dist/src/bitgo/proofs/index.js +6 -0
- package/dist/src/bitgo/proofs/types.d.ts +80 -0
- package/dist/src/bitgo/proofs/types.d.ts.map +1 -0
- package/dist/src/bitgo/proofs/types.js +80 -0
- package/dist/src/bitgo/recovery/index.js +6 -2
- package/dist/src/bitgo/recovery/initiate.d.ts +20 -4
- package/dist/src/bitgo/recovery/initiate.d.ts.map +1 -1
- package/dist/src/bitgo/recovery/initiate.js +49 -41
- package/dist/src/bitgo/safe/derivableEd25519Pub.d.ts +13 -0
- package/dist/src/bitgo/safe/derivableEd25519Pub.d.ts.map +1 -0
- package/dist/src/bitgo/safe/derivableEd25519Pub.js +35 -0
- package/dist/src/bitgo/safe/iSafe.d.ts +124 -0
- package/dist/src/bitgo/safe/iSafe.d.ts.map +1 -0
- package/dist/src/bitgo/safe/iSafe.js +3 -0
- package/dist/src/bitgo/safe/iSafes.d.ts +94 -0
- package/dist/src/bitgo/safe/iSafes.d.ts.map +1 -0
- package/dist/src/bitgo/safe/iSafes.js +3 -0
- package/dist/src/bitgo/safe/index.d.ts +8 -0
- package/dist/src/bitgo/safe/index.d.ts.map +1 -0
- package/dist/src/bitgo/safe/index.js +24 -0
- package/dist/src/bitgo/safe/recovery.d.ts +92 -0
- package/dist/src/bitgo/safe/recovery.d.ts.map +1 -0
- package/dist/src/bitgo/safe/recovery.js +148 -0
- package/dist/src/bitgo/safe/rootCoin.d.ts +15 -0
- package/dist/src/bitgo/safe/rootCoin.d.ts.map +1 -0
- package/dist/src/bitgo/safe/rootCoin.js +47 -0
- package/dist/src/bitgo/safe/safe.d.ts +88 -0
- package/dist/src/bitgo/safe/safe.d.ts.map +1 -0
- package/dist/src/bitgo/safe/safe.js +409 -0
- package/dist/src/bitgo/safe/safes.d.ts +102 -0
- package/dist/src/bitgo/safe/safes.d.ts.map +1 -0
- package/dist/src/bitgo/safe/safes.js +281 -0
- package/dist/src/bitgo/staking/goStakingInterfaces.d.ts +136 -0
- package/dist/src/bitgo/staking/goStakingInterfaces.d.ts.map +1 -0
- package/dist/src/bitgo/staking/goStakingInterfaces.js +3 -0
- package/dist/src/bitgo/staking/goStakingWallet.d.ts +62 -0
- package/dist/src/bitgo/staking/goStakingWallet.d.ts.map +1 -0
- package/dist/src/bitgo/staking/goStakingWallet.js +141 -0
- package/dist/src/bitgo/staking/iGoStakingWallet.d.ts +17 -0
- package/dist/src/bitgo/staking/iGoStakingWallet.d.ts.map +1 -0
- package/dist/src/bitgo/staking/iGoStakingWallet.js +3 -0
- package/dist/src/bitgo/staking/iStakingWallet.d.ts +197 -8
- package/dist/src/bitgo/staking/iStakingWallet.d.ts.map +1 -1
- package/dist/src/bitgo/staking/iStakingWallet.js +2 -2
- package/dist/src/bitgo/staking/index.d.ts +3 -0
- package/dist/src/bitgo/staking/index.d.ts.map +1 -1
- package/dist/src/bitgo/staking/index.js +9 -2
- package/dist/src/bitgo/staking/stakingWallet.d.ts +27 -8
- package/dist/src/bitgo/staking/stakingWallet.d.ts.map +1 -1
- package/dist/src/bitgo/staking/stakingWallet.js +161 -7
- package/dist/src/bitgo/trading/iTradingAccount.d.ts +15 -33
- package/dist/src/bitgo/trading/iTradingAccount.d.ts.map +1 -1
- package/dist/src/bitgo/trading/iTradingAccount.js +1 -1
- package/dist/src/bitgo/trading/index.d.ts +1 -15
- package/dist/src/bitgo/trading/index.d.ts.map +1 -1
- package/dist/src/bitgo/trading/index.js +7 -17
- package/dist/src/bitgo/trading/network/decrypt-aes-gcm.d.ts +8 -0
- package/dist/src/bitgo/trading/network/decrypt-aes-gcm.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/decrypt-aes-gcm.js +31 -0
- package/dist/src/bitgo/trading/network/decrypt-rsa.d.ts +8 -0
- package/dist/src/bitgo/trading/network/decrypt-rsa.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/decrypt-rsa.js +23 -0
- package/dist/src/bitgo/trading/network/decrypt.d.ts +14 -0
- package/dist/src/bitgo/trading/network/decrypt.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/decrypt.js +23 -0
- package/dist/src/bitgo/trading/network/encrypt-aes-gcm.d.ts +8 -0
- package/dist/src/bitgo/trading/network/encrypt-aes-gcm.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/encrypt-aes-gcm.js +25 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa-browser.d.ts +8 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa-browser.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa-browser.js +65 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa.d.ts +8 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/encrypt-rsa.js +23 -0
- package/dist/src/bitgo/trading/network/encrypt.d.ts +37 -0
- package/dist/src/bitgo/trading/network/encrypt.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/encrypt.js +58 -0
- package/dist/src/bitgo/trading/network/index.d.ts +5 -0
- package/dist/src/bitgo/trading/network/index.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/index.js +21 -0
- package/dist/src/bitgo/trading/network/network.d.ts +36 -0
- package/dist/src/bitgo/trading/network/network.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/network.js +94 -0
- package/dist/src/bitgo/trading/network/types.d.ts +277 -0
- package/dist/src/bitgo/trading/network/types.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/types.js +3 -0
- package/dist/src/bitgo/trading/network/utils.d.ts +20 -0
- package/dist/src/bitgo/trading/network/utils.d.ts.map +1 -0
- package/dist/src/bitgo/trading/network/utils.js +54 -0
- package/dist/src/bitgo/trading/tradingAccount.d.ts +23 -33
- package/dist/src/bitgo/trading/tradingAccount.d.ts.map +1 -1
- package/dist/src/bitgo/trading/tradingAccount.js +58 -97
- package/dist/src/bitgo/tss/bitgoPubKeys.d.ts +49 -0
- package/dist/src/bitgo/tss/bitgoPubKeys.d.ts.map +1 -0
- package/dist/src/bitgo/tss/bitgoPubKeys.js +92 -0
- package/dist/src/bitgo/tss/common.d.ts +52 -6
- package/dist/src/bitgo/tss/common.d.ts.map +1 -1
- package/dist/src/bitgo/tss/common.js +144 -15
- package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts +6 -4
- package/dist/src/bitgo/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/bitgo/tss/ecdsa/ecdsa.js +85 -81
- package/dist/src/bitgo/tss/ecdsa/ecdsaMPCv2.d.ts +15 -0
- package/dist/src/bitgo/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/tss/ecdsa/ecdsaMPCv2.js +167 -0
- package/dist/src/bitgo/tss/ecdsa/index.d.ts +1 -0
- package/dist/src/bitgo/tss/ecdsa/index.d.ts.map +1 -1
- package/dist/src/bitgo/tss/ecdsa/index.js +25 -10
- package/dist/src/bitgo/tss/ecdsa/types.d.ts +27 -27
- package/dist/src/bitgo/tss/ecdsa/types.d.ts.map +1 -1
- package/dist/src/bitgo/tss/ecdsa/types.js +3 -3
- package/dist/src/bitgo/tss/eddsa/eddsa.d.ts +19 -9
- package/dist/src/bitgo/tss/eddsa/eddsa.d.ts.map +1 -1
- package/dist/src/bitgo/tss/eddsa/eddsa.js +56 -38
- package/dist/src/bitgo/tss/eddsa/eddsaMPCv2.d.ts +42 -0
- package/dist/src/bitgo/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/tss/eddsa/eddsaMPCv2.js +104 -0
- package/dist/src/bitgo/tss/eddsa/index.js +23 -9
- package/dist/src/bitgo/tss/eddsa/types.d.ts +4 -4
- package/dist/src/bitgo/tss/eddsa/types.d.ts.map +1 -1
- package/dist/src/bitgo/tss/index.d.ts +3 -2
- package/dist/src/bitgo/tss/index.d.ts.map +1 -1
- package/dist/src/bitgo/tss/index.js +26 -10
- package/dist/src/bitgo/tss/redpallas/redpallasMPCv2.d.ts +79 -0
- package/dist/src/bitgo/tss/redpallas/redpallasMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/tss/redpallas/redpallasMPCv2.js +179 -0
- package/dist/src/bitgo/tss/types.d.ts +19 -0
- package/dist/src/bitgo/tss/types.d.ts.map +1 -1
- package/dist/src/bitgo/tss/types.js +2 -2
- package/dist/src/bitgo/types.d.ts +3 -3
- package/dist/src/bitgo/types.d.ts.map +1 -1
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.d.ts +14 -0
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.d.ts.map +1 -1
- package/dist/src/bitgo/utils/abstractUtxoCoinUtil.js +87 -10
- package/dist/src/bitgo/utils/codecProps.d.ts +7 -0
- package/dist/src/bitgo/utils/codecProps.d.ts.map +1 -0
- package/dist/src/bitgo/utils/codecProps.js +54 -0
- package/dist/src/bitgo/utils/codecs.d.ts +11 -0
- package/dist/src/bitgo/utils/codecs.d.ts.map +1 -0
- package/dist/src/bitgo/utils/codecs.js +59 -0
- package/dist/src/bitgo/utils/decode.d.ts.map +1 -1
- package/dist/src/bitgo/utils/decode.js +30 -16
- package/dist/src/bitgo/utils/index.d.ts +5 -2
- package/dist/src/bitgo/utils/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/index.js +28 -11
- package/dist/src/bitgo/utils/messageTypes.d.ts +46 -0
- package/dist/src/bitgo/utils/messageTypes.d.ts.map +1 -0
- package/dist/src/bitgo/utils/messageTypes.js +23 -0
- package/dist/src/bitgo/utils/mpcUtils.d.ts +4 -4
- package/dist/src/bitgo/utils/mpcUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/mpcUtils.js +208 -14
- package/dist/src/bitgo/utils/notEmpty.d.ts +2 -0
- package/dist/src/bitgo/utils/notEmpty.d.ts.map +1 -0
- package/dist/src/bitgo/utils/notEmpty.js +7 -0
- package/dist/src/bitgo/utils/opengpgUtils.d.ts +13 -9
- package/dist/src/bitgo/utils/opengpgUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/opengpgUtils.js +87 -73
- package/dist/src/bitgo/utils/postWithCodec.d.ts +18 -0
- package/dist/src/bitgo/utils/postWithCodec.d.ts.map +1 -0
- package/dist/src/bitgo/utils/postWithCodec.js +25 -0
- package/dist/src/bitgo/utils/promise-utils.d.ts +1 -1
- package/dist/src/bitgo/utils/promise-utils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/promise-utils.js +2 -3
- package/dist/src/bitgo/utils/siws.d.ts +17 -0
- package/dist/src/bitgo/utils/siws.d.ts.map +1 -0
- package/dist/src/bitgo/utils/siws.js +171 -0
- package/dist/src/bitgo/utils/transactionUtils.d.ts +9 -0
- package/dist/src/bitgo/utils/transactionUtils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/transactionUtils.js +29 -0
- package/dist/src/bitgo/utils/triple.d.ts +1 -1
- package/dist/src/bitgo/utils/triple.d.ts.map +1 -1
- package/dist/src/bitgo/utils/triple.js +2 -3
- package/dist/src/bitgo/utils/tss/addressVerification.d.ts +62 -0
- package/dist/src/bitgo/utils/tss/addressVerification.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/addressVerification.js +93 -0
- package/dist/src/bitgo/utils/tss/baseTSSUtils.d.ts +157 -28
- package/dist/src/bitgo/utils/tss/baseTSSUtils.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/baseTSSUtils.js +381 -43
- package/dist/src/bitgo/utils/tss/baseTypes.d.ts +620 -44
- package/dist/src/bitgo/utils/tss/baseTypes.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/baseTypes.js +60 -10
- package/dist/src/bitgo/utils/tss/ecdsa/SMC/utils.d.ts +23 -0
- package/dist/src/bitgo/utils/tss/ecdsa/SMC/utils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/SMC/utils.js +157 -0
- package/dist/src/bitgo/utils/tss/ecdsa/base.d.ts +28 -0
- package/dist/src/bitgo/utils/tss/ecdsa/base.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/base.js +53 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.d.ts +63 -53
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsa.js +356 -327
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts +240 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2.js +1076 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.d.ts +16 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaMPCv2KeyGenSender.js +37 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaVrfMPCv2.d.ts +69 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaVrfMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/ecdsaVrfMPCv2.js +442 -0
- package/dist/src/bitgo/utils/tss/ecdsa/index.d.ts +5 -0
- package/dist/src/bitgo/utils/tss/ecdsa/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/index.js +11 -2
- package/dist/src/bitgo/utils/tss/ecdsa/types.d.ts +15 -9
- package/dist/src/bitgo/utils/tss/ecdsa/types.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/types.js +1 -1
- package/dist/src/bitgo/utils/tss/ecdsa/typesMPCv2.d.ts +125 -0
- package/dist/src/bitgo/utils/tss/ecdsa/typesMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/ecdsa/typesMPCv2.js +55 -0
- package/dist/src/bitgo/utils/tss/eddsa/SMC/utils.d.ts +21 -0
- package/dist/src/bitgo/utils/tss/eddsa/SMC/utils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/SMC/utils.js +119 -0
- package/dist/src/bitgo/utils/tss/eddsa/base.d.ts +18 -0
- package/dist/src/bitgo/utils/tss/eddsa/base.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/base.js +64 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsa.d.ts +59 -14
- package/dist/src/bitgo/utils/tss/eddsa/eddsa.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/eddsa.js +318 -99
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts +260 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2.js +995 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.d.ts +11 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaMPCv2KeyGenSender.js +26 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.d.ts +42 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.js +267 -0
- package/dist/src/bitgo/utils/tss/eddsa/index.d.ts +5 -0
- package/dist/src/bitgo/utils/tss/eddsa/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/index.js +30 -8
- package/dist/src/bitgo/utils/tss/eddsa/types.d.ts +15 -7
- package/dist/src/bitgo/utils/tss/eddsa/types.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/types.js +1 -1
- package/dist/src/bitgo/utils/tss/eddsa/typesEddsaMPCv2.d.ts +75 -0
- package/dist/src/bitgo/utils/tss/eddsa/typesEddsaMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/eddsa/typesEddsaMPCv2.js +44 -0
- package/dist/src/bitgo/utils/tss/index.d.ts +7 -0
- package/dist/src/bitgo/utils/tss/index.d.ts.map +1 -1
- package/dist/src/bitgo/utils/tss/index.js +31 -10
- package/dist/src/bitgo/utils/tss/keyShareEnvelope.d.ts +40 -0
- package/dist/src/bitgo/utils/tss/keyShareEnvelope.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/keyShareEnvelope.js +103 -0
- package/dist/src/bitgo/utils/tss/keyVerification.d.ts +45 -0
- package/dist/src/bitgo/utils/tss/keyVerification.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/keyVerification.js +192 -0
- package/dist/src/bitgo/utils/tss/preHashedSignable.d.ts +23 -0
- package/dist/src/bitgo/utils/tss/preHashedSignable.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/preHashedSignable.js +26 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.d.ts +42 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/recipientUtils.js +168 -0
- package/dist/src/bitgo/utils/tss/redpallas/SMC/utils.d.ts +29 -0
- package/dist/src/bitgo/utils/tss/redpallas/SMC/utils.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/redpallas/SMC/utils.js +126 -0
- package/dist/src/bitgo/utils/tss/redpallas/index.d.ts +4 -0
- package/dist/src/bitgo/utils/tss/redpallas/index.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/redpallas/index.js +20 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2.d.ts +27 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2.js +43 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2KeyGenSender.d.ts +45 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2KeyGenSender.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/redpallas/redpallasMPCv2KeyGenSender.js +55 -0
- package/dist/src/bitgo/utils/tss/serializedTxHexVerify.d.ts +8 -0
- package/dist/src/bitgo/utils/tss/serializedTxHexVerify.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/serializedTxHexVerify.js +13 -0
- package/dist/src/bitgo/utils/tss/signableConsistency.d.ts +12 -0
- package/dist/src/bitgo/utils/tss/signableConsistency.d.ts.map +1 -0
- package/dist/src/bitgo/utils/tss/signableConsistency.js +9 -0
- package/dist/src/bitgo/utils/txRequest.d.ts +10 -0
- package/dist/src/bitgo/utils/txRequest.d.ts.map +1 -0
- package/dist/src/bitgo/utils/txRequest.js +49 -0
- package/dist/src/bitgo/utils/util.js +24 -10
- package/dist/src/bitgo/utils/wallet.d.ts +7 -0
- package/dist/src/bitgo/utils/wallet.d.ts.map +1 -0
- package/dist/src/bitgo/utils/wallet.js +48 -0
- package/dist/src/bitgo/v1Wallets.d.ts +170 -0
- package/dist/src/bitgo/v1Wallets.d.ts.map +1 -0
- package/dist/src/bitgo/v1Wallets.js +3 -0
- package/dist/src/bitgo/wallet/BuildParams.d.ts +201 -0
- package/dist/src/bitgo/wallet/BuildParams.d.ts.map +1 -0
- package/dist/src/bitgo/wallet/BuildParams.js +202 -0
- package/dist/src/bitgo/wallet/iWallet.d.ts +682 -30
- package/dist/src/bitgo/wallet/iWallet.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/iWallet.js +1 -1
- package/dist/src/bitgo/wallet/iWallets.d.ts +325 -19
- package/dist/src/bitgo/wallet/iWallets.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/iWallets.js +84 -3
- package/dist/src/bitgo/wallet/index.d.ts +1 -0
- package/dist/src/bitgo/wallet/index.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/index.js +7 -2
- package/dist/src/bitgo/wallet/safeKeychain.d.ts +75 -0
- package/dist/src/bitgo/wallet/safeKeychain.d.ts.map +1 -0
- package/dist/src/bitgo/wallet/safeKeychain.js +151 -0
- package/dist/src/bitgo/wallet/wallet.d.ts +485 -29
- package/dist/src/bitgo/wallet/wallet.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/wallet.js +2723 -478
- package/dist/src/bitgo/wallet/wallets.d.ts +124 -9
- package/dist/src/bitgo/wallet/wallets.d.ts.map +1 -1
- package/dist/src/bitgo/wallet/wallets.js +1398 -181
- package/dist/src/bitgo/walletUtil/iMessageProvider.d.ts +12 -0
- package/dist/src/bitgo/walletUtil/iMessageProvider.d.ts.map +1 -0
- package/dist/src/bitgo/walletUtil/iMessageProvider.js +3 -0
- package/dist/src/bitgo/walletUtil/index.d.ts +3 -0
- package/dist/src/bitgo/walletUtil/index.d.ts.map +1 -0
- package/dist/src/bitgo/walletUtil/index.js +19 -0
- package/dist/src/bitgo/walletUtil/midnightMessageProvider.d.ts +22 -0
- package/dist/src/bitgo/walletUtil/midnightMessageProvider.d.ts.map +1 -0
- package/dist/src/bitgo/walletUtil/midnightMessageProvider.js +95 -0
- package/dist/src/bitgo/walletUtil/signAccountBasedMidnightClaimMessages.d.ts +9 -0
- package/dist/src/bitgo/walletUtil/signAccountBasedMidnightClaimMessages.d.ts.map +1 -0
- package/dist/src/bitgo/walletUtil/signAccountBasedMidnightClaimMessages.js +72 -0
- package/dist/src/bitgo/walletUtil/utxoMessageProof.d.ts +15 -0
- package/dist/src/bitgo/walletUtil/utxoMessageProof.d.ts.map +1 -0
- package/dist/src/bitgo/walletUtil/utxoMessageProof.js +40 -0
- package/dist/src/bitgo/webauthn/base64url.d.ts +16 -0
- package/dist/src/bitgo/webauthn/base64url.d.ts.map +1 -0
- package/dist/src/bitgo/webauthn/base64url.js +27 -0
- package/dist/src/bitgo/webauthn/deriveEnterpriseSalt.d.ts +18 -0
- package/dist/src/bitgo/webauthn/deriveEnterpriseSalt.d.ts.map +1 -0
- package/dist/src/bitgo/webauthn/deriveEnterpriseSalt.js +26 -0
- package/dist/src/bitgo/webauthn/derivePassword.d.ts +11 -0
- package/dist/src/bitgo/webauthn/derivePassword.d.ts.map +1 -0
- package/dist/src/bitgo/webauthn/derivePassword.js +16 -0
- package/dist/src/bitgo/webauthn/index.d.ts +5 -0
- package/dist/src/bitgo/webauthn/index.d.ts.map +1 -0
- package/dist/src/bitgo/webauthn/index.js +21 -0
- package/dist/src/bitgo/webauthn/types.d.ts +18 -0
- package/dist/src/bitgo/webauthn/types.d.ts.map +1 -0
- package/dist/src/bitgo/webauthn/types.js +3 -0
- package/dist/src/bitgo/webhook/index.js +6 -2
- package/dist/src/bitgo/webhook/webhooks.js +23 -9
- package/dist/src/coins/fiat.d.ts +45 -0
- package/dist/src/coins/fiat.d.ts.map +1 -0
- package/dist/src/coins/fiat.js +94 -0
- package/dist/src/coins/index.d.ts +1 -6
- package/dist/src/coins/index.d.ts.map +1 -1
- package/dist/src/coins/index.js +7 -8
- package/dist/src/coins/ofc.d.ts +21 -2
- package/dist/src/coins/ofc.d.ts.map +1 -1
- package/dist/src/coins/ofc.js +29 -3
- package/dist/src/coins/ofcToken.d.ts +15 -4
- package/dist/src/coins/ofcToken.d.ts.map +1 -1
- package/dist/src/coins/ofcToken.js +43 -5
- package/dist/src/coins/susd.d.ts +3 -2
- package/dist/src/coins/susd.d.ts.map +1 -1
- package/dist/src/coins/susd.js +5 -1
- package/dist/src/common.js +27 -13
- package/dist/src/index.d.ts +13 -1
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +42 -11
- package/dist/src/lightning.d.ts +20 -0
- package/dist/src/lightning.d.ts.map +1 -0
- package/dist/src/lightning.js +13 -0
- package/dist/src/units.js +5 -6
- package/dist/test/node.utils.d.ts +2 -0
- package/dist/test/node.utils.d.ts.map +1 -0
- package/dist/test/node.utils.js +5 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessage.d.ts +2 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessage.d.ts.map +1 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessage.js +207 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilder.d.ts +2 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilder.d.ts.map +1 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilder.js +174 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilderFactory.d.ts +2 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilderFactory.d.ts.map +1 -0
- package/dist/test/unit/account-lib/baseCoin/messages/baseMessageBuilderFactory.js +108 -0
- package/dist/test/unit/account-lib/baseCoin/messages/fixtures.d.ts +46 -0
- package/dist/test/unit/account-lib/baseCoin/messages/fixtures.d.ts.map +1 -0
- package/dist/test/unit/account-lib/baseCoin/messages/fixtures.js +69 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/ecdsa.d.ts +2 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/ecdsa.d.ts.map +1 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/ecdsa.js +279 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/fixtures.d.ts +3 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/fixtures.d.ts.map +1 -0
- package/dist/test/unit/account-lib/mpc/tss/ecdsa/fixtures.js +24 -0
- package/dist/test/unit/account-lib/mpc/util.d.ts +2 -0
- package/dist/test/unit/account-lib/mpc/util.d.ts.map +1 -0
- package/dist/test/unit/account-lib/mpc/util.js +53 -0
- package/dist/test/unit/bitgo/address-book/address-book.d.ts +2 -0
- package/dist/test/unit/bitgo/address-book/address-book.d.ts.map +1 -0
- package/dist/test/unit/bitgo/address-book/address-book.js +159 -0
- package/dist/test/unit/bitgo/defi/defiVault.d.ts +2 -0
- package/dist/test/unit/bitgo/defi/defiVault.d.ts.map +1 -0
- package/dist/test/unit/bitgo/defi/defiVault.js +863 -0
- package/dist/test/unit/bitgo/environment.d.ts +2 -0
- package/dist/test/unit/bitgo/environment.d.ts.map +1 -0
- package/dist/test/unit/bitgo/environment.js +38 -0
- package/dist/test/unit/bitgo/errors.d.ts +2 -0
- package/dist/test/unit/bitgo/errors.d.ts.map +1 -0
- package/dist/test/unit/bitgo/errors.js +262 -0
- package/dist/test/unit/bitgo/keychain/keychains.d.ts +2 -0
- package/dist/test/unit/bitgo/keychain/keychains.d.ts.map +1 -0
- package/dist/test/unit/bitgo/keychain/keychains.js +426 -0
- package/dist/test/unit/bitgo/recovery/initiate.d.ts +2 -0
- package/dist/test/unit/bitgo/recovery/initiate.d.ts.map +1 -0
- package/dist/test/unit/bitgo/recovery/initiate.js +159 -0
- package/dist/test/unit/bitgo/safe/derivableEd25519Pub.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/derivableEd25519Pub.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/derivableEd25519Pub.js +133 -0
- package/dist/test/unit/bitgo/safe/fixtures/derivableEd25519Pub.json +72 -0
- package/dist/test/unit/bitgo/safe/recovery.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/recovery.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/recovery.js +313 -0
- package/dist/test/unit/bitgo/safe/rootCoin.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/rootCoin.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/rootCoin.js +13 -0
- package/dist/test/unit/bitgo/safe/safe.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/safe.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/safe.js +585 -0
- package/dist/test/unit/bitgo/safe/safeDerivation.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/safeDerivation.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/safeDerivation.js +75 -0
- package/dist/test/unit/bitgo/safe/safes.d.ts +2 -0
- package/dist/test/unit/bitgo/safe/safes.d.ts.map +1 -0
- package/dist/test/unit/bitgo/safe/safes.js +376 -0
- package/dist/test/unit/bitgo/trading/network/encrypt.d.ts +2 -0
- package/dist/test/unit/bitgo/trading/network/encrypt.d.ts.map +1 -0
- package/dist/test/unit/bitgo/trading/network/encrypt.js +71 -0
- package/dist/test/unit/bitgo/trading/network/network.test.d.ts +2 -0
- package/dist/test/unit/bitgo/trading/network/network.test.d.ts.map +1 -0
- package/dist/test/unit/bitgo/trading/network/network.test.js +136 -0
- package/dist/test/unit/bitgo/trading/tradingAccount.d.ts +2 -0
- package/dist/test/unit/bitgo/trading/tradingAccount.d.ts.map +1 -0
- package/dist/test/unit/bitgo/trading/tradingAccount.js +192 -0
- package/dist/test/unit/bitgo/tss/bitgoPubKeys.d.ts +2 -0
- package/dist/test/unit/bitgo/tss/bitgoPubKeys.d.ts.map +1 -0
- package/dist/test/unit/bitgo/tss/bitgoPubKeys.js +66 -0
- package/dist/test/unit/bitgo/tss/common.d.ts +2 -0
- package/dist/test/unit/bitgo/tss/common.d.ts.map +1 -0
- package/dist/test/unit/bitgo/tss/common.js +77 -0
- package/dist/test/unit/bitgo/tss/redpallas/redpallasMPCv2.d.ts +2 -0
- package/dist/test/unit/bitgo/tss/redpallas/redpallasMPCv2.d.ts.map +1 -0
- package/dist/test/unit/bitgo/tss/redpallas/redpallasMPCv2.js +249 -0
- package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/abstractUtxoCoinUtil.js +66 -0
- package/dist/test/unit/bitgo/utils/messageTypes.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/messageTypes.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/messageTypes.js +64 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.unwrap.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.unwrap.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.unwrap.js +109 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.wrapApprove.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.wrapApprove.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/mpcUtils.wrapApprove.js +106 -0
- package/dist/test/unit/bitgo/utils/notEmpty.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/notEmpty.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/notEmpty.js +15 -0
- package/dist/test/unit/bitgo/utils/postWithCodec.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/postWithCodec.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/postWithCodec.js +73 -0
- package/dist/test/unit/bitgo/utils/siws.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/siws.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/siws.js +206 -0
- package/dist/test/unit/bitgo/utils/tss/addressVerification.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/addressVerification.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/addressVerification.js +251 -0
- package/dist/test/unit/bitgo/utils/tss/baseTSSUtils.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/baseTSSUtils.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/baseTSSUtils.js +348 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaEncryptionVersion.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaEncryptionVersion.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaEncryptionVersion.js +94 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaMPCv2.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/ecdsaMPCv2.js +1068 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/gpgKeys.d.ts +5 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/gpgKeys.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/ecdsa/gpgKeys.js +36 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaExternalSigner.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaExternalSigner.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaExternalSigner.js +158 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaMPCv2.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaMPCv2.js +2410 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/eddsaVrfMPCv2.js +549 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/smcUtil.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/smcUtil.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/eddsa/smcUtil.js +376 -0
- package/dist/test/unit/bitgo/utils/tss/keyShareEnvelope.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/keyShareEnvelope.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/keyShareEnvelope.js +83 -0
- package/dist/test/unit/bitgo/utils/tss/keyVerification.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/keyVerification.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/keyVerification.js +229 -0
- package/dist/test/unit/bitgo/utils/tss/preHashedSignable.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/preHashedSignable.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/preHashedSignable.js +55 -0
- package/dist/test/unit/bitgo/utils/tss/recipientUtils.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/recipientUtils.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/recipientUtils.js +462 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/redpallasMPCv2.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/redpallasMPCv2.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/redpallasMPCv2.js +80 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/smcUtil.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/smcUtil.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/redpallas/smcUtil.js +279 -0
- package/dist/test/unit/bitgo/utils/tss/redpallasBitgoGpgKey.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/tss/redpallasBitgoGpgKey.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/tss/redpallasBitgoGpgKey.js +111 -0
- package/dist/test/unit/bitgo/utils/txRequest.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/txRequest.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/txRequest.js +179 -0
- package/dist/test/unit/bitgo/utils/wallet.d.ts +2 -0
- package/dist/test/unit/bitgo/utils/wallet.d.ts.map +1 -0
- package/dist/test/unit/bitgo/utils/wallet.js +55 -0
- package/dist/test/unit/bitgo/wallet/BuildParams.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/BuildParams.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/BuildParams.js +154 -0
- package/dist/test/unit/bitgo/wallet/SendTransactionRequest.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/SendTransactionRequest.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/SendTransactionRequest.js +114 -0
- package/dist/test/unit/bitgo/wallet/getAccountResources.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/getAccountResources.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/getAccountResources.js +133 -0
- package/dist/test/unit/bitgo/wallet/getPotentialStuckTxs.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/getPotentialStuckTxs.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/getPotentialStuckTxs.js +88 -0
- package/dist/test/unit/bitgo/wallet/getResourceDelegations.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/getResourceDelegations.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/getResourceDelegations.js +118 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletAddressCreation.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletAddressCreation.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletAddressCreation.js +141 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletSignTransaction.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletSignTransaction.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/ofcWalletSignTransaction.js +185 -0
- package/dist/test/unit/bitgo/wallet/prebuildTransactionTypes.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/prebuildTransactionTypes.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/prebuildTransactionTypes.js +20 -0
- package/dist/test/unit/bitgo/wallet/resourceManagement.d.ts +3 -0
- package/dist/test/unit/bitgo/wallet/resourceManagement.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/resourceManagement.js +441 -0
- package/dist/test/unit/bitgo/wallet/safeGetUserPrv.d.ts +5 -0
- package/dist/test/unit/bitgo/wallet/safeGetUserPrv.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/safeGetUserPrv.js +671 -0
- package/dist/test/unit/bitgo/wallet/safeShareWallet.d.ts +9 -0
- package/dist/test/unit/bitgo/wallet/safeShareWallet.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/safeShareWallet.js +303 -0
- package/dist/test/unit/bitgo/wallet/tokenApproval.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/tokenApproval.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/tokenApproval.js +210 -0
- package/dist/test/unit/bitgo/wallet/walletEvmAddressCreation.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletEvmAddressCreation.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletEvmAddressCreation.js +181 -0
- package/dist/test/unit/bitgo/wallet/walletOptionsCodecs.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletOptionsCodecs.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletOptionsCodecs.js +69 -0
- package/dist/test/unit/bitgo/wallet/walletTssAddressVerification.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletTssAddressVerification.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletTssAddressVerification.js +320 -0
- package/dist/test/unit/bitgo/wallet/walletVerifyKey.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletVerifyKey.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletVerifyKey.js +160 -0
- package/dist/test/unit/bitgo/wallet/walletsEncryptionVersion.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletsEncryptionVersion.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletsEncryptionVersion.js +304 -0
- package/dist/test/unit/bitgo/wallet/walletsEvmKeyring.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletsEvmKeyring.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletsEvmKeyring.js +216 -0
- package/dist/test/unit/bitgo/wallet/walletsExternalSigner.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletsExternalSigner.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletsExternalSigner.js +853 -0
- package/dist/test/unit/bitgo/wallet/walletsGoAccount.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletsGoAccount.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletsGoAccount.js +150 -0
- package/dist/test/unit/bitgo/wallet/walletsWebauthn.d.ts +2 -0
- package/dist/test/unit/bitgo/wallet/walletsWebauthn.d.ts.map +1 -0
- package/dist/test/unit/bitgo/wallet/walletsWebauthn.js +201 -0
- package/dist/test/unit/coins/ofc.d.ts +2 -0
- package/dist/test/unit/coins/ofc.d.ts.map +1 -0
- package/dist/test/unit/coins/ofc.js +124 -0
- package/dist/test/unit/lightning.d.ts +2 -0
- package/dist/test/unit/lightning.d.ts.map +1 -0
- package/dist/test/unit/lightning.js +23 -0
- package/dist/test/unit/units.d.ts +2 -0
- package/dist/test/unit/units.d.ts.map +1 -0
- package/dist/test/unit/units.js +98 -0
- package/dist/tsconfig.tsbuildinfo +1 -8340
- package/package.json +31 -24
- package/.eslintignore +0 -5
- package/CHANGELOG.md +0 -662
- package/dist/src/account-lib/baseCoin/blsKeyPair.d.ts +0 -77
- package/dist/src/account-lib/baseCoin/blsKeyPair.d.ts.map +0 -1
- package/dist/src/account-lib/baseCoin/blsKeyPair.js +0 -209
- package/dist/src/account-lib/mpc/hdTree.d.ts +0 -31
- package/dist/src/account-lib/mpc/hdTree.d.ts.map +0 -1
- package/dist/src/account-lib/mpc/hdTree.js +0 -141
- package/dist/src/account-lib/mpc/types.d.ts +0 -5
- package/dist/src/account-lib/mpc/types.d.ts.map +0 -1
- package/dist/src/account-lib/mpc/types.js +0 -3
- package/dist/src/account-lib/util/ed25519KeyDeriver.d.ts +0 -49
- package/dist/src/account-lib/util/ed25519KeyDeriver.d.ts.map +0 -1
- package/dist/src/account-lib/util/ed25519KeyDeriver.js +0 -87
- package/dist/src/bitgo/lightning/iLightning.d.ts +0 -186
- package/dist/src/bitgo/lightning/iLightning.d.ts.map +0 -1
- package/dist/src/bitgo/lightning/iLightning.js +0 -106
- package/dist/src/bitgo/lightning/index.d.ts +0 -5
- package/dist/src/bitgo/lightning/index.d.ts.map +0 -1
- package/dist/src/bitgo/lightning/index.js +0 -17
- package/dist/src/bitgo/lightning/lightning.d.ts +0 -25
- package/dist/src/bitgo/lightning/lightning.d.ts.map +0 -1
- package/dist/src/bitgo/lightning/lightning.js +0 -111
- package/dist/src/bitgo/lightning/lightningUtils.d.ts +0 -46
- package/dist/src/bitgo/lightning/lightningUtils.d.ts.map +0 -1
- package/dist/src/bitgo/lightning/lightningUtils.js +0 -133
- package/dist/src/bitgo/lightning/lnurlCodec.d.ts +0 -3
- package/dist/src/bitgo/lightning/lnurlCodec.d.ts.map +0 -1
- package/dist/src/bitgo/lightning/lnurlCodec.js +0 -28
- package/dist/src/bitgo/trading/affirmation.d.ts +0 -35
- package/dist/src/bitgo/trading/affirmation.d.ts.map +0 -1
- package/dist/src/bitgo/trading/affirmation.js +0 -53
- package/dist/src/bitgo/trading/affirmations.d.ts +0 -23
- package/dist/src/bitgo/trading/affirmations.d.ts.map +0 -1
- package/dist/src/bitgo/trading/affirmations.js +0 -45
- package/dist/src/bitgo/trading/iAffirmation.d.ts +0 -15
- package/dist/src/bitgo/trading/iAffirmation.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iAffirmation.js +0 -13
- package/dist/src/bitgo/trading/iAffirmations.d.ts +0 -10
- package/dist/src/bitgo/trading/iAffirmations.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iAffirmations.js +0 -3
- package/dist/src/bitgo/trading/iSettlement.d.ts +0 -25
- package/dist/src/bitgo/trading/iSettlement.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iSettlement.js +0 -17
- package/dist/src/bitgo/trading/iSettlements.d.ts +0 -19
- package/dist/src/bitgo/trading/iSettlements.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iSettlements.js +0 -3
- package/dist/src/bitgo/trading/iTradingPartner.d.ts +0 -14
- package/dist/src/bitgo/trading/iTradingPartner.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iTradingPartner.js +0 -17
- package/dist/src/bitgo/trading/iTradingPartners.d.ts +0 -15
- package/dist/src/bitgo/trading/iTradingPartners.d.ts.map +0 -1
- package/dist/src/bitgo/trading/iTradingPartners.js +0 -9
- package/dist/src/bitgo/trading/lock.d.ts +0 -16
- package/dist/src/bitgo/trading/lock.d.ts.map +0 -1
- package/dist/src/bitgo/trading/lock.js +0 -12
- package/dist/src/bitgo/trading/payload.d.ts +0 -22
- package/dist/src/bitgo/trading/payload.d.ts.map +0 -1
- package/dist/src/bitgo/trading/payload.js +0 -3
- package/dist/src/bitgo/trading/settlement.d.ts +0 -16
- package/dist/src/bitgo/trading/settlement.d.ts.map +0 -1
- package/dist/src/bitgo/trading/settlement.js +0 -21
- package/dist/src/bitgo/trading/settlements.d.ts +0 -32
- package/dist/src/bitgo/trading/settlements.d.ts.map +0 -1
- package/dist/src/bitgo/trading/settlements.js +0 -61
- package/dist/src/bitgo/trading/trade.d.ts +0 -29
- package/dist/src/bitgo/trading/trade.d.ts.map +0 -1
- package/dist/src/bitgo/trading/trade.js +0 -11
- package/dist/src/bitgo/trading/tradingPartner.d.ts +0 -26
- package/dist/src/bitgo/trading/tradingPartner.d.ts.map +0 -1
- package/dist/src/bitgo/trading/tradingPartner.js +0 -31
- package/dist/src/bitgo/trading/tradingPartners.d.ts +0 -24
- package/dist/src/bitgo/trading/tradingPartners.d.ts.map +0 -1
- package/dist/src/bitgo/trading/tradingPartners.js +0 -32
- package/dist/src/bitgo/utils/blsUtils.d.ts +0 -52
- package/dist/src/bitgo/utils/blsUtils.d.ts.map +0 -1
- package/dist/src/bitgo/utils/blsUtils.js +0 -237
- package/dist/src/bitgo/utils/iBlsUtils.d.ts +0 -14
- package/dist/src/bitgo/utils/iBlsUtils.d.ts.map +0 -1
- package/dist/src/bitgo/utils/iBlsUtils.js +0 -3
- package/dist/src/coins/fiateur.d.ts +0 -31
- package/dist/src/coins/fiateur.d.ts.map +0 -1
- package/dist/src/coins/fiateur.js +0 -57
- package/dist/src/coins/fiatgbp.d.ts +0 -31
- package/dist/src/coins/fiatgbp.d.ts.map +0 -1
- package/dist/src/coins/fiatgbp.js +0 -57
- package/dist/src/coins/fiatusd.d.ts +0 -31
- package/dist/src/coins/fiatusd.d.ts.map +0 -1
- package/dist/src/coins/fiatusd.js +0 -57
- package/dist/src/coins/tfiateur.d.ts +0 -11
- package/dist/src/coins/tfiateur.d.ts.map +0 -1
- package/dist/src/coins/tfiateur.js +0 -17
- package/dist/src/coins/tfiatgbp.d.ts +0 -11
- package/dist/src/coins/tfiatgbp.d.ts.map +0 -1
- package/dist/src/coins/tfiatgbp.js +0 -17
- package/dist/src/coins/tfiatusd.d.ts +0 -11
- package/dist/src/coins/tfiatusd.d.ts.map +0 -1
- package/dist/src/coins/tfiatusd.js +0 -17
- package/dist/src/openssl/index.d.ts +0 -2
- package/dist/src/openssl/index.d.ts.map +0 -1
- package/dist/src/openssl/openssl.d.ts +0 -12
- package/dist/src/openssl/openssl.d.ts.map +0 -1
- package/dist/src/openssl/openssl.js +0 -48
- package/dist/src/openssl/opensslbytes.d.ts +0 -4
- package/dist/src/openssl/opensslbytes.d.ts.map +0 -1
- package/dist/src/openssl/opensslbytes.js +0 -20
|
@@ -1,13 +1,16 @@
|
|
|
1
|
-
/// <reference types="node" />
|
|
2
1
|
import { Key, SerializedKeyPair } from 'openpgp';
|
|
3
|
-
import { IRequestTracer } from '../../../api';
|
|
4
|
-
import { KeychainsTriplet } from '../../baseCoin';
|
|
5
|
-
import { ApiKeyShare, Keychain } from '../../keychain';
|
|
6
|
-
import { ApiVersion, Memo, WalletType } from '../../wallet';
|
|
7
|
-
import { EDDSA, GShare,
|
|
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 { 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 {
|
|
10
|
-
|
|
9
|
+
import { EcdsaTypes } from '@bitgo-beta/sdk-lib-mpc';
|
|
10
|
+
import { TssEcdsaStep1ReturnMessage, TssEcdsaStep2ReturnMessage, TxRequestChallengeResponse } from '../../tss/types';
|
|
11
|
+
import { AShare, DShare, SShare } from '../../tss/ecdsa/types';
|
|
12
|
+
import { MessageStandardType } from '../messageTypes';
|
|
13
|
+
export type TxRequestVersion = 'full' | 'lite';
|
|
11
14
|
export interface HopParams {
|
|
12
15
|
paymentId?: string;
|
|
13
16
|
userReqSig?: string;
|
|
@@ -15,8 +18,9 @@ export interface HopParams {
|
|
|
15
18
|
}
|
|
16
19
|
export interface EIP1559FeeOptions {
|
|
17
20
|
gasLimit?: number;
|
|
18
|
-
maxFeePerGas
|
|
19
|
-
maxPriorityFeePerGas
|
|
21
|
+
maxFeePerGas: number;
|
|
22
|
+
maxPriorityFeePerGas: number;
|
|
23
|
+
feeToken?: string;
|
|
20
24
|
}
|
|
21
25
|
export interface FeeOption {
|
|
22
26
|
unit?: 'baseUnit' | 'cpu' | 'ram';
|
|
@@ -24,17 +28,154 @@ export interface FeeOption {
|
|
|
24
28
|
feeType?: 'base' | 'max' | 'tip';
|
|
25
29
|
gasLimit?: number;
|
|
26
30
|
gasPrice?: number;
|
|
31
|
+
feeToken?: string;
|
|
27
32
|
}
|
|
28
33
|
export interface TokenEnablement {
|
|
29
34
|
name: string;
|
|
30
35
|
address?: string;
|
|
31
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 type SolTransactionVersion = 0 | 1;
|
|
57
|
+
export interface SolV1TransactionConfig {
|
|
58
|
+
computeUnitLimit: number | null;
|
|
59
|
+
heapSize: number | null;
|
|
60
|
+
loadedAccountsDataSizeLimit: number | null;
|
|
61
|
+
priorityFee: number | null;
|
|
62
|
+
}
|
|
63
|
+
export interface SolVersionedTransactionData {
|
|
64
|
+
versionedInstructions: SolVersionedInstruction[];
|
|
65
|
+
addressLookupTables: SolAddressLookupTable[];
|
|
66
|
+
staticAccountKeys: string[];
|
|
67
|
+
messageHeader: {
|
|
68
|
+
numRequiredSignatures: number;
|
|
69
|
+
numReadonlySignedAccounts: number;
|
|
70
|
+
numReadonlyUnsignedAccounts: number;
|
|
71
|
+
};
|
|
72
|
+
recentBlockhash?: string;
|
|
73
|
+
version?: SolTransactionVersion;
|
|
74
|
+
transactionConfig?: SolV1TransactionConfig;
|
|
75
|
+
}
|
|
76
|
+
export interface aptosCustomTransactionParams {
|
|
77
|
+
moduleName: string;
|
|
78
|
+
functionName: string;
|
|
79
|
+
typeArguments?: string[];
|
|
80
|
+
functionArguments?: any[];
|
|
81
|
+
abi?: any;
|
|
82
|
+
}
|
|
83
|
+
export interface CantonCreateCommand {
|
|
84
|
+
CreateCommand: {
|
|
85
|
+
templateId: string;
|
|
86
|
+
createArguments: Record<string, unknown>;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export interface CantonExerciseCommand {
|
|
90
|
+
ExerciseCommand: {
|
|
91
|
+
templateId: string;
|
|
92
|
+
contractId?: string;
|
|
93
|
+
choice: string;
|
|
94
|
+
choiceArgument?: Record<string, unknown>;
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
export type CantonCommand = CantonCreateCommand | CantonExerciseCommand;
|
|
98
|
+
export interface CantonCommandResolveContractSpec {
|
|
99
|
+
templateId: string;
|
|
100
|
+
actAs: string[];
|
|
101
|
+
readAs?: string[];
|
|
102
|
+
injectAs: string;
|
|
103
|
+
resolveAll?: boolean;
|
|
104
|
+
}
|
|
105
|
+
export interface CantonCommandParams {
|
|
106
|
+
command: CantonCommand;
|
|
107
|
+
actAs: string[];
|
|
108
|
+
readAs?: string[];
|
|
109
|
+
resolveContracts?: CantonCommandResolveContractSpec[];
|
|
110
|
+
}
|
|
111
|
+
export declare enum ShareType {
|
|
112
|
+
R = "R",
|
|
113
|
+
Commitment = "commitment",
|
|
114
|
+
G = "G",
|
|
115
|
+
S = "S",
|
|
116
|
+
K = "K",
|
|
117
|
+
MuDelta = "MuDelta",
|
|
118
|
+
PaillierModulus = "PaillierModulus",
|
|
119
|
+
MPCv2Round1 = "MPCv2Round1",
|
|
120
|
+
MPCv2Round2 = "MPCv2Round2",
|
|
121
|
+
MPCv2Round3 = "MPCv2Round3",
|
|
122
|
+
EddsaMPCv2Round1 = "EddsaMPCv2Round1",
|
|
123
|
+
EddsaMPCv2Round2 = "EddsaMPCv2Round2",
|
|
124
|
+
EddsaMPCv2Round3 = "EddsaMPCv2Round3"
|
|
125
|
+
}
|
|
126
|
+
export declare enum MPCType {
|
|
127
|
+
EDDSA = "eddsa",
|
|
128
|
+
ECDSA = "ecdsa"
|
|
129
|
+
}
|
|
130
|
+
export interface CustomPaillierModulusGetterFunction {
|
|
131
|
+
(params: {
|
|
132
|
+
txRequest: TxRequest;
|
|
133
|
+
}): Promise<{
|
|
134
|
+
userPaillierModulus: string;
|
|
135
|
+
}>;
|
|
136
|
+
}
|
|
137
|
+
export interface CustomKShareGeneratingFunction {
|
|
138
|
+
(params: {
|
|
139
|
+
tssParams: TSSParams | TSSParamsForMessage;
|
|
140
|
+
challenges: {
|
|
141
|
+
enterpriseChallenge: EcdsaTypes.SerializedEcdsaChallenges;
|
|
142
|
+
bitgoChallenge: TxRequestChallengeResponse;
|
|
143
|
+
};
|
|
144
|
+
requestType: RequestType;
|
|
145
|
+
}): Promise<TssEcdsaStep1ReturnMessage>;
|
|
146
|
+
}
|
|
147
|
+
export interface CustomMuDeltaShareGeneratingFunction {
|
|
148
|
+
(params: {
|
|
149
|
+
txRequest: TxRequest;
|
|
150
|
+
aShareFromBitgo: Omit<AShare, 'ntilde' | 'h1' | 'h2'>;
|
|
151
|
+
bitgoChallenge: TxRequestChallengeResponse;
|
|
152
|
+
encryptedWShare: string;
|
|
153
|
+
}): Promise<TssEcdsaStep2ReturnMessage>;
|
|
154
|
+
}
|
|
155
|
+
export interface CustomSShareGeneratingFunction {
|
|
156
|
+
(params: {
|
|
157
|
+
tssParams: TSSParams | TSSParamsForMessage;
|
|
158
|
+
dShareFromBitgo: DShare;
|
|
159
|
+
requestType: RequestType;
|
|
160
|
+
encryptedOShare: string;
|
|
161
|
+
}): Promise<SShare>;
|
|
162
|
+
}
|
|
163
|
+
export interface CustomCommitmentGeneratingFunction {
|
|
164
|
+
(params: {
|
|
165
|
+
txRequest: TxRequest;
|
|
166
|
+
bitgoGpgPubKey?: string;
|
|
167
|
+
}): Promise<{
|
|
168
|
+
userToBitgoCommitment: CommitmentShareRecord;
|
|
169
|
+
encryptedSignerShare: EncryptedSignerShareRecord;
|
|
170
|
+
encryptedUserToBitgoRShare: EncryptedSignerShareRecord;
|
|
171
|
+
}>;
|
|
172
|
+
}
|
|
32
173
|
export interface CustomRShareGeneratingFunction {
|
|
33
174
|
(params: {
|
|
34
175
|
txRequest: TxRequest;
|
|
176
|
+
encryptedUserToBitgoRShare: EncryptedSignerShareRecord;
|
|
35
177
|
}): Promise<{
|
|
36
178
|
rShare: SignShare;
|
|
37
|
-
signingKeyYShare: YShare;
|
|
38
179
|
}>;
|
|
39
180
|
}
|
|
40
181
|
export interface CustomGShareGeneratingFunction {
|
|
@@ -42,12 +183,76 @@ export interface CustomGShareGeneratingFunction {
|
|
|
42
183
|
txRequest: TxRequest;
|
|
43
184
|
userToBitgoRShare: SignShare;
|
|
44
185
|
bitgoToUserRShare: SignatureShareRecord;
|
|
186
|
+
bitgoToUserCommitment: CommitmentShareRecord;
|
|
45
187
|
}): Promise<GShare>;
|
|
46
188
|
}
|
|
189
|
+
export interface CustomMPCv2SigningRound1GeneratingFunction {
|
|
190
|
+
(params: {
|
|
191
|
+
txRequest: TxRequest;
|
|
192
|
+
}): Promise<{
|
|
193
|
+
signatureShareRound1: SignatureShareRecord;
|
|
194
|
+
encryptedRound1Session: string;
|
|
195
|
+
userGpgPubKey: string;
|
|
196
|
+
encryptedUserGpgPrvKey: string;
|
|
197
|
+
}>;
|
|
198
|
+
}
|
|
199
|
+
export interface CustomMPCv2SigningRound2GeneratingFunction {
|
|
200
|
+
(params: {
|
|
201
|
+
txRequest: TxRequest;
|
|
202
|
+
bitgoPublicGpgKey: string;
|
|
203
|
+
encryptedUserGpgPrvKey: string;
|
|
204
|
+
encryptedRound1Session: string;
|
|
205
|
+
}): Promise<{
|
|
206
|
+
signatureShareRound2: SignatureShareRecord;
|
|
207
|
+
encryptedRound2Session: string;
|
|
208
|
+
}>;
|
|
209
|
+
}
|
|
210
|
+
export interface CustomMPCv2SigningRound3GeneratingFunction {
|
|
211
|
+
(params: {
|
|
212
|
+
txRequest: TxRequest;
|
|
213
|
+
bitgoPublicGpgKey: string;
|
|
214
|
+
encryptedUserGpgPrvKey: string;
|
|
215
|
+
encryptedRound2Session: string;
|
|
216
|
+
}): Promise<{
|
|
217
|
+
signatureShareRound3: SignatureShareRecord;
|
|
218
|
+
}>;
|
|
219
|
+
}
|
|
220
|
+
export interface CustomEddsaMPCv2SigningRound1GeneratingFunction {
|
|
221
|
+
(params: {
|
|
222
|
+
txRequest: TxRequest;
|
|
223
|
+
}): Promise<{
|
|
224
|
+
signatureShareRound1: SignatureShareRecord;
|
|
225
|
+
encryptedRound1Session: string;
|
|
226
|
+
userGpgPubKey: string;
|
|
227
|
+
encryptedUserGpgPrvKey: string;
|
|
228
|
+
}>;
|
|
229
|
+
}
|
|
230
|
+
export interface CustomEddsaMPCv2SigningRound2GeneratingFunction {
|
|
231
|
+
(params: {
|
|
232
|
+
txRequest: TxRequest;
|
|
233
|
+
bitgoPublicGpgKey: string;
|
|
234
|
+
encryptedUserGpgPrvKey: string;
|
|
235
|
+
encryptedRound1Session: string;
|
|
236
|
+
}): Promise<{
|
|
237
|
+
signatureShareRound2: SignatureShareRecord;
|
|
238
|
+
encryptedRound2Session: string;
|
|
239
|
+
}>;
|
|
240
|
+
}
|
|
241
|
+
export interface CustomEddsaMPCv2SigningRound3GeneratingFunction {
|
|
242
|
+
(params: {
|
|
243
|
+
txRequest: TxRequest;
|
|
244
|
+
bitgoPublicGpgKey: string;
|
|
245
|
+
encryptedUserGpgPrvKey: string;
|
|
246
|
+
encryptedRound2Session: string;
|
|
247
|
+
}): Promise<{
|
|
248
|
+
signatureShareRound3: SignatureShareRecord;
|
|
249
|
+
}>;
|
|
250
|
+
}
|
|
47
251
|
export declare enum TokenType {
|
|
48
252
|
ERC721 = "ERC721",
|
|
49
253
|
ERC1155 = "ERC1155",
|
|
50
|
-
ERC20 = "ERC20"
|
|
254
|
+
ERC20 = "ERC20",
|
|
255
|
+
DIGITAL_ASSET = "Digital Asset"
|
|
51
256
|
}
|
|
52
257
|
export interface TokenTransferRecipientParams {
|
|
53
258
|
tokenType: TokenType;
|
|
@@ -67,9 +272,46 @@ interface IntentOptionsBase {
|
|
|
67
272
|
custodianTransactionId?: string;
|
|
68
273
|
custodianMessageId?: string;
|
|
69
274
|
}
|
|
275
|
+
/**
|
|
276
|
+
* DeFi intent fields for ERC-4626 vault operations.
|
|
277
|
+
* Extended by PopulatedIntent so these land at the top level of the payload.
|
|
278
|
+
*/
|
|
279
|
+
export interface DefiIntentFields {
|
|
280
|
+
vaultId?: string;
|
|
281
|
+
amount?: {
|
|
282
|
+
value: string;
|
|
283
|
+
symbol: string;
|
|
284
|
+
} | string;
|
|
285
|
+
/** Vault share token amount for defi-withdraw intent (base units) */
|
|
286
|
+
shareTokenAmount?: {
|
|
287
|
+
value: string;
|
|
288
|
+
symbol: string;
|
|
289
|
+
} | string;
|
|
290
|
+
operationId?: string;
|
|
291
|
+
}
|
|
292
|
+
/** DeFi-specific intent parameters (input container for defiParams). */
|
|
293
|
+
export interface DefiIntentParams {
|
|
294
|
+
vaultId: string;
|
|
295
|
+
amount: string;
|
|
296
|
+
operationId?: string;
|
|
297
|
+
}
|
|
298
|
+
/** ERC-7984 wrap / wrapApprove parameters (input container for wrapParams). */
|
|
299
|
+
export interface WrapIntentParams {
|
|
300
|
+
tokenName: string;
|
|
301
|
+
amount: string;
|
|
302
|
+
}
|
|
303
|
+
/** ERC-7984 unwrap (unshield) parameters (input container for unwrapParams). */
|
|
304
|
+
export interface UnwrapIntentParams {
|
|
305
|
+
tokenName: string;
|
|
306
|
+
amount: string;
|
|
307
|
+
}
|
|
70
308
|
export interface IntentOptionsForMessage extends IntentOptionsBase {
|
|
71
309
|
messageRaw: string;
|
|
72
310
|
messageEncoded?: string;
|
|
311
|
+
messageStandardType?: MessageStandardType;
|
|
312
|
+
signerAddress?: string;
|
|
313
|
+
/** Base64-encoded prepared transaction bytes required by Canton message signing. */
|
|
314
|
+
preparedTransaction?: string;
|
|
73
315
|
}
|
|
74
316
|
export interface IntentOptionsForTypedData extends IntentOptionsBase {
|
|
75
317
|
typedDataRaw: string;
|
|
@@ -92,6 +334,77 @@ export interface PrebuildTransactionWithIntentOptions extends IntentOptionsBase
|
|
|
92
334
|
lowFeeTxid?: string;
|
|
93
335
|
custodianTransactionId?: string;
|
|
94
336
|
receiveAddress?: string;
|
|
337
|
+
unspents?: string[];
|
|
338
|
+
/**
|
|
339
|
+
* MIST to redeem from the sender's address balance (SIP-58 / SUI address balances).
|
|
340
|
+
* When set, the PTB includes tx.withdrawal() + redeem_funds() before the transfer.
|
|
341
|
+
*/
|
|
342
|
+
fundsInAddressBalance?: string;
|
|
343
|
+
/**
|
|
344
|
+
* The receive address from which funds will be withdrawn.
|
|
345
|
+
* This feature is supported only for specific coins, like ADA.
|
|
346
|
+
*/
|
|
347
|
+
senderAddress?: string;
|
|
348
|
+
/**
|
|
349
|
+
* Custom Solana instructions for use with the customTx intent type.
|
|
350
|
+
* Each instruction should contain programId, keys, and data fields.
|
|
351
|
+
*/
|
|
352
|
+
solInstructions?: SolInstruction[];
|
|
353
|
+
/**
|
|
354
|
+
* Deconstructed Versioned Transaction data for Solana customTx intent type.
|
|
355
|
+
* Contains compiled instructions, Address Lookup Tables, and static account keys.
|
|
356
|
+
*/
|
|
357
|
+
solVersionedTransactionData?: SolVersionedTransactionData;
|
|
358
|
+
/**
|
|
359
|
+
* Custom transaction parameters for Aptos entry function calls.
|
|
360
|
+
* Used with the customTx intent type for Aptos smart contract interactions.
|
|
361
|
+
*/
|
|
362
|
+
aptosCustomTransactionParams?: {
|
|
363
|
+
moduleName: string;
|
|
364
|
+
functionName: string;
|
|
365
|
+
typeArguments?: string[];
|
|
366
|
+
functionArguments?: any[];
|
|
367
|
+
abi?: any;
|
|
368
|
+
};
|
|
369
|
+
txRequestId?: string;
|
|
370
|
+
isTestTransaction?: boolean;
|
|
371
|
+
isWalletConnectTx?: boolean;
|
|
372
|
+
transferOfferId?: string;
|
|
373
|
+
/**
|
|
374
|
+
* Amount for intents that use a top-level amount instead of recipients (e.g. bridgeFunds).
|
|
375
|
+
*/
|
|
376
|
+
amount?: {
|
|
377
|
+
value: string;
|
|
378
|
+
symbol: string;
|
|
379
|
+
};
|
|
380
|
+
/**
|
|
381
|
+
* TIP-20 token address to use for paying transaction fees (Tempo only).
|
|
382
|
+
*/
|
|
383
|
+
feeToken?: string;
|
|
384
|
+
/** Canton-specific params for the cantonCommand intent. */
|
|
385
|
+
cantonCommandParams?: CantonCommandParams;
|
|
386
|
+
/** DeFi vault intent fields for defi-* and wrap-native / unwrap-native intents. */
|
|
387
|
+
defiParams?: DefiIntentParams;
|
|
388
|
+
/** ERC-7984 wrap / wrapApprove fields flattened onto the WP intent. */
|
|
389
|
+
wrapParams?: WrapIntentParams;
|
|
390
|
+
/** ERC-7984 unwrap (unshield) fields flattened onto the WP intent. */
|
|
391
|
+
unwrapParams?: UnwrapIntentParams;
|
|
392
|
+
/** Canton party ID of the end investor to onboard (cantonEndInvestorOnboardingOffer intent). */
|
|
393
|
+
endInvestorPartyId?: string;
|
|
394
|
+
/** Reason for rejecting the onboarding offer (cantonEndInvestorOnboardingReject intent). */
|
|
395
|
+
reason?: string;
|
|
396
|
+
/** DTCC operator party ID (cantonParticipantOnboardingRequest intent). */
|
|
397
|
+
operator?: string;
|
|
398
|
+
/** DTCC provider party ID (cantonParticipantOnboardingRequest intent). */
|
|
399
|
+
provider?: string;
|
|
400
|
+
/** DTCC compliance party ID (cantonParticipantOnboardingRequest intent). */
|
|
401
|
+
compliance?: string;
|
|
402
|
+
/** DTCC registrar party ID (cantonParticipantOnboardingRequest intent). */
|
|
403
|
+
registrar?: string;
|
|
404
|
+
/** DTCC client onboarder party ID (cantonParticipantOnboardingRequest intent). */
|
|
405
|
+
clientOnboarder?: string;
|
|
406
|
+
/** Optional ISO 8601 expiration timestamp (cantonParticipantOnboardingRequest intent). */
|
|
407
|
+
expirationIso?: string;
|
|
95
408
|
}
|
|
96
409
|
export interface IntentRecipient {
|
|
97
410
|
address: {
|
|
@@ -115,41 +428,105 @@ export interface PopulatedIntentForMessageSigning extends PopulatedIntentBase {
|
|
|
115
428
|
messageRaw: string;
|
|
116
429
|
messageEncoded: string;
|
|
117
430
|
custodianMessageId?: string;
|
|
431
|
+
messageStandardType?: MessageStandardType;
|
|
432
|
+
signerAddress?: string;
|
|
433
|
+
/** Base64-encoded prepared transaction bytes required by Canton message signing. */
|
|
434
|
+
preparedTransaction?: string;
|
|
118
435
|
}
|
|
119
436
|
export interface PopulatedIntentForTypedDataSigning extends PopulatedIntentBase {
|
|
120
437
|
messageRaw: string;
|
|
121
438
|
messageEncoded: string;
|
|
122
439
|
custodianMessageId?: string;
|
|
123
440
|
}
|
|
124
|
-
export interface PopulatedIntent extends PopulatedIntentBase {
|
|
441
|
+
export interface PopulatedIntent extends PopulatedIntentBase, DefiIntentFields {
|
|
442
|
+
stakingRequestId?: string;
|
|
125
443
|
recipients?: IntentRecipient[];
|
|
126
444
|
nonce?: string;
|
|
127
445
|
token?: string;
|
|
128
446
|
enableTokens?: TokenEnablement[];
|
|
447
|
+
unspents?: string[];
|
|
448
|
+
fundsInAddressBalance?: string;
|
|
449
|
+
/**
|
|
450
|
+
* The receive address from which funds will be withdrawn.
|
|
451
|
+
* This feature is supported only for specific coins, like ADA.
|
|
452
|
+
*/
|
|
453
|
+
senderAddress?: string;
|
|
129
454
|
selfSend?: boolean;
|
|
130
455
|
feeOptions?: FeeOption | EIP1559FeeOptions;
|
|
456
|
+
/**
|
|
457
|
+
* TIP-20 token address to use for paying transaction fees (Tempo only).
|
|
458
|
+
* This is placed at the intent level, not nested in feeOptions.
|
|
459
|
+
*/
|
|
460
|
+
feeToken?: string;
|
|
131
461
|
hopParams?: HopParams;
|
|
132
462
|
txid?: string;
|
|
133
463
|
receiveAddress?: string;
|
|
134
464
|
custodianTransactionId?: string;
|
|
135
465
|
custodianMessageId?: string;
|
|
466
|
+
tokenName?: string;
|
|
467
|
+
/**
|
|
468
|
+
* Custom Solana instructions for use with the customTx intent type.
|
|
469
|
+
* Each instruction should contain programId, keys, and data fields.
|
|
470
|
+
*/
|
|
471
|
+
solInstructions?: SolInstruction[];
|
|
472
|
+
/**
|
|
473
|
+
* Deconstructed Versioned Transaction data for Solana customTx intent type.
|
|
474
|
+
* Contains compiled instructions, Address Lookup Tables, and static account keys.
|
|
475
|
+
*/
|
|
476
|
+
solVersionedTransactionData?: SolVersionedTransactionData;
|
|
477
|
+
/**
|
|
478
|
+
* Custom Aptos transaction for use with the customTx intent type.
|
|
479
|
+
*/
|
|
480
|
+
aptosCustomTransactionParams?: aptosCustomTransactionParams;
|
|
481
|
+
txRequestId?: string;
|
|
482
|
+
isTestTransaction?: boolean;
|
|
483
|
+
isWalletConnectTx?: boolean;
|
|
484
|
+
transferOfferId?: string;
|
|
485
|
+
/**
|
|
486
|
+
* Amount for intents that use a top-level amount instead of recipients (e.g. bridgeFunds).
|
|
487
|
+
*/
|
|
488
|
+
amount?: {
|
|
489
|
+
value: string;
|
|
490
|
+
symbol: string;
|
|
491
|
+
} | string;
|
|
492
|
+
/** Canton-specific params serialized into the cantonCommand intent payload. */
|
|
493
|
+
cantonCommandParams?: CantonCommandParams;
|
|
494
|
+
/** Canton party ID of the end investor to onboard (cantonEndInvestorOnboardingOffer intent). */
|
|
495
|
+
endInvestorPartyId?: string;
|
|
496
|
+
/** Reason for rejecting the onboarding offer (cantonEndInvestorOnboardingReject intent). */
|
|
497
|
+
reason?: string;
|
|
498
|
+
/** DTCC operator party ID (cantonParticipantOnboardingRequest intent). */
|
|
499
|
+
operator?: string;
|
|
500
|
+
/** DTCC provider party ID (cantonParticipantOnboardingRequest intent). */
|
|
501
|
+
provider?: string;
|
|
502
|
+
/** DTCC compliance party ID (cantonParticipantOnboardingRequest intent). */
|
|
503
|
+
compliance?: string;
|
|
504
|
+
/** DTCC registrar party ID (cantonParticipantOnboardingRequest intent). */
|
|
505
|
+
registrar?: string;
|
|
506
|
+
/** DTCC client onboarder party ID (cantonParticipantOnboardingRequest intent). */
|
|
507
|
+
clientOnboarder?: string;
|
|
508
|
+
/** Optional ISO 8601 expiration timestamp (cantonParticipantOnboardingRequest intent). */
|
|
509
|
+
expirationIso?: string;
|
|
136
510
|
}
|
|
137
|
-
export
|
|
138
|
-
export
|
|
139
|
-
export
|
|
511
|
+
export type TxRequestState = 'pendingCommitment' | 'pendingApproval' | 'canceled' | 'rejected' | 'initialized' | 'pendingDelivery' | 'delivered' | 'pendingUserSignature' | 'signed';
|
|
512
|
+
export type TransactionState = 'initialized' | 'pendingCommitment' | 'pendingSignature' | 'signed' | 'held' | 'delivered' | 'invalidSignature' | 'rejected';
|
|
513
|
+
export type SignableTransaction = {
|
|
140
514
|
serializedTxHex: string;
|
|
141
515
|
signableHex: string;
|
|
142
516
|
};
|
|
143
|
-
export
|
|
517
|
+
export interface ReplayProtectionOptions {
|
|
518
|
+
chain: string | number;
|
|
519
|
+
hardfork: string;
|
|
520
|
+
}
|
|
521
|
+
export type UnsignedTransactionTss = SignableTransaction & {
|
|
144
522
|
derivationPath: string;
|
|
145
|
-
feeInfo?:
|
|
146
|
-
fee: number;
|
|
147
|
-
feeString: string;
|
|
148
|
-
};
|
|
523
|
+
feeInfo?: Required<PrebuildTransactionFeeInfo>;
|
|
149
524
|
coinSpecific?: Record<string, unknown>;
|
|
150
525
|
parsedTx?: unknown;
|
|
526
|
+
eip1559?: EIP1559FeeOptions;
|
|
527
|
+
replayProtectionOptions?: ReplayProtectionOptions;
|
|
151
528
|
};
|
|
152
|
-
export
|
|
529
|
+
export type UnsignedMessageTss = {
|
|
153
530
|
derivationPath: string;
|
|
154
531
|
message: string;
|
|
155
532
|
};
|
|
@@ -157,7 +534,13 @@ export declare enum RequestType {
|
|
|
157
534
|
tx = 0,
|
|
158
535
|
message = 1
|
|
159
536
|
}
|
|
160
|
-
export
|
|
537
|
+
export type SignedTx = {
|
|
538
|
+
id: string;
|
|
539
|
+
tx: string;
|
|
540
|
+
publicKey?: string;
|
|
541
|
+
signature?: string;
|
|
542
|
+
};
|
|
543
|
+
export type TxRequest = {
|
|
161
544
|
txRequestId: string;
|
|
162
545
|
walletId: string;
|
|
163
546
|
walletType: WalletType;
|
|
@@ -170,6 +553,7 @@ export declare type TxRequest = {
|
|
|
170
553
|
pendingApprovalId?: string;
|
|
171
554
|
policiesChecked: boolean;
|
|
172
555
|
signatureShares?: SignatureShareRecord[];
|
|
556
|
+
commitmentShares?: CommitmentShareRecord[];
|
|
173
557
|
pendingTxHashes?: string[];
|
|
174
558
|
txHashes?: string[];
|
|
175
559
|
unsignedMessages?: UnsignedMessageTss[];
|
|
@@ -178,49 +562,134 @@ export declare type TxRequest = {
|
|
|
178
562
|
state: TransactionState;
|
|
179
563
|
unsignedTx: UnsignedTransactionTss;
|
|
180
564
|
signatureShares: SignatureShareRecord[];
|
|
565
|
+
signedTx?: SignedTx;
|
|
566
|
+
commitmentShares?: CommitmentShareRecord[];
|
|
181
567
|
}[];
|
|
182
568
|
messages?: {
|
|
183
569
|
state: TransactionState;
|
|
184
570
|
signatureShares: SignatureShareRecord[];
|
|
571
|
+
messageRaw: string;
|
|
572
|
+
messageEncoded?: string;
|
|
573
|
+
messageBroadcastable?: string;
|
|
574
|
+
messageStandardType?: MessageStandardType;
|
|
575
|
+
derivationPath: string;
|
|
185
576
|
combineSigShare?: string;
|
|
186
577
|
txHash?: string;
|
|
578
|
+
commitmentShares?: CommitmentShareRecord[];
|
|
187
579
|
}[];
|
|
188
580
|
apiVersion?: TxRequestVersion;
|
|
189
581
|
latest: boolean;
|
|
190
582
|
};
|
|
191
|
-
export
|
|
583
|
+
export type CreateKeychainParamsBase = {
|
|
192
584
|
userGpgKey: SerializedKeyPair<string>;
|
|
193
585
|
bitgoKeychain: Keychain;
|
|
194
586
|
passphrase?: string;
|
|
195
587
|
enterprise?: string;
|
|
196
588
|
originalPasscodeEncryptionCode?: string;
|
|
589
|
+
webauthnInfo?: WebauthnKeyEncryptionInfo;
|
|
590
|
+
encryptionVersion?: EncryptionVersion;
|
|
591
|
+
encryptionSession?: IEncryptionSession;
|
|
197
592
|
};
|
|
198
|
-
export
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
593
|
+
export type CreateBitGoKeychainParamsBase = Omit<CreateKeychainParamsBase, 'bitgoKeychain'>;
|
|
594
|
+
/**
|
|
595
|
+
* Checks whether a ciphertext string is a v2 encryption envelope.
|
|
596
|
+
*/
|
|
597
|
+
export declare function isV2Envelope(ciphertext: string): boolean;
|
|
598
|
+
export declare const SignatureShareType: {
|
|
599
|
+
readonly USER: "user";
|
|
600
|
+
readonly BACKUP: "backup";
|
|
601
|
+
readonly BITGO: "bitgo";
|
|
602
|
+
};
|
|
603
|
+
export type SignatureShareType = (typeof SignatureShareType)[keyof typeof SignatureShareType];
|
|
604
|
+
interface ShareBaseRecord {
|
|
205
605
|
from: SignatureShareType;
|
|
206
606
|
to: SignatureShareType;
|
|
207
607
|
share: string;
|
|
608
|
+
}
|
|
609
|
+
export interface SignatureShareRecord extends ShareBaseRecord {
|
|
208
610
|
vssProof?: string;
|
|
209
611
|
privateShareProof?: string;
|
|
210
612
|
publicShare?: string;
|
|
211
613
|
}
|
|
212
|
-
export declare
|
|
614
|
+
export declare const CommitmentType: {
|
|
615
|
+
readonly COMMITMENT: "commitment";
|
|
616
|
+
readonly DECOMMITMENT: "decommitment";
|
|
617
|
+
};
|
|
618
|
+
export type CommitmentType = (typeof CommitmentType)[keyof typeof CommitmentType];
|
|
619
|
+
export interface CommitmentShareRecord extends ShareBaseRecord {
|
|
620
|
+
type: CommitmentType;
|
|
621
|
+
}
|
|
622
|
+
export interface ExchangeCommitmentResponse {
|
|
623
|
+
commitmentShare: CommitmentShareRecord;
|
|
624
|
+
}
|
|
625
|
+
export declare const EncryptedSignerShareType: {
|
|
626
|
+
readonly ENCRYPTED_SIGNER_SHARE: "encryptedSignerShare";
|
|
627
|
+
readonly ENCRYPTED_R_SHARE: "encryptedRShare";
|
|
628
|
+
};
|
|
629
|
+
export type EncryptedSignerShareType = (typeof EncryptedSignerShareType)[keyof typeof EncryptedSignerShareType];
|
|
630
|
+
export interface EncryptedSignerShareRecord extends ShareBaseRecord {
|
|
631
|
+
type: EncryptedSignerShareType;
|
|
632
|
+
}
|
|
633
|
+
export type BitgoPubKeyType = 'nitro' | 'onprem';
|
|
634
|
+
export type TSSParams = {
|
|
213
635
|
txRequest: string | TxRequest;
|
|
214
|
-
prv: string;
|
|
215
636
|
reqId: IRequestTracer;
|
|
216
637
|
apiVersion?: ApiVersion;
|
|
217
|
-
|
|
638
|
+
txParams?: TransactionParams;
|
|
218
639
|
};
|
|
219
|
-
export
|
|
640
|
+
export type TSSParamsForMessage = TSSParams & {
|
|
220
641
|
messageRaw: string;
|
|
221
642
|
messageEncoded?: string;
|
|
222
643
|
bufferToSign: Buffer;
|
|
223
644
|
};
|
|
645
|
+
/** At least one recipient (when using `recipientSource: TssTxRecipientSource.Explicit`). */
|
|
646
|
+
export type NonEmptyRecipientList = [ITransactionRecipient, ...ITransactionRecipient[]];
|
|
647
|
+
/** txParams including a non-empty recipients list for strict signing verification typing. */
|
|
648
|
+
export type TransactionParamsWithMandatoryRecipients = TransactionParams & {
|
|
649
|
+
recipients: NonEmptyRecipientList;
|
|
650
|
+
};
|
|
651
|
+
export declare const TssTxRecipientSource: {
|
|
652
|
+
/** Require txParams.recipients with at least one entry (enforced by TypeScript for this branch). */
|
|
653
|
+
readonly Explicit: "explicit";
|
|
654
|
+
/**
|
|
655
|
+
* Default: txParams may be omitted or partial; verification uses coin-specific rules
|
|
656
|
+
* (for example recipients from txRequest context).
|
|
657
|
+
*/
|
|
658
|
+
readonly Resolved: "resolved";
|
|
659
|
+
};
|
|
660
|
+
export type TssTxRecipientSource = (typeof TssTxRecipientSource)[keyof typeof TssTxRecipientSource];
|
|
661
|
+
export type TssSignTxExplicitRecipientParams = {
|
|
662
|
+
txRequest: string | TxRequest;
|
|
663
|
+
reqId: IRequestTracer;
|
|
664
|
+
apiVersion?: ApiVersion;
|
|
665
|
+
recipientSource: typeof TssTxRecipientSource.Explicit;
|
|
666
|
+
txParams: TransactionParamsWithMandatoryRecipients;
|
|
667
|
+
};
|
|
668
|
+
export type TssSignTxResolvedRecipientParams = {
|
|
669
|
+
txRequest: string | TxRequest;
|
|
670
|
+
reqId: IRequestTracer;
|
|
671
|
+
apiVersion?: ApiVersion;
|
|
672
|
+
recipientSource?: typeof TssTxRecipientSource.Resolved;
|
|
673
|
+
txParams?: TransactionParams;
|
|
674
|
+
};
|
|
675
|
+
/**
|
|
676
|
+
* Parameters for TSS transaction signing ({@link ITssUtils.signTxRequest}).
|
|
677
|
+
* Set {@link TssTxRecipientSource.Explicit} to require a non-empty txParams.recipients array at compile time.
|
|
678
|
+
*/
|
|
679
|
+
export type TssSignTxRequestParams = TssSignTxExplicitRecipientParams | TssSignTxResolvedRecipientParams;
|
|
680
|
+
export type TssSignTxRequestParamsWithPrv = TssSignTxRequestParams & {
|
|
681
|
+
prv: string;
|
|
682
|
+
mpcv2PartyId?: 0 | 1;
|
|
683
|
+
};
|
|
684
|
+
/**
|
|
685
|
+
* @deprecated Use {@link TssSignTxRequestParamsWithPrv} instead. This alias exists for
|
|
686
|
+
* backwards compatibility and will be removed in a future major release.
|
|
687
|
+
*/
|
|
688
|
+
export type TSSParamsWithPrv = TssSignTxRequestParamsWithPrv;
|
|
689
|
+
export type TSSParamsForMessageWithPrv = TSSParamsForMessage & {
|
|
690
|
+
prv: string;
|
|
691
|
+
mpcv2PartyId?: 0 | 1;
|
|
692
|
+
};
|
|
224
693
|
export interface BitgoHeldBackupKeyShare {
|
|
225
694
|
commonKeychain?: string;
|
|
226
695
|
id: string;
|
|
@@ -233,9 +702,101 @@ export interface BackupKeyShare {
|
|
|
233
702
|
export interface BitgoGPGPublicKey {
|
|
234
703
|
name: string;
|
|
235
704
|
publicKey: string;
|
|
705
|
+
mpcv2PublicKey?: string;
|
|
706
|
+
eddsaMpcv2PublicKey?: string;
|
|
707
|
+
redpallasMpcv2PublicKey?: string;
|
|
236
708
|
enterpriseId: string;
|
|
237
709
|
}
|
|
238
|
-
export
|
|
710
|
+
export interface MPCTx {
|
|
711
|
+
serializedTx: string;
|
|
712
|
+
scanIndex?: number;
|
|
713
|
+
coin?: string;
|
|
714
|
+
signableHex?: string;
|
|
715
|
+
derivationPath?: string;
|
|
716
|
+
parsedTx?: ParsedTransaction;
|
|
717
|
+
feeInfo?: Required<PrebuildTransactionFeeInfo>;
|
|
718
|
+
coinSpecific?: {
|
|
719
|
+
firstValid?: number;
|
|
720
|
+
maxDuration?: number;
|
|
721
|
+
commonKeychain?: string;
|
|
722
|
+
lastScanIndex?: number;
|
|
723
|
+
};
|
|
724
|
+
recoveryAmount?: string;
|
|
725
|
+
signature?: string;
|
|
726
|
+
}
|
|
727
|
+
export interface MPCRecoveryOptions {
|
|
728
|
+
userKey?: string;
|
|
729
|
+
backupKey?: string;
|
|
730
|
+
bitgoKey: string;
|
|
731
|
+
recoveryDestination: string;
|
|
732
|
+
walletPassphrase?: string;
|
|
733
|
+
seed?: string;
|
|
734
|
+
index?: number;
|
|
735
|
+
startingScanIndex?: number;
|
|
736
|
+
scan?: number;
|
|
737
|
+
tokenContractAddress?: string;
|
|
738
|
+
apiKey?: string;
|
|
739
|
+
}
|
|
740
|
+
export interface MPCConsolidationRecoveryOptions {
|
|
741
|
+
userKey?: string;
|
|
742
|
+
backupKey?: string;
|
|
743
|
+
bitgoKey: string;
|
|
744
|
+
walletPassphrase?: string;
|
|
745
|
+
startingScanIndex?: number;
|
|
746
|
+
endingScanIndex?: number;
|
|
747
|
+
seed?: string;
|
|
748
|
+
tokenContractAddress?: string;
|
|
749
|
+
}
|
|
750
|
+
export interface MPCSweepTxs {
|
|
751
|
+
txRequests: RecoveryTxRequest[];
|
|
752
|
+
}
|
|
753
|
+
export interface RecoveryTxRequest {
|
|
754
|
+
walletCoin: string;
|
|
755
|
+
transactions: MPCUnsignedTx[] | OvcTransaction[];
|
|
756
|
+
}
|
|
757
|
+
export interface MPCUnsignedTx {
|
|
758
|
+
unsignedTx: MPCTx;
|
|
759
|
+
signatureShares: [];
|
|
760
|
+
}
|
|
761
|
+
export interface MPCSweepRecoveryOptions {
|
|
762
|
+
signatureShares: SignatureShares[];
|
|
763
|
+
}
|
|
764
|
+
interface SignatureShares {
|
|
765
|
+
txRequest: RecoveryTxRequest;
|
|
766
|
+
tssVersion: string;
|
|
767
|
+
ovc: Ovc[];
|
|
768
|
+
}
|
|
769
|
+
interface OvcTransaction {
|
|
770
|
+
unsignedTx: MPCTx;
|
|
771
|
+
signatureShares: SignatureShareRecord[];
|
|
772
|
+
signatureShare: SignatureShare;
|
|
773
|
+
}
|
|
774
|
+
interface SignatureShare {
|
|
775
|
+
from: string;
|
|
776
|
+
to: string;
|
|
777
|
+
share: string;
|
|
778
|
+
publicShare: string;
|
|
779
|
+
}
|
|
780
|
+
interface Ovc {
|
|
781
|
+
eddsaSignature: Signature;
|
|
782
|
+
ecdsaSignature?: EcdsaSignature;
|
|
783
|
+
eddsaMpcv2Signature?: string;
|
|
784
|
+
}
|
|
785
|
+
export interface MPCTxs {
|
|
786
|
+
transactions: MPCTx[];
|
|
787
|
+
lastScanIndex?: number;
|
|
788
|
+
}
|
|
789
|
+
export interface OvcInput {
|
|
790
|
+
address: string;
|
|
791
|
+
value: number;
|
|
792
|
+
valueString: string;
|
|
793
|
+
}
|
|
794
|
+
export interface OvcOutput {
|
|
795
|
+
address: string;
|
|
796
|
+
valueString: string;
|
|
797
|
+
coinName?: string;
|
|
798
|
+
}
|
|
799
|
+
export type BackupGpgKey = SerializedKeyPair<string> | Key;
|
|
239
800
|
/**
|
|
240
801
|
* Common Interface for implementing signature scheme specific
|
|
241
802
|
* util functions
|
|
@@ -251,32 +812,47 @@ export interface ITssUtils<KeyShare = EDDSA.KeyShare> {
|
|
|
251
812
|
enterprise?: string;
|
|
252
813
|
originalPasscodeEncryptionCode?: string;
|
|
253
814
|
isThirdPartyBackup?: boolean;
|
|
815
|
+
encryptionVersion?: EncryptionVersion;
|
|
254
816
|
}): Promise<KeychainsTriplet>;
|
|
255
|
-
signTxRequest(params:
|
|
256
|
-
txRequest: string | TxRequest;
|
|
257
|
-
prv: string;
|
|
258
|
-
reqId: IRequestTracer;
|
|
259
|
-
}): Promise<TxRequest>;
|
|
817
|
+
signTxRequest(params: TssSignTxRequestParamsWithPrv): Promise<TxRequest>;
|
|
260
818
|
signTxRequestForMessage(params: TSSParams): Promise<TxRequest>;
|
|
261
|
-
|
|
262
|
-
|
|
819
|
+
signEddsaTssUsingExternalSigner(txRequest: string | TxRequest, externalSignerCommitmentGenerator: CustomCommitmentGeneratingFunction, externalSignerRShareGenerator: CustomRShareGeneratingFunction, externalSignerGShareGenerator: CustomGShareGeneratingFunction): Promise<TxRequest>;
|
|
820
|
+
signEcdsaTssUsingExternalSigner(params: TSSParams | TSSParamsForMessage, requestType: RequestType, externalSignerPaillierModulusGetter: CustomPaillierModulusGetterFunction, externalSignerKShareGenerator: CustomKShareGeneratingFunction, externalSignerMuDeltaShareGenerator: CustomMuDeltaShareGeneratingFunction, externalSignerSShareGenerator: CustomSShareGeneratingFunction): Promise<TxRequest>;
|
|
821
|
+
createCommitmentShareFromTxRequest(params: {
|
|
263
822
|
txRequest: TxRequest;
|
|
264
823
|
prv: string;
|
|
824
|
+
walletPassphrase: string;
|
|
825
|
+
bitgoGpgPubKey: string;
|
|
826
|
+
}): Promise<{
|
|
827
|
+
userToBitgoCommitment: CommitmentShareRecord;
|
|
828
|
+
encryptedSignerShare: EncryptedSignerShareRecord;
|
|
829
|
+
encryptedUserToBitgoRShare: EncryptedSignerShareRecord;
|
|
830
|
+
}>;
|
|
831
|
+
createRShareFromTxRequest(params: {
|
|
832
|
+
txRequest: TxRequest;
|
|
833
|
+
walletPassphrase: string;
|
|
834
|
+
encryptedUserToBitgoRShare: EncryptedSignerShareRecord;
|
|
265
835
|
}): Promise<{
|
|
266
836
|
rShare: SignShare;
|
|
267
|
-
signingKeyYShare: YShare;
|
|
268
837
|
}>;
|
|
269
838
|
createGShareFromTxRequest(params: {
|
|
270
839
|
txRequest: TxRequest;
|
|
271
840
|
prv: string;
|
|
272
841
|
bitgoToUserRShare: SignatureShareRecord;
|
|
273
842
|
userToBitgoRShare: SignShare;
|
|
843
|
+
bitgoToUserCommitment: CommitmentShareRecord;
|
|
274
844
|
}): Promise<GShare>;
|
|
275
845
|
prebuildTxWithIntent(params: PrebuildTransactionWithIntentOptions, apiVersion?: TxRequestVersion, preview?: boolean): Promise<TxRequest>;
|
|
276
846
|
deleteSignatureShares(txRequestId: string): Promise<SignatureShareRecord[]>;
|
|
277
847
|
sendTxRequest(txRequestId: string): Promise<any>;
|
|
278
848
|
recreateTxRequest(txRequestId: string, decryptedPrv: string, reqId: IRequestTracer): Promise<TxRequest>;
|
|
279
849
|
getTxRequest(txRequestId: string): Promise<TxRequest>;
|
|
850
|
+
supportedTxRequestVersions(): TxRequestVersion[];
|
|
851
|
+
supportsVerifyKey(): boolean;
|
|
852
|
+
verifyKey(params: {
|
|
853
|
+
prv: string;
|
|
854
|
+
commonKeychain: string;
|
|
855
|
+
}): Promise<boolean>;
|
|
280
856
|
}
|
|
281
857
|
export {};
|
|
282
858
|
//# sourceMappingURL=baseTypes.d.ts.map
|