@0xbridge/bitcoin-vault-trial
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -59,3 +59,2 @@ "use strict"; | ||
exports.createBinaryMetadataBuffer = createBinaryMetadataBuffer; | ||
// src/utils.ts | ||
const axios_1 = __importDefault(require("axios")); | ||
@@ -66,4 +65,2 @@ const crypto_1 = __importDefault(require("crypto")); | ||
const ecc = __importStar(require("tiny-secp256k1")); | ||
const zlib_1 = require("zlib"); | ||
// Only need initEccLib once in your entire codebase, but if you want it here: | ||
bitcoin.initEccLib(ecc); | ||
@@ -176,8 +173,2 @@ const ECPair = (0, ecpair_1.default)(ecc); | ||
} | ||
function compressBuffer(data) { | ||
return (0, zlib_1.deflateSync)(data); | ||
} | ||
function decompressBuffer(data) { | ||
return (0, zlib_1.inflateSync)(data); | ||
} | ||
/** | ||
@@ -184,0 +175,0 @@ * Convert an "0x..." Ethereum address string to its 20-byte binary representation. |
@@ -10,3 +10,2 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
// src/utils.ts | ||
import axios from "axios"; | ||
@@ -17,4 +16,2 @@ import crypto from "crypto"; | ||
import * as ecc from "tiny-secp256k1"; | ||
import { deflateSync, inflateSync } from "zlib"; | ||
// Only need initEccLib once in your entire codebase, but if you want it here: | ||
bitcoin.initEccLib(ecc); | ||
@@ -127,8 +124,2 @@ const ECPair = ECPairFactory(ecc); | ||
} | ||
function compressBuffer(data) { | ||
return deflateSync(data); | ||
} | ||
function decompressBuffer(data) { | ||
return inflateSync(data); | ||
} | ||
/** | ||
@@ -135,0 +126,0 @@ * Convert an "0x..." Ethereum address string to its 20-byte binary representation. |
{ | ||
"name": "@0xbridge/bitcoin-vault-trial", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Bitcoin-psbt implementation TypeScript library supporting ESM and CJS.", | ||
@@ -5,0 +5,0 @@ "main": "dist/cjs/index.js", |
52700
1121