-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* chore: rename project, lib and module to bitcoin-primitives * feat: re-export secp256k1
- Loading branch information
Showing
10 changed files
with
10 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
# bitcoin-zig | ||
# bitcoin-primitives | ||
|
||
Libraries and primitives for Bitcoin, written in Zig. | ||
|
||
# Zig Official Package Manager | ||
|
||
To install `bitcoin-zig`, you need to run the following command in your root folder with `build.zig`: | ||
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-zig#f3af13008b088796697fc656e26d8c2ddf73dc18 | ||
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_zig = b.dependency("bitcoin-zig", .{ | ||
const bitcoin_primitives = b.dependency("bitcoin-primitives", .{ | ||
.target = target, | ||
.optimize = optimize, | ||
}); | ||
exe.root_module.addImport("bitcoin", bitcoin_zig.module("bitcoin")); | ||
exe.root_module.addImport("bitcoin-primitives", bitcoin_primitives.module("bitcoin-primitives")); | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters