@atomicfinance/types 4.1.0 → 4.1.2
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/.turbo/turbo-build.log +1 -1
- package/.turbo/turbo-lint.log +1 -1
- package/CHANGELOG.md +13 -0
- package/dist/ddk.d.ts +8 -2
- package/lib/ddk.ts +25 -2
- package/package.json +1 -1
- package/.turbo/turbo-lint$colon$fix.log +0 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @atomicfinance/types@4.1.
|
|
3
|
+
> @atomicfinance/types@4.1.2 build /Users/matthewblack/code/github.com/AtomicFinance/bitcoin-abstraction-layer/packages/types
|
|
4
4
|
> ../../node_modules/.bin/tsc --project tsconfig.json
|
|
5
5
|
|
package/.turbo/turbo-lint.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @atomicfinance/types@4.0.3 lint /Users/matthewblack/code/github.com/AtomicFinance/
|
|
3
|
+
> @atomicfinance/types@4.0.3 lint /Users/matthewblack/code/github.com/AtomicFinance/bitcoin-abstraction-layer/packages/types
|
|
4
4
|
> ../../node_modules/.bin/eslint .
|
|
5
5
|
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @atomicfinance/types
|
|
2
2
|
|
|
3
|
+
## 4.1.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 5536d01: Add ensure buffer to BitcoinDdkProvider
|
|
8
|
+
|
|
9
|
+
## 4.1.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- ece1dc1: Add DDK address derivation provider
|
|
14
|
+
- 0d882fc: Update changeset for ddk
|
|
15
|
+
|
|
3
16
|
## 4.1.0
|
|
4
17
|
|
|
5
18
|
### Minor Changes
|
package/dist/ddk.d.ts
CHANGED
|
@@ -90,7 +90,10 @@ export interface DdkInterface {
|
|
|
90
90
|
verifyFundTxSignature(fundTx: DdkTransaction, signature: Buffer, pubkey: Buffer, txid: string, vout: number, inputAmount: bigint): boolean;
|
|
91
91
|
signCet(cet: DdkTransaction, adaptorSignature: Buffer, oracleSignatures: Array<Buffer>, fundingSecretKey: Buffer, otherPubkey: Buffer, fundingScriptPubkey: Buffer, fundOutputValue: bigint): DdkTransaction;
|
|
92
92
|
convertMnemonicToSeed(mnemonic: string, passphrase?: string | null): Buffer;
|
|
93
|
-
|
|
93
|
+
createExtkeyFromSeed(seed: Buffer, network: string): Buffer;
|
|
94
|
+
createExtkeyFromParentPath(extkey: Buffer, path: string): Buffer;
|
|
95
|
+
getPubkeyFromExtkey(extkey: Buffer, network: string): Buffer;
|
|
96
|
+
createXprivFromParentPath(seedOrXpriv: Buffer, baseDerivationPath: string, network: string, path: string): Buffer;
|
|
94
97
|
getXpubFromXpriv(xpriv: Buffer, network: string): Buffer;
|
|
95
98
|
version(): string;
|
|
96
99
|
addSignatureToTransaction(tx: DdkTransaction, signature: Buffer, pubkey: Buffer, inputIndex: number): DdkTransaction;
|
|
@@ -115,7 +118,10 @@ export declare function verifyFundTxSignature(fundTx: DdkTransaction, signature:
|
|
|
115
118
|
export declare function version(): string;
|
|
116
119
|
export declare function signCet(cet: DdkTransaction, adaptorSignature: Buffer, oracleSignatures: Array<Buffer>, fundingSecretKey: Buffer, otherPubkey: Buffer, fundingScriptPubkey: Buffer, fundOutputValue: bigint): DdkTransaction;
|
|
117
120
|
export declare function convertMnemonicToSeed(mnemonic: string, passphrase?: string | null): Buffer;
|
|
118
|
-
export declare function
|
|
121
|
+
export declare function createExtkeyFromSeed(seed: Buffer, network: string): Buffer;
|
|
122
|
+
export declare function createExtkeyFromParentPath(extkey: Buffer, path: string): Buffer;
|
|
123
|
+
export declare function getPubkeyFromExtkey(extkey: Buffer, network: string): Buffer;
|
|
124
|
+
export declare function createXprivFromParentPath(seedOrXpriv: Buffer, baseDerivationPath: string, network: string, path: string): Buffer;
|
|
119
125
|
export declare function getXpubFromXpriv(xpriv: Buffer, network: string): Buffer;
|
|
120
126
|
export declare function addSignatureToTransaction(tx: DdkTransaction, signature: Buffer, pubkey: Buffer, inputIndex: number): DdkTransaction;
|
|
121
127
|
export declare function signMultiSigInput(tx: DdkTransaction, dlcInput: DdkDlcInputInfo, localPrivkey: Buffer, remoteSignature: Buffer): DdkTransaction;
|
package/lib/ddk.ts
CHANGED
|
@@ -229,8 +229,14 @@ export interface DdkInterface {
|
|
|
229
229
|
|
|
230
230
|
convertMnemonicToSeed(mnemonic: string, passphrase?: string | null): Buffer;
|
|
231
231
|
|
|
232
|
+
// New clean API functions (DDK v0.3.23+)
|
|
233
|
+
createExtkeyFromSeed(seed: Buffer, network: string): Buffer;
|
|
234
|
+
createExtkeyFromParentPath(extkey: Buffer, path: string): Buffer;
|
|
235
|
+
getPubkeyFromExtkey(extkey: Buffer, network: string): Buffer;
|
|
236
|
+
|
|
237
|
+
// Legacy functions (maintained for backward compatibility)
|
|
232
238
|
createXprivFromParentPath(
|
|
233
|
-
|
|
239
|
+
seedOrXpriv: Buffer,
|
|
234
240
|
baseDerivationPath: string,
|
|
235
241
|
network: string,
|
|
236
242
|
path: string,
|
|
@@ -403,8 +409,25 @@ export declare function convertMnemonicToSeed(
|
|
|
403
409
|
passphrase?: string | null,
|
|
404
410
|
): Buffer;
|
|
405
411
|
|
|
412
|
+
// New clean API functions (DDK v0.3.23+)
|
|
413
|
+
export declare function createExtkeyFromSeed(
|
|
414
|
+
seed: Buffer,
|
|
415
|
+
network: string,
|
|
416
|
+
): Buffer;
|
|
417
|
+
|
|
418
|
+
export declare function createExtkeyFromParentPath(
|
|
419
|
+
extkey: Buffer,
|
|
420
|
+
path: string,
|
|
421
|
+
): Buffer;
|
|
422
|
+
|
|
423
|
+
export declare function getPubkeyFromExtkey(
|
|
424
|
+
extkey: Buffer,
|
|
425
|
+
network: string,
|
|
426
|
+
): Buffer;
|
|
427
|
+
|
|
428
|
+
// Legacy functions (maintained for backward compatibility)
|
|
406
429
|
export declare function createXprivFromParentPath(
|
|
407
|
-
|
|
430
|
+
seedOrXpriv: Buffer,
|
|
408
431
|
baseDerivationPath: string,
|
|
409
432
|
network: string,
|
|
410
433
|
path: string,
|
package/package.json
CHANGED