-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #950 from dfinity/alex/add-p2tr-key-to-motoko-basi…
…c-bitcoin Add P2TR untweaked key spend implementation to motoko. This PR adds pay-to-taproot (P2TR) raw key path transactions to the motoko basic_bitcoin example (see the modified README.md for more details). P2TR raw key spend is the encoded untweaked public key. This type of address is insecure to use with more than one signer, i.e., with multisignatures, but this is not a concern for using it on the IC, since it does not support multisignatures in the first place. Note that this type of address does not support scripts.
- Loading branch information
Showing
12 changed files
with
662 additions
and
287 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
[dependencies] | ||
base = "0.11.2" | ||
bitcoin = "https://github.com/dfinity/motoko-bitcoin#ad3709363bf980d2cab45cce0dea7eda5c97a7ff" | ||
# sha2 is a transitive dependency and should be removed when `bitcoin` is published on `mops` | ||
sha2 = "0.1.0" | ||
bitcoin = "0.1.0" |
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
Oops, something went wrong.