Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2611 commits
Select commit Hold shift + click to select a range
31c46d7
Merge rust-bitcoin/rust-bitcoin#2058: Bump actions/cache from 2 to 3
apoelstra Sep 9, 2023
ddcf705
Bump actions/checkout from 2 to 4
dependabot[bot] Sep 9, 2023
518b1dc
Merge rust-bitcoin/rust-bitcoin#2056: Bump actions/checkout from 2 to 4
apoelstra Sep 10, 2023
9677247
Merge rust-bitcoin/rust-bitcoin#2022: Make Encodable/Decodable usage …
apoelstra Sep 10, 2023
5a9d707
Merge rust-bitcoin/rust-bitcoin#2025: Split witness version errors up
apoelstra Sep 10, 2023
26c27d9
Merge rust-bitcoin/rust-bitcoin#2060: fix(CI): `rust-toolchain` stable
apoelstra Sep 10, 2023
c34c709
CI: add an automated github releases on new tags
realeinherjar Sep 8, 2023
0f77afd
Bump actions/upload-artifact from 2 to 3
dependabot[bot] Sep 11, 2023
c98106e
Fix: IndexOutOfBoundsError Display impl has values in wrong order
junderw Sep 11, 2023
4da3db1
Merge rust-bitcoin/rust-bitcoin#2062: Bump actions/upload-artifact fr…
apoelstra Sep 11, 2023
374484c
Merge rust-bitcoin/rust-bitcoin#2063: Fix: IndexOutOfBoundsError Disp…
RCasatta Sep 12, 2023
25b81dd
Merge rust-bitcoin/rust-bitcoin#2048: hashes: Remove duplicate entry
RCasatta Sep 12, 2023
3dc75b5
Merge rust-bitcoin/rust-bitcoin#2041: Fix deprecation notice
RCasatta Sep 12, 2023
bbe4800
Merge rust-bitcoin/rust-bitcoin#2046: Add one ACK carve-out
apoelstra Sep 14, 2023
71a5fe2
Customize Debug implementation of absolute::LockTime
Subhra264 Sep 12, 2023
3489082
Pin syn to 2.0.32
tcharding Sep 18, 2023
f5bc9b3
Remove pinning docs from readme
tcharding Sep 18, 2023
e70836c
Merge rust-bitcoin/rust-bitcoin#2077: CI: Pin `syn`
apoelstra Sep 19, 2023
026a558
Fix: Script::count_sigops parsing should not return a Result
junderw Sep 17, 2023
acbf23a
Add `is_multisig` helper to Script type
clarkmoody Sep 18, 2023
f34ca0c
Move address.rs to address/mod.rs
tcharding Aug 4, 2023
b2e485e
Split the address error code out into a separate module
tcharding Aug 4, 2023
9d7791f
Remove unnecessary self:: from error import
tcharding Aug 4, 2023
e2014cb
Import error variants within dislay impl
tcharding Aug 4, 2023
0f536e8
Add new UnknownAddressTypeError for parsing address type
tcharding Aug 4, 2023
e0eaeaa
Split ParseError out of Error
tcharding Aug 4, 2023
47d6d78
Remove bip 173/350 test vectors
tcharding Aug 4, 2023
52f2332
Remove docs from witness version conversion functions
tcharding Aug 4, 2023
cd15c74
Feature: Instruction can read the script number
junderw Sep 20, 2023
f5b1788
Merge rust-bitcoin/rust-bitcoin#2081: Feature: Instruction can read t…
apoelstra Sep 20, 2023
6e6847a
Merge rust-bitcoin/rust-bitcoin#2075: Bugfix: Script::count_sigops sh…
apoelstra Sep 20, 2023
f4c83b4
Merge rust-bitcoin/rust-bitcoin#2078: Script helper to classify bare …
apoelstra Sep 20, 2023
3b9bc9a
Merge rust-bitcoin/rust-bitcoin#2038: Re-export Opcode
apoelstra Sep 20, 2023
a2a4efb
Merge rust-bitcoin/rust-bitcoin#1975: Prepare for using new bech32 re…
apoelstra Sep 20, 2023
c950ef4
Add transaction::Version data type
tcharding Aug 18, 2023
e4c7e01
Use the new bech32 iterator API
tcharding Aug 4, 2023
95b7a95
test: correct psbt used for regression test
Subhra264 Aug 24, 2023
f80ec98
Merge rust-bitcoin/rust-bitcoin#2002: Remove unnecessary reference
apoelstra Sep 21, 2023
36805b5
Merge rust-bitcoin/rust-bitcoin#1994: Remove redundant segwit version…
apoelstra Sep 21, 2023
fc52fd9
Merge rust-bitcoin/rust-bitcoin#2045: Use correct terminology: carve out
apoelstra Sep 21, 2023
eda7e7d
Merge rust-bitcoin/rust-bitcoin#2068: Fixes #2011: Customize Debug im…
apoelstra Sep 21, 2023
f71948a
Merge rust-bitcoin/rust-bitcoin#2021: Move and rename `XpubIdentifier`
apoelstra Sep 21, 2023
c32c7d1
Merge rust-bitcoin/rust-bitcoin#2026: Use valid Psbt for serde regres…
apoelstra Sep 21, 2023
158ba26
Feature: Count sigops for Transaction
junderw Sep 20, 2023
675fd54
Merge rust-bitcoin/rust-bitcoin#1951: Use newly released bech32 API
apoelstra Sep 21, 2023
34b20df
Remove unused internals dependency
tcharding Sep 22, 2023
141d805
Merge rust-bitcoin/rust-bitcoin#2073: Feature: Count sigops for Trans…
apoelstra Sep 22, 2023
29f20c1
Add segwit serialization constants
tcharding Sep 17, 2023
73f7fbf
Add code comments to transaction serialization
tcharding Sep 17, 2023
72a7280
Merge pull request #2006 from tcharding/08-18-tx-version
clarkmoody Sep 23, 2023
f31fb08
Remove default impl from transaction version
tcharding Sep 24, 2023
8cd409d
Deprecate push_bitcoin_signature
tcharding Sep 21, 2023
79f2157
bitcoin: Grab changelog entry from 0.30.1 release
tcharding Jul 23, 2023
24e5e19
Add changelog entries
tcharding Jul 24, 2023
c34e3cc
Re-write size/weight API
tcharding Sep 17, 2023
9fa2111
Bump model-checking/kani-github-action from 0.36 to 0.37
dependabot[bot] Sep 25, 2023
55c5408
Merge rust-bitcoin/rust-bitcoin#2091: Remove default impl from transa…
apoelstra Sep 25, 2023
19a723c
Merge rust-bitcoin/rust-bitcoin#2092: Bump model-checking/kani-github…
apoelstra Sep 25, 2023
c31b933
Merge rust-bitcoin/rust-bitcoin#1952: Add changelog entries
apoelstra Sep 25, 2023
5901d35
Add push_p2wpkh function on Witness
tcharding Sep 20, 2023
1c29dd9
Merge rust-bitcoin/rust-bitcoin#2084: Add `Witness::p2wpkh` constructor
apoelstra Sep 26, 2023
0de8ec5
Merge rust-bitcoin/rust-bitcoin#2076: Re-write the weight/size API
apoelstra Sep 26, 2023
c3d4d8a
Merge rust-bitcoin/rust-bitcoin#2087: hashes: Remove unnecessary depe…
apoelstra Sep 26, 2023
6b9d76d
Merge rust-bitcoin/rust-bitcoin#2050: CI: add an automated github rel…
apoelstra Sep 27, 2023
dac627c
Feature: Psbt fee checks
junderw Sep 11, 2023
a0540bd
Merge rust-bitcoin/rust-bitcoin#2064: Feature: Psbt fee checks
apoelstra Sep 29, 2023
8eff4d0
Remove private hex test macro
tcharding Aug 10, 2023
3b60ad5
example: Modify `taproot-psbt.rs` to make the use of prevouts clearer.
ssantos21 Sep 19, 2023
bd9c412
Merge rust-bitcoin/rust-bitcoin#2082: example: Modify `taproot-psbt.r…
apoelstra Oct 1, 2023
f949fed
Bump model-checking/kani-github-action from 0.37 to 1.0
dependabot[bot] Oct 2, 2023
fcd4ad5
Merge rust-bitcoin/rust-bitcoin#1389: Add `PartialMerkleTree::calc_tr…
apoelstra Oct 3, 2023
d835d31
Merge rust-bitcoin/rust-bitcoin#2100: Bump model-checking/kani-github…
apoelstra Oct 3, 2023
39314ad
Move error code to match conventional layout
tcharding Oct 4, 2023
2fb71dd
Move p2p error types to bottom of file
tcharding Oct 4, 2023
5658dac
Add suffix to UnknownChainHash error type
tcharding Oct 4, 2023
f41416a
Add suffix to UnknownMagic error type
tcharding Oct 4, 2023
2b40ea2
Add suffix to IncompleteBuilder error type
tcharding Oct 4, 2023
6933ca4
Add suffix to HiddenNodes error type
tcharding Oct 4, 2023
2512dba
Remove impl_std_error macro
tcharding Oct 4, 2023
43d3306
Use explicit error::Error impl instead of the default
tcharding Oct 4, 2023
10374af
Make error types uniform
tcharding Oct 4, 2023
a1538a4
rand-std should enable std
sanket1729 Oct 4, 2023
685e510
Add wasm dev-deps using CI script
tcharding Oct 4, 2023
7d54cd3
Fix typo in docs
tcharding Oct 5, 2023
be8aee6
Remove stale link
tcharding Oct 5, 2023
a5b39fa
Merge rust-bitcoin/rust-bitcoin#2105: Trivial docs fixes
sanket1729 Oct 5, 2023
b549faa
Merge rust-bitcoin/rust-bitcoin#2102: rand-std should enable std
apoelstra Oct 5, 2023
3743f27
Merge rust-bitcoin/rust-bitcoin#2101: Audit error types code base wide
apoelstra Oct 6, 2023
2bd1e73
Merge rust-bitcoin/rust-bitcoin#2104: Add wasm dev-deps using CI script
apoelstra Oct 6, 2023
eab9f89
Merge rust-bitcoin/rust-bitcoin#1986: Remove private hex test macro
apoelstra Oct 6, 2023
4537634
ci: bump rustc to 1.60 for fuzz test
vincenzopalazzo Oct 6, 2023
05d3dc5
Remove redundant guard
tcharding Oct 6, 2023
98513ef
clippy: more worning fixes
vincenzopalazzo Oct 7, 2023
6b5d06f
ci: fix the byteorder to 1.4.3 for edition 2018
vincenzopalazzo Oct 7, 2023
342a35b
Merge rust-bitcoin/rust-bitcoin#2109: ci: bump rustc to 1.60 for fuzz…
apoelstra Oct 7, 2023
3e6021b
ci: fuzz test YAML toolchain future-proof
realeinherjar Oct 7, 2023
63b98a5
Merge rust-bitcoin/rust-bitcoin#2112: ci: fuzz test YAML toolchain fu…
apoelstra Oct 8, 2023
33ee49f
Update bech32 dependency
tcharding Oct 9, 2023
2095fae
Merge rust-bitcoin/rust-bitcoin#2117: Update bech32 dependency
apoelstra Oct 9, 2023
818a3c5
Use Keypair instead of KeyPair in identifiers
tcharding Oct 2, 2023
6f30ac9
Upgrade the secp dependency
tcharding Oct 2, 2023
20f3a05
ci: replace fuzz toolchain
realeinherjar Oct 8, 2023
539f4ba
apoelstra run of generate-files.sh
apoelstra Oct 10, 2023
678eee8
Use Message::from_digest
tcharding Oct 10, 2023
38005f6
Use Target for pow_limit
tcharding Oct 10, 2023
90a95f6
Merge rust-bitcoin/rust-bitcoin#2116: ci(fuzz): replace toolchain and…
apoelstra Oct 11, 2023
d67590e
Merge rust-bitcoin/rust-bitcoin#2098: Upgrade secp dependency
sanket1729 Oct 12, 2023
e0ddead
Merge rust-bitcoin/rust-bitcoin#2107: Use `Target` as type for `pow_l…
apoelstra Oct 12, 2023
6731e85
bitcoin: Bump version to 0.31.0-rc1
tcharding Oct 2, 2023
ef0a958
Merge rust-bitcoin/rust-bitcoin#2118: Tracking PR for release `v0.31.…
apoelstra Oct 14, 2023
9e4a784
Move psbt macro to the psbt test module
yancyribbens Sep 30, 2023
b166442
Replace hex_psbt macro with test helper function
yancyribbens Oct 2, 2023
2ecab31
Remove stale comment and map_err
yancyribbens Oct 6, 2023
b108ffa
Implement manual fmt::Debug for BlockHeader to include block hash
stevenroose Oct 17, 2023
37daf46
Merge rust-bitcoin/rust-bitcoin#2126: Implement manual fmt::Debug for…
apoelstra Oct 17, 2023
178069c
Add changelog entries for v0.31.0
tcharding Oct 18, 2023
79dfe8d
justfile: Add update-lock-files command
tcharding Oct 18, 2023
38960ab
Bump version to 0.31.0-rc2
tcharding Oct 18, 2023
10c1f7b
encode: Implement encoding traits on Vec<BlockHeader>
stevenroose Oct 18, 2023
3a95365
Merge rust-bitcoin/rust-bitcoin#2124: Tracking PR for `v0.31.0-rc2` r…
apoelstra Oct 19, 2023
fe07c13
Merge rust-bitcoin/rust-bitcoin#2131: encode: Implement encoding trai…
apoelstra Oct 19, 2023
bf08ee4
Replace helper macro with helper function
yancyribbens Oct 19, 2023
7f26439
Add track_caller to test helper functions
yancyribbens Oct 20, 2023
b163d9b
Replace hex_script macro with a helper function
yancyribbens Oct 20, 2023
d391ada
ci: nightly rustfmt PR scheduled/manual
realeinherjar Oct 21, 2023
e436b5b
Merge rust-bitcoin/rust-bitcoin#2132: Replace helper macro with helpe…
apoelstra Oct 22, 2023
49674be
Merge rust-bitcoin/rust-bitcoin#2135: ci: automated nightly rustfmt s…
apoelstra Oct 22, 2023
b7f11d4
Remove unnecessary clippy attribute on absolute::LockTime
stevenroose Oct 23, 2023
f522a02
Remove unnecessary clippy attribute on relative::LockTime
stevenroose Oct 23, 2023
750ee2b
Remove unnecessary clippy attribute on is_sighash_single_bug
stevenroose Oct 23, 2023
8755455
Add clippy exceptions for needless_question_mark lint
stevenroose Oct 20, 2023
4c66132
Merge rust-bitcoin/rust-bitcoin#2138: Remove several unnecessary clip…
apoelstra Oct 23, 2023
1eb6e0c
Merge rust-bitcoin/rust-bitcoin#2134: Add clippy exceptions for needl…
apoelstra Oct 24, 2023
5d43ad7
Fix a small typo in 'contrib/test.sh'
romanz Oct 25, 2023
4d12a07
Merge rust-bitcoin/rust-bitcoin#2142: Fix a small typo in 'contrib/te…
apoelstra Oct 25, 2023
2a891e0
Add a missing link to #2006 in 'bitcoin/CHANGELOG.md'
lateminer Oct 26, 2023
a4f5788
Merge rust-bitcoin/rust-bitcoin#2143: Add a missing link to #2006 in …
apoelstra Oct 27, 2023
7246585
Merge rust-bitcoin/rust-bitcoin#2096: Move psbt macro to the psbt tes…
apoelstra Oct 27, 2023
efedf86
bitcoin: Bump version number to v0.31.0
tcharding Oct 24, 2023
60318c4
Merge rust-bitcoin/rust-bitcoin#2140: bitcoin: Tracking PR for releas…
apoelstra Oct 28, 2023
f6e73ff
fix: FeeRate::checked_mul_by_weight should scale output down by 1000
conduition Nov 9, 2023
ad5b119
Add deprecated bip32 types back in
tcharding Dec 7, 2023
cfa018c
Bump version to 0.31.1
tcharding Jan 9, 2024
866781d
merkle_block: add resource limit check during deserialization
apoelstra Mar 17, 2024
f7005a2
Merge rust-bitcoin/rust-bitcoin#2614: merkle_block: add resource limi…
apoelstra Apr 2, 2024
a5650d8
release 0.31.1
apoelstra Apr 2, 2024
acd2c47
Merge rust-bitcoin/rust-bitcoin#2648: release 0.31.2
apoelstra Apr 2, 2024
6b5ab52
Rename bitcoin dir to tapyrus
rantan May 30, 2024
cf244c7
Rename create name to tapyrus
rantan May 30, 2024
f743168
Rename internals and hashes creates name to tapyrus
rantan May 31, 2024
504e05d
Update protocol version
rantan May 31, 2024
9f81eb5
Fmt with `cargo +nightly fmt`
rantan May 31, 2024
b31fe22
Add update_on_bitcoin_0.31.x branch to the targets of CI
rantan Jun 3, 2024
38d5a00
Rename CI settings to tapyrus
rantan Jun 3, 2024
f557745
Rename CI settings to tapyrus
rantan Jun 4, 2024
7e9d8b6
Update lock files
rantan Jun 5, 2024
9c5e6e2
Bump up the MSRV to 1.56.1
rantan Jun 5, 2024
a6f75ef
Remove public re-exports from private module
tcharding Oct 31, 2023
64440bc
Lint with nightly
Kixunil Dec 8, 2023
2240f68
Remove Push enum
tcharding Jan 8, 2024
b9671a4
Don't match on complex expression
Kixunil Dec 19, 2023
52c2015
Fix lint issues
rantan Jun 5, 2024
83daef8
Fix lint issues for nightly
rantan Jun 5, 2024
4edb326
Add schnorr singature implementation
rantan May 31, 2024
047ff80
Add consensus encode for Optional type
rantan Jun 6, 2024
d84443f
Stop testing cross and embedded
rantan Jun 6, 2024
bd8ceaf
Fix typo
rantan Jun 7, 2024
85d26c9
Remove unnecessary comment
rantan Jun 7, 2024
b8837e2
Merge pull request #40 from chaintope/port_schnorr_signature
Yamaguchi Jun 7, 2024
7bb2c4b
Remove nonce field from Block header
Yamaguchi Jun 7, 2024
9d0f929
Remove bits field from Block header
Yamaguchi Jun 7, 2024
2db310e
Add immutable merkle root field to BlockHeader
Yamaguchi Jun 7, 2024
3225e01
Add proof field to BlockHeader
Yamaguchi Jun 7, 2024
befd9e0
Clean up test data
Yamaguchi Jun 7, 2024
d0f7849
Use schnorr::Signature as Header#proof field
Yamaguchi Jun 7, 2024
90133ce
Update network magic bytes
Yamaguchi Jun 7, 2024
286504e
Remove unused parameters in chain params
Yamaguchi Jun 7, 2024
aacb0c4
Update network magic bytes in Regtest mode
Yamaguchi Jun 7, 2024
44e5439
Remove PoW functions
Yamaguchi Jun 7, 2024
9e3f57e
Support paradium
Yamaguchi Jun 8, 2024
069f848
Fix calculation of immutable merkle root
Yamaguchi Jun 8, 2024
e198f0e
Add test case
Yamaguchi Jun 8, 2024
2adf7b4
Change method name maltxid -> malfix_txid
Yamaguchi Jun 8, 2024
afe2961
Fix/Ignore failed test cases
Yamaguchi Jun 8, 2024
21880a0
Merge pull request #42 from chaintope/update_field_in_block
rantan Jun 10, 2024
767f06f
Implement Decordable/Encodable for util::key::PublicKey
Yamaguchi Dec 24, 2019
376459f
Add aggregated pubkey to BlockHeader
Yamaguchi Jun 4, 2024
87bc8cc
Fix build error on Rust 1.22.0
Yamaguchi Dec 25, 2019
012f1fc
Support xfield for rust-tapyrus
Yamaguchi Jun 5, 2024
136de32
Use core crate instead of std crate
Yamaguchi Jun 10, 2024
369f963
Fix is_coin_base. It should return true even if vout is not -1
rantan Jun 10, 2024
b176d75
Merge pull request #44 from chaintope/port_is_coinbase
Yamaguchi Jun 10, 2024
6190d2a
Version in block header should implement std::marker::Copy
Yamaguchi Jun 10, 2024
dfa0955
Merge pull request #43 from chaintope/merge_pull_for_modify_block_header
rantan Jun 10, 2024
1666a86
Add a hash type 'BlockSigHash' for signing blocks
Yamaguchi Jun 5, 2024
4e0a3b6
Merge pull request #45 from chaintope/merge_pr_12
rantan Jun 11, 2024
15065f3
Add a hash type 'BlockSigHash' for signing blocks
Yamaguchi Jun 5, 2024
8f2045f
Support new network mode (Prod and Dev)
Yamaguchi Dec 24, 2019
b3a8225
Fix comment
Yamaguchi Jun 11, 2024
77d9a67
Fix CI error
Yamaguchi Jun 11, 2024
e46bdd9
Remove segwit address support
Yamaguchi Jun 11, 2024
a2704d7
Remove code related to segwit and taproot
Yamaguchi Jun 11, 2024
68f4cb4
Add OP_RETURN opcode
rantan Jun 10, 2024
74d15de
Add ColorIdentifier struct
rantan Jun 11, 2024
b441cb1
Remove UnknownChainHashError
Yamaguchi Jun 12, 2024
6d45a2d
Merge pull request #46 from chaintope/merge_pr_14
rantan Jun 13, 2024
84b7381
Merge pull request #47 from chaintope/merge_pr_15
rantan Jun 13, 2024
234460e
Merge pull request #48 from chaintope/port_colored_coin
Yamaguchi Jun 13, 2024
503bdec
Implement Dislay and Decodable to the ColoreIdentifier
rantan Jun 13, 2024
ead21db
Add TPC token types
rantan Jun 13, 2024
0fc6855
Add utility methods for multisig script
Yamaguchi Jun 13, 2024
2713d28
Use 'TPC/tapyrus' instead 'BTC/satoshi' as the unit
Yamaguchi Jun 12, 2024
dea9e7e
Merge pull request #50 from chaintope/port_pr_23
Yamaguchi Jun 13, 2024
4b66524
Merge pull request #51 from chaintope/port_pr_28
rantan Jun 13, 2024
5b8f1c2
Merge pull request #49 from chaintope/merge_pr_29
rantan Jun 13, 2024
de26a5b
Add cp2pkh and cp2sh address format support
rantan Jun 13, 2024
0b1c483
Merge pull request #52 from chaintope/merge_pr_30
rantan Jun 13, 2024
59da70c
Add the network environment constants defined below
Yamaguchi Jun 13, 2024
19f5cfb
Implement FromStr trait to NetworkId
Yamaguchi Jun 13, 2024
59e3f0d
Add max block size xfield
rantan Jun 14, 2024
cc73e52
Update tapyrus/src/address/mod.rs
rantan Jun 14, 2024
dbdeaa3
Merge pull request #55 from chaintope/merge_pr_34
rantan Jun 14, 2024
cefce24
Merge pull request #53 from chaintope/port_pr_32_and_33
rantan Jun 14, 2024
6b1ed79
Support serde feature for NetworkId
Yamaguchi Jun 13, 2024
06215a4
Merge pull request #54 from chaintope/merge_pr_18_and_19
rantan Jun 14, 2024
d8a3ec7
Merge pull request #56 from chaintope/port_pr_35
Yamaguchi Jun 14, 2024
6087bec
Add signature_hash xfield
Yamaguchi Jun 14, 2024
d9cabfd
Merge pull request #58 from chaintope/merge_pr_36
rantan Jun 17, 2024
1137918
Enable pending test
Yamaguchi Jun 17, 2024
50c0d28
Replace rug crate to num-bigint
Yamaguchi Jun 17, 2024
37b2b24
Fix test case for p2wpkh
Yamaguchi Jun 17, 2024
49713b2
Update Cargo.lock
Yamaguchi Jun 18, 2024
791b9d1
Update tapyrus/src/lib.rs
Yamaguchi Jun 19, 2024
2e9a8a4
Merge pull request #59 from chaintope/cross_test
rantan Jun 19, 2024
cf33c60
Implment color_id method for Tapyrus::Script
Yamaguchi Jul 1, 2024
2bf24c1
Merge pull request #61 from chaintope/impl_color_id_for_script
rantan Jul 2, 2024
f4597f6
Remove segwit tx serialize, deserialize
rantan Jul 4, 2024
86f2a78
Fix testcases for removing segwit serialize, deserialize support
rantan Jul 3, 2024
a92c865
Fix fuzzing test
rantan Jul 4, 2024
1c1f023
Ignore Transaction verify test
rantan Jul 5, 2024
236259a
Merge pull request #63 from chaintope/deprecates_segwit_functions
Yamaguchi Jul 8, 2024
fa86076
Modify Transaction::malfix_txid returns MalFixTxid struct
rantan Jul 4, 2024
bff1350
Use MalFixTxid as OutPoints txid
rantan Jul 8, 2024
2fc0445
Implement ScripBuf#remove_color
Yamaguchi Jul 10, 2024
d29dc67
Merge pull request #67 from chaintope/remove_color_from_script_pubkey
rantan Jul 17, 2024
331dbf1
Merge pull request #66 from chaintope/use_malfix_txid_as_default_txid
rantan Jul 18, 2024
2a21dce
Modify BIP 32 seed phrase to "Tapyrus Seed"
rantan Jul 24, 2024
a5d93bc
Merge pull request #68 from chaintope/modify_bip32_seed_phrase
rantan Jul 25, 2024
01a2ef7
Add colored output dust value
rantan Aug 2, 2024
c3c5b27
Merge pull request #69 from chaintope/dust_value_for_color_output
rantan Aug 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .actrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
-e contrib/act/event.json
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Set update schedule for GitHub Actions
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
# Check for updates to GitHub Actions every week
interval: "weekly"
77 changes: 77 additions & 0 deletions .github/workflows/fuzz.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# Automatically generated by fuzz/generate-files.sh
name: Fuzz

on:
push:
branches:
- update_on_bitcoin_0.31.x
- master
- 'test-ci/**'
pull_request:

jobs:
fuzz:
if: ${{ !github.event.act }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
fuzz_target: [
tapyrus_deserialize_address,
tapyrus_deserialize_amount,
tapyrus_deserialize_block,
tapyrus_deserialize_prefilled_transaction,
tapyrus_deserialize_psbt,
tapyrus_deserialize_script,
tapyrus_deserialize_transaction,
tapyrus_deserialize_witness,
tapyrus_deser_net_msg,
tapyrus_outpoint_string,
tapyrus_script_bytes_to_asm_fmt,
hashes_cbor,
hashes_json,
hashes_ripemd160,
hashes_sha1,
hashes_sha256,
hashes_sha512_256,
hashes_sha512,
]
steps:
- name: Install test dependencies
run: sudo apt-get update -y && sudo apt-get install -y binutils-dev libunwind8-dev libcurl4-openssl-dev libelf-dev libdw-dev cmake gcc libiberty-dev
- uses: actions/checkout@v4
- uses: actions/cache@v3
id: cache-fuzz
with:
path: |
~/.cargo/bin
fuzz/target
target
key: cache-${{ matrix.target }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: '1.65.0'
- name: fuzz
run: |
if [[ "${{ matrix.fuzz_target }}" =~ ^bitcoin ]]; then
export RUSTFLAGS='--cfg=hashes_fuzz --cfg=secp256k1_fuzz'
fi
echo "Using RUSTFLAGS $RUSTFLAGS"
cd fuzz && ./fuzz.sh "${{ matrix.fuzz_target }}"
- run: echo "${{ matrix.fuzz_target }}" >executed_${{ matrix.fuzz_target }}
- uses: actions/upload-artifact@v3
with:
name: executed_${{ matrix.fuzz_target }}
path: executed_${{ matrix.fuzz_target }}

verify-execution:
if: ${{ !github.event.act }}
needs: fuzz
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v3
- name: Display structure of downloaded files
run: ls -R
- run: find executed_* -type f -exec cat {} + | sort > executed
- run: source ./fuzz/fuzz-util.sh && listTargetNames | sort | diff - executed
15 changes: 15 additions & 0 deletions .github/workflows/gh-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: GitHub Release

on:
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ncipollo/release-action@v1
with:
generateReleaseNotes: true
14 changes: 14 additions & 0 deletions .github/workflows/kani.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# From https://model-checking.github.io/kani/install-github-ci.html
name: Kani CI
on:
schedule:
- cron: '59 23 * * *' # midnight every day.
jobs:
run-kani:
runs-on: ubuntu-20.04
steps:
- name: 'Checkout your code.'
uses: actions/checkout@v4

- name: 'Run Kani on your code.'
uses: model-checking/kani-github-action@v1.0
22 changes: 22 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
on:
push:
branches:
- master
- 0.28.x
- 0.29.x
- 'test-ci/**'
pull_request:

name: Release

jobs:
release:
name: Release - dry-run
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v4
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@stable
- name: run cargo
run: contrib/release.sh
172 changes: 172 additions & 0 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
on:
push:
branches:
- master
- update_on_bitcoin_0.31.x
- 'test-ci/**'
pull_request:

name: Continuous integration

jobs:
Stable:
name: Test - stable toolchain
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout Crate
uses: actions/checkout@v4
- name: Checkout Toolchain
# https://github.com/dtolnay/rust-toolchain
uses: dtolnay/rust-toolchain@stable
- name: Running test script
env:
DO_COV: true
AS_DEPENDENCY: false
DO_NO_STD: true
DO_DOCS: true
DO_FEATURE_MATRIX: true
DO_SCHEMARS_TESTS: true # Currently only used in hashes crate.
run: ./contrib/test.sh

Beta:
name: Test - beta toolchain
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout Crate
uses: actions/checkout@v4
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@beta
- name: Running test script
env:
AS_DEPENDENCY: false
DO_NO_STD: true
run: ./contrib/test.sh

Nightly:
name: Test - nightly toolchain
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout Crate
uses: actions/checkout@v4
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Install clippy
run: rustup component add clippy
- name: Running test script
env:
DO_LINT: true
DO_FMT: false
DO_BENCH: true
AS_DEPENDENCY: false
DO_NO_STD: true
DO_DOCSRS: true
run: ./contrib/test.sh

MSRV:
name: Test - 1.56.1 toolchain
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- name: Checkout Crate
uses: actions/checkout@v4
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: "1.56.1"
- name: Running test script
env:
DO_FEATURE_MATRIX: true
DO_NO_STD: true
run: ./contrib/test.sh

Arch32bit:
name: Test 32-bit version
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v4
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Add architecture i386
run: sudo dpkg --add-architecture i386
- name: Install i686 gcc
run: sudo apt-get update -y && sudo apt-get install -y gcc-multilib
- name: Install target
run: rustup target add i686-unknown-linux-gnu
- name: Run test on i686
run: cargo test --target i686-unknown-linux-gnu

Cross:
name: Cross test
if: ${{ !github.event.act }}
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v4
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install target
run: rustup target add s390x-unknown-linux-gnu
- name: install cross
run: cargo install cross --locked
- name: run cross test
run: cross test --target s390x-unknown-linux-gnu

Embedded:
name: Embedded test
runs-on: ubuntu-latest
env:
RUSTFLAGS: "-C link-arg=-Tlink.x"
CARGO_TARGET_THUMBV7M_NONE_EABI_RUNNER: "qemu-system-arm -cpu cortex-m3 -machine mps2-an385 -nographic -semihosting-config enable=on,target=native -kernel"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up QEMU
run: sudo apt update && sudo apt install -y qemu-system-arm gcc-arm-none-eabi
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@nightly
with:
targets: thumbv7m-none-eabi
- name: Install src
run: rustup component add rust-src
- name: Run tapyrus/embedded
run: cd tapyrus/embedded && cargo run --target thumbv7m-none-eabi
- name: Run hashes/embedded no alloc
run: cd hashes/embedded && cargo run --target thumbv7m-none-eabi
- name: Run hashes/embedded with alloc
run: cd hashes/embedded && cargo run --target thumbv7m-none-eabi --features=alloc

ASAN:
name: Address sanitizer # hashes crate only.
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v4
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@nightly
- name: Install src
run: rustup component add rust-src
- name: Running address sanitizer
env:
DO_ASAN: true
run: cd hashes && ./contrib/test.sh

WASM:
name: WebAssembly Build # hashes crate only.
runs-on: ubuntu-latest
steps:
- name: Checkout Crate
uses: actions/checkout@v4
- name: Checkout Toolchain
uses: dtolnay/rust-toolchain@stable
- name: Running WASM build
env:
DO_WASM: true
run: cd hashes && ./contrib/test.sh
26 changes: 26 additions & 0 deletions .github/workflows/rustfmt.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Nightly rustfmt
on:
schedule:
- cron: "0 0 * * 0" # runs weekly on Sunday at 00:00
workflow_dispatch: # allows manual triggering
jobs:
format:
name: Nightly rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Run Nightly rustfmt
run: cargo +nightly fmt
- name: Get the current date
run: echo "date=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5
with:
title: Automated nightly rustfmt (${{ env.date }})
body: |
Automated nightly `rustfmt` changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action
commit-message: ${{ env.date }} automated rustfmt nightly
labels: rustfmt
24 changes: 17 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,20 @@
target
# .gitignore for rust-tapyrus repository workspace.

# Lock files
Cargo.lock
internals/Cargo.lock
tapyrus/Cargo.lock
hashes/Cargo.lock

# Build artifacts
target
internals/target
tapyrus/target
hashes/target

#fuzz
fuzz/hfuzz_target
fuzz/hfuzz_workspace
# Test artifacts
tapyrus/dep_test

#IntelliJ project files
.idea
*.iml
# Fuzz artifacts
hfuzz_target
hfuzz_workspace
Loading
Loading