-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Proof of concept release See merge request interlay/btc-parachain!41
- Loading branch information
Showing
6 changed files
with
56 additions
and
51 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Bitcoin library | ||
|
||
Library handling BTC-Relay and Bitcoin specific data types and provides parsing and verficaition functionality. | ||
|
||
* types.rs: BTC-Relay / Bitcoin data model | ||
* parser.rs: Parsing Bitcoin block headers and transactions | ||
* merkle.rs: Verification of Merkle Proofs | ||
* utils.rs: Bitcoin-specific util functions | ||
|
||
## Installation | ||
|
||
Run `cargo build` from the root folder of this directory. | ||
|
||
## Testing | ||
|
||
Run `cargo test` from the root folder of this directory. | ||
|
||
|
||
## Integration into Runtimes | ||
|
||
### Runtime `Cargo.toml` | ||
|
||
To add this pallet to your runtime, simply include the following to your runtime's `Cargo.toml` file: | ||
|
||
```TOML | ||
[dependencies.bitcoin] | ||
default_features = false | ||
git = '../creates/bitcoin' | ||
``` | ||
|
||
and update your runtime's `std` feature to include this pallet: | ||
|
||
```TOML | ||
std = [ | ||
# --snip-- | ||
'bitcoin/std', | ||
] | ||
``` | ||
|
||
## Reference Docs | ||
|
||
You can view the reference docs for this pallet by running: | ||
|
||
``` | ||
cargo doc --open | ||
``` | ||
|
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,7 +1,7 @@ | ||
[package] | ||
name = "btc-core" | ||
version = "0.1.0" | ||
authors = ["Daniel Perez <[email protected]>"] | ||
authors = ["Interlay Ltd"] | ||
edition = "2018" | ||
|
||
[features] | ||
|
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.