https://github.com/zig-bitcoin/bitcoin-primitives
Libraries and primitives for Bitcoin, written in Zig.
https://github.com/zig-bitcoin/bitcoin-primitives
Last synced: about 1 year ago
JSON representation
Libraries and primitives for Bitcoin, written in Zig.
- Host: GitHub
- URL: https://github.com/zig-bitcoin/bitcoin-primitives
- Owner: zig-bitcoin
- License: mit
- Created: 2024-09-02T10:48:20.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-09-18T17:38:09.000Z (over 1 year ago)
- Last Synced: 2025-04-02T10:08:22.733Z (about 1 year ago)
- Language: Zig
- Homepage: https://bitcoin-zig-docs.bitcoinzig.org/
- Size: 9.86 MB
- Stars: 18
- Watchers: 2
- Forks: 10
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bitcoin-primitives
Libraries and primitives for Bitcoin, written in Zig.
# Zig Official Package Manager
To install `bitcoin-primitives`, you need to run the following command in your root folder with `build.zig`:
```bash
zig fetch --save git+https://github.com/zig-bitcoin/bitcoin-primitives#f3af13008b088796697fc656e26d8c2ddf73dc18
```
where `f3af13008b088796697fc656e26d8c2ddf73dc18` is the commit hash.
Then, in your `build.zig`, you need to add our module:
```zig
const bitcoin_primitives = b.dependency("bitcoin-primitives", .{
.target = target,
.optimize = optimize,
});
exe.root_module.addImport("bitcoin-primitives", bitcoin_primitives.module("bitcoin-primitives"));
```