You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

bdkpython

Package Overview
Dependencies
Maintainers
3
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bdkpython - pypi Package Compare versions

Comparing version
0.0.3
to
0.0.4
src/bdkpython/darwin-arm64/libbdkffi.dylib

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

+4
-2
Metadata-Version: 2.1
Name: bdkpython
Version: 0.0.3
Version: 0.0.4
Summary: The Python language bindings for the bitcoindevkit
Home-page: https://github.com/bitcoindevkit/bdk-ffi
Home-page: https://github.com/thunderbiscuit/bdk-python
Author: Alekos Filini <alekos.filini@gmail.com>, Steve Myers <steve@notmandatory.org>

@@ -30,2 +30,3 @@ License: MIT or Apache 2.0

address = wallet.get_new_address()
print(f"New BIP84 testnet address: {address}")

@@ -64,2 +65,3 @@ ```

balance = wallet.get_balance()
print(f"Wallet balance is: {balance}")

@@ -66,0 +68,0 @@ ```

@@ -6,2 +6,10 @@ # bdk-python

Currently supported architectures:
- macOS `arm64`
- macOS `x86_64`
- linux `x86_64`
<br/>
## Install from PyPI
Install the latest release using

@@ -52,1 +60,29 @@ ```shell

```
## Support both macOS architectures
In order to support both macOS architectures, we must modify the `loadIndirect()` method a little further:
```python
import platform
def loadIndirect():
if sys.platform == "linux":
# libname = "lib{}.so"
# libname = os.path.join(os.path.dirname(__file__), "lib{}.so")
libname = os.path.join(os.path.dirname(__file__), "linux-x86_64/lib{}.so")
elif sys.platform == "darwin":
# libname = "lib{}.dylib"
# libname = os.path.join(os.path.dirname(__file__), "lib{}.dylib")
if platform.machine() == "arm64":
libname = os.path.join(os.path.dirname(__file__), "darwin-arm64/lib{}.dylib")
elif platform.machine() == "x86_64":
libname = os.path.join(os.path.dirname(__file__), "darwin-x86_64/lib{}.dylib")
elif sys.platform.startswith("win"):
# As of python3.8, ctypes does not seem to search $PATH when loading DLLs.
# We could use `os.add_dll_directory` to configure the search path, but
# it doesn't feel right to mess with application-wide settings. Let's
# assume that the `.dll` is next to the `.py` file and load by full path.
libname = os.path.join(
os.path.dirname(__file__),
"{}.dll",
)
return getattr(ctypes.cdll, libname.format("bdkffi"))
```

@@ -24,2 +24,3 @@ #!/usr/bin/env python

address = wallet.get_new_address()
print(f"New BIP84 testnet address: {address}")

@@ -58,2 +59,3 @@ ```

balance = wallet.get_balance()
print(f"Wallet balance is: {balance}")

@@ -65,6 +67,6 @@ ```

name='bdkpython',
version='0.0.3',
version='0.0.4',
packages=find_packages(where="src"),
package_dir={"": "src"},
package_data={"bdkpython": ["*.dylib"]},
package_data={"bdkpython": ["*/*.dylib", "*/*.so"]},
include_package_data=True,

@@ -75,5 +77,5 @@ zip_safe=False,

long_description_content_type='text/markdown',
url="https://github.com/bitcoindevkit/bdk-ffi",
url="https://github.com/thunderbiscuit/bdk-python",
author="Alekos Filini <alekos.filini@gmail.com>, Steve Myers <steve@notmandatory.org>",
license="MIT or Apache 2.0",
)
Metadata-Version: 2.1
Name: bdkpython
Version: 0.0.3
Version: 0.0.4
Summary: The Python language bindings for the bitcoindevkit
Home-page: https://github.com/bitcoindevkit/bdk-ffi
Home-page: https://github.com/thunderbiscuit/bdk-python
Author: Alekos Filini <alekos.filini@gmail.com>, Steve Myers <steve@notmandatory.org>

@@ -30,2 +30,3 @@ License: MIT or Apache 2.0

address = wallet.get_new_address()
print(f"New BIP84 testnet address: {address}")

@@ -64,2 +65,3 @@ ```

balance = wallet.get_balance()
print(f"Wallet balance is: {balance}")

@@ -66,0 +68,0 @@ ```

@@ -5,3 +5,2 @@ README.md

src/bdkpython/bdk.py
src/bdkpython/libbdkffi.dylib
src/bdkpython.egg-info/PKG-INFO

@@ -11,2 +10,5 @@ src/bdkpython.egg-info/SOURCES.txt

src/bdkpython.egg-info/not-zip-safe
src/bdkpython.egg-info/top_level.txt
src/bdkpython.egg-info/top_level.txt
src/bdkpython/darwin-arm64/libbdkffi.dylib
src/bdkpython/darwin-x86_64/libbdkffi.dylib
src/bdkpython/linux-x86_64/libbdkffi.so

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display