@dynamic-labs-wallet/btc 0.0.225 → 0.0.227

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/package.json CHANGED
@@ -1,10 +1,12 @@
1
1
  {
2
2
  "name": "@dynamic-labs-wallet/btc",
3
- "version": "0.0.225",
3
+ "version": "0.0.227",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
7
- "dependencies": {},
7
+ "dependencies": {
8
+ "@dynamic-labs-wallet/browser": "0.0.227"
9
+ },
8
10
  "nx": {
9
11
  "sourceRoot": "packages/btc/src",
10
12
  "projectType": "library",
@@ -0,0 +1,10 @@
1
+ import type { EcdsaPublicKey } from '@dynamic-labs-wallet/browser';
2
+ /**
3
+ * Converts a public key input (various formats) to a Buffer.
4
+ * Handles objects with `pubkey` property, numeric key maps, `serializeUncompressed` methods, etc.
5
+ *
6
+ * @param pubkey - The raw public key input
7
+ * @returns The public key as a Buffer
8
+ */
9
+ export declare const convertPublicKeyToBuffer: (pubkey: EcdsaPublicKey | Uint8Array | string | Buffer | Record<string, unknown>) => Buffer;
10
+ //# sourceMappingURL=convertPublicKeyToBuffer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"convertPublicKeyToBuffer.d.ts","sourceRoot":"","sources":["../../../src/utils/convertPublicKeyToBuffer/convertPublicKeyToBuffer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACf,MAAM,8BAA8B,CAAC;AAEtC;;;;;;GAMG;AACH,eAAO,MAAM,wBAAwB,WAAY,cAAc,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAG,MA0B1H,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './convertPublicKeyToBuffer.js';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/utils/convertPublicKeyToBuffer/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC"}