Skip to content

Commit

Permalink
Add Rust formatting config and README (#6)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphjaph authored Jul 28, 2024
1 parent 0cd876d commit d1313aa
Show file tree
Hide file tree
Showing 3 changed files with 299 additions and 284 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,14 @@ Implements
[BIP-322](https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki),
generic message signing and verification.


## Types of Signatures

- simple (only witness stack, consensus encoded, base64)
- full (base64 encoded `to_sign`)
- proof-of-funds (add utxos to `to_sign`)
- No need to implement legacy

## Test Vectors

https://github.com/bitcoin/bitcoin/blob/29b28d07fa958b89e1c7916fda5d8654474cf495/src/test/util_tests.cpp#L2747
6 changes: 6 additions & 0 deletions rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
edition = "2021"
max_width = 100
newline_style = "Unix"
tab_spaces = 2
use_field_init_shorthand = true
use_try_shorthand = true
Loading

0 comments on commit d1313aa

Please # to comment.