Commit b8c5dac
committed
miniscript: add Rust miniscript and bitcoin deps
rust-miniscript implements miniscrpit for the `wsh()` (Pay to witness
script hash) context as well as for the `tr()` context (Pay to
taproot). We use this dep as it works out of the box. The downside is
that this library uses a lot of generics and binary-size-inefficent
code. We could address much of that with PRs upstream, or in the worst
case roll our own miniscript implementation that is space-efficient in
the future.
The rust-bitcoin dep is needed explicitly as rust-miniscript requires
the `bitcoin::PublicKey` type to serialize pubkeys inside of
miniscript expressions. Maybe we can make upstream changes that allow
us to use our own types for that, as we already have all the code
needed to serialize pubkeys. rust-bitcoin is a dependency to
rust-miniscript as rust-bitcoin contains the necessary script
generation functions.
secp256k1 and secp256k1-sys are also transitive dependencies, as
`bitcoin::PublicKey` is a re-export of `secp256k1::PublicKey`. Also
here, we might be able to make upstream changes to remove the reliance
on these deps.
bech32 is updated to 0.9 as that is used by rust-bitcoin, so we don't
vendor two versions of the same lib.1 parent 0a88519 commit b8c5dac
File tree
646 files changed
+228124
-601
lines changed- src
- rust
- bitbox02-rust
- vendor
- ahash
- src
- tests
- bech32
- src
- bip32-ed25519
- bitcoin-private
- src
- hex
- bitcoin_hashes
- src
- bitcoin
- examples
- src
- blockdata
- locktime
- script
- consensus
- crypto
- merkle_tree
- network
- psbt
- map
- util
- cc
- src
- bin
- tests
- support
- core2
- src
- io
- tests
- getrandom
- benches
- src
- tests
- common
- hashbrown
- benches
- src
- external_trait_impls
- rayon
- raw
- tests
- hex_lit
- src
- libc
- src
- fuchsia
- unix
- aix
- bsd
- apple
- freebsdlike
- dragonfly
- freebsd
- freebsd11
- freebsd12
- freebsd13
- freebsd14
- netbsdlike
- netbsd
- openbsd
- haiku
- hermit
- linux_like
- android
- b32
- x86
- b64
- aarch64
- riscv64
- x86_64
- emscripten
- linux
- arch
- generic
- mips
- powerpc
- gnu
- b32
- arm
- m68k
- riscv32
- b64
- aarch64
- loongarch64
- mips64
- powerpc64
- riscv64
- sparc64
- x86_64
- musl
- b32
- mips
- riscv32
- x86
- b64
- riscv64
- x86_64
- uclibc
- arm
- mips
- mips32
- mips64
- x86_64
- newlib
- vita
- nto
- redox
- solarish
- vxworks
- windows
- memchr
- scripts
- src
- memchr
- x86
- memmem
- prefilter
- x86
- x86
- tests
- memchr
- miniscript
- contrib
- doc
- examples
- src
- descriptor
- interpreter
- miniscript
- types
- policy
- psbt
- once_cell
- examples
- src
- tests/it
- secp256k1-sys
- depend
- secp256k1
- build-aux/m4
- ci
- contrib
- doc
- examples
- include
- sage
- src
- asm
- modules
- ecdh
- extrakeys
- recovery
- schnorrsig
- src
- wasm
- wasm-sysroot
- secp256k1
- contrib
- examples
- githooks
- src
- ecdsa
- tests
- wasi
- src
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
646 files changed
+228124
-601
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
214 | 214 | | |
215 | 215 | | |
216 | 216 | | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
217 | 220 | | |
218 | 221 | | |
219 | 222 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | 56 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
0 commit comments