Jean-Pierre De Jesus DIAZ
a0bb29c05e
Fix typo in variable documentation
...
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-03-13 12:12:39 +01:00
Jean-Pierre De Jesus DIAZ
f429e9b68e
Fix .editorconfig indent style
...
Signed-off-by: Jean-Pierre De Jesus DIAZ <me@jeandudey.tech>
2023-03-13 11:46:34 +01:00
Steven Roose
0f52eca5d9
Merge pull request #47 from rust-bitcoin/ci-rm-nightly
...
ci: Remove nightly section that is unused
2023-03-01 21:45:52 +00:00
Steven Roose
c641cccad9
ci: Remove nightly section that is unused
2023-02-28 03:42:03 +00:00
Steven Roose
a30760beac
Merge pull request #41 from rust-bitcoin/msrv-1.41
...
Enable 2018 edition, bump MSRV to 1.41 and bump to v2.0.0
2023-02-28 02:53:10 +00:00
Steven Roose
8f43d91d3f
Merge pull request #45 from rust-bitcoin/github-ci
...
Add github actions files for CI
2023-02-28 02:52:48 +00:00
Steven Roose
f41bf1789d
Update CHANGELOG and bump to v2.0.0
2023-02-27 21:24:00 +00:00
Steven Roose
c827c39943
Bump unicode-normalization dependency to 0.1.22
2023-02-27 21:23:59 +00:00
Steven Roose
8e6ba6de9b
Make rand_core optional and expose rand and rand_core crates
2023-02-27 21:23:57 +00:00
Steven Roose
f348415f11
Reorganize dependencies in Cargo.toml
2023-02-27 21:23:56 +00:00
Steven Roose
8d0f5e0d2f
Bump MSRV to 1.41.1 in README
...
s!Bump MSRV to 1.41 in README and CI
2023-02-27 21:23:55 +00:00
Steven Roose
6662e7566b
Make rand and rand_core deps more flexible
2023-02-27 21:23:53 +00:00
Steven Roose
c821ec4aa8
Remove [lib] section from manifest
2023-02-27 21:20:49 +00:00
Steven Roose
71d4329979
Set edition to 2018
2023-02-27 21:20:47 +00:00
Steven Roose
893a777400
Remove .travis.yml
2023-02-27 21:19:25 +00:00
Steven Roose
49d4369838
Add github actions files for CI
2023-02-27 21:16:26 +00:00
Steven Roose
ca53ee34a8
Make serde usable in no_std
2023-02-27 21:16:24 +00:00
Steven Roose
e7155f153d
Merge pull request #44 from rust-bitcoin/bump-1.2.0
...
Rename new method to be in line with existing API and release v1.2.0
2023-02-26 23:35:49 +00:00
Steven Roose
1d83393b8d
Bump to v1.2.0 and update changelog
2023-02-26 18:37:01 +00:00
Steven Roose
d3c96b1448
Rename new method to Mnemonic::parse_in_normalized_without_checksum_check
...
This is according with the other methods in the API.
2023-02-26 18:36:34 +00:00
Steven Roose
6b79d78c80
Make normalize_utf8_cow public
2023-02-26 18:36:09 +00:00
Steven Roose
89bf46164a
Merge pull request #43 from ayrat-forks/ayrat555/parse-without-checksum-check
...
Parse a mnemonic without checksum check
2023-02-26 15:54:19 +00:00
Ayrat Badykov
38f81b87d7
Parse a mnemonic without checksum check
...
In some situations, a user can come with mnemonic words himself. In
this case a mnemonic will fail the checksum check.
This pr implements a function to be able to parse a mnemonic without
checksum check
2023-02-26 08:23:52 +02:00
Steven Roose
266b715897
Merge pull request #40 from rust-bitcoin/bump-1.1.0
...
Update CHANGELOG and bump to v1.1.0
2023-02-23 15:26:19 +00:00
Steven Roose
19354c8a6c
Update CHANGELOG and bump to v1.1.0
2023-02-23 03:35:12 +00:00
Steven Roose
b668d05856
Merge pull request #34 from tcharding/11-15-document-zeroise-msrv
...
Document the MSRV when zeroize feature is enabled
2023-02-23 03:28:00 +00:00
Steven Roose
fed9a94a7d
Merge pull request #30 from pezcore/docfix/num-words
...
Fix Mnemonic documentation for supported wordcounts
2023-02-23 03:25:42 +00:00
Steven Roose
c1db4290c7
Merge pull request #25 from rust-bitcoin/enable-no-std
...
Enable no std usage
2023-02-23 02:53:59 +00:00
pezcore
593f4767f4
fix: Disply for Error::BadWordCount
...
This Display description of the BadWordCount variant incorrectly
complained stated that the word count is not a multiple of 6. The
correct criteria for valid word counts is now that it must be a multiple
of 3 between 12 and 24 inclusive, so the Display impl is fixed to be
more precise.
2023-01-28 16:26:43 -05:00
Tobin C. Harding
fc394f6995
Document the MSRV when zeroize feature is enabled
...
Enabling the `zeroize` raises the MSRV to 1.51
Add documentation to the README and also to the manifest.
2022-11-15 12:02:20 +11:00
pezcore
03dbb973cb
Fix Mnemonic documentation for supported wordcounts
2022-10-25 21:57:52 -04:00
Steven Roose
00d628f1a8
Merge pull request #13 from praveenperera/zeroize-support
...
Add optional zeroize support
2022-06-29 17:44:15 +01:00
Steven Roose
904e805f33
Bump non-exposed bitcoin_hashes dep to 0.11.0
...
This is not a breaking change.
2022-06-29 14:23:18 +01:00
Steven Roose
a2f4f5e896
Enable no-std usage
2022-06-29 14:22:16 +01:00
Steven Roose
120331643b
Merge pull request #24 from trevyn/patch-1
...
Remove "We currently don't implement seed generation from the phrase."
2022-06-29 14:16:45 +01:00
trevyn
30290800eb
Remove "We currently don't implement seed generation from the phrase."
...
This shows up prominently at https://docs.rs/bip39/1.0.1/bip39/index.html , but it appears that seed generation is indeed implemented in the `to_seed()` method.
2022-06-05 11:51:52 -04:00
Praveen Perera
e409dc2481
Replace deprecated `zeroize(drop)` with trait
2022-05-13 10:39:49 -04:00
Steven Roose
da090d223a
Merge pull request #20 from Dr-Julius-No/master
...
Make word list public; addresses #19
2022-05-13 13:48:52 +01:00
Steven Roose
aeccaf661a
Merge pull request #18 from tcharding/word-counts
...
Allow word count multiples of 3 instead of 6
2022-05-13 13:44:25 +01:00
Dr. No
f01e0b2de4
Make word list public; addresses #19
2022-03-01 23:29:05 -05:00
Tobin Harding
af958a253a
Add unit test for valid word counts
...
We just enabled word counts of 15, add a unit test that verifies all the
valid word count values.
2021-11-10 09:17:15 +11:00
Tobin Harding
60144920f3
Allow word count multiples of 3 instead of 6
...
BIP39 says
> The allowed size of ENT is 128-256 bits.
Once we add the checksum this is 132-264 bits. This is divided by 11 to
get the word count. From the BIP141
```
CS = ENT / 32
MS = (ENT + CS) / 11
| ENT | CS | ENT+CS | MS |
+-------+----+--------+------+
| 128 | 4 | 132 | 12 |
| 160 | 5 | 165 | 15 |
| 192 | 6 | 198 | 18 |
| 224 | 7 | 231 | 21 |
| 256 | 8 | 264 | 24 |
```
Currently we are limiting word count to be a multiple of 6, I do not
know why this is being done but from reading the BIP it seems that 15 is
a valid word count value.
Allow word count of 15 by checking the word count modulo 3 instead of
modulo 6. Since this check appears twice in the code, add a helper
function to reduce code duplication.
Fixes : #15
2021-11-10 09:17:14 +11:00
Praveen Perera
bb0f63298a
Use `zeroize_derive` feature instead of impl zeroize
2021-04-19 12:08:04 -04:00
Praveen Perera
a298344178
Add optional zeroize support
2021-04-19 11:49:43 -04:00
Steven Roose
520e15a6e5
Merge pull request #11 from rust-bitcoin/indices
...
Use indices internally instead of &'static str + language
2021-04-01 18:55:28 +01:00
Steven Roose
5599c455e3
Bump version to v1.0.1
2021-04-01 15:29:15 +01:00
Steven Roose
88819a0882
Make Mnemonic::language_of public
2021-04-01 14:57:57 +01:00
Steven Roose
3994ee95b0
Add Mnemonic::language getter
2021-04-01 14:56:25 +01:00
Steven Roose
63d3eab009
Use indices internally instead of &'static str
2021-04-01 14:51:09 +01:00
Steven Roose
1cc986e7c0
Merge pull request #9 from rust-bitcoin/release-1.0.0
...
Release 1.0.0
2021-03-25 12:11:54 +00:00