1076 Commits

Author SHA1 Message Date
Steve Myers
b9bb5962ae
Add build-local-swift.sh, consolidate .gitignore files 2022-11-21 13:43:47 -06:00
Steve Myers
13cbe89167
Merge bdk-swift repo into bdk-ffi/bdk-swift 2022-11-21 13:09:08 -06:00
Steve Myers
07f5b5f8ba
Remove autogenerated BitcoinDevKit.swift 2022-11-21 13:08:31 -06:00
Steve Myers
a12b1f8d7a
Remove unneeded .github and .gitmodules directories 2022-11-21 13:06:35 -06:00
Steve Myers
97d011acc0
Update README and remove redundant license files 2022-11-21 12:59:09 -06:00
Steve Myers
b7efb37632
Move all files to bdk-swift and deinit bdk-ffi 2022-11-21 12:10:23 -06:00
thunderbiscuit
3edda27ef2
Clean up root readme and add individual libraries' readmes 2022-11-17 11:48:24 -05:00
Steve Myers
e017d76351
Fix publish-spm to commit updated BitcoinDevKit.swift 2022-11-15 18:27:16 -06:00
thunderbiscuit
427816fd9a
Add from_string() methods to DescriptorPrivateKey and DescriptorPublicKey 2022-11-15 13:22:18 -05:00
thunderbiscuit
29614b5b78
Add from_string() methods to DescriptorPrivateKey and DescriptorPublicKey 2022-11-15 13:16:54 -05:00
Steve Myers
063f69222a
Update android and jvm workflows and plugins for root rust /target 2022-11-14 20:59:52 -06:00
Steve Myers
95a36bc9e2
Add MIT and Apache 2.0 licenses 2022-11-14 18:57:17 -06:00
Steve Myers
8857c851f6
Move rust workspace to top directory 2022-11-14 18:14:08 -06:00
thunderbiscuit
632f48e75a
Commit Cargo.lock file 2022-11-14 13:16:45 -05:00
thunderbiscuit
6a9c2eb80e
Fix audit workflow 2022-11-14 13:11:43 -05:00
thunderbiscuit
be058e11d9
Move kotlin API docs to more specific subdirectory 2022-11-14 13:10:51 -05:00
thunderbiscuit
ce9ca63bc7
Remove submodule code from CI workflows 2022-11-14 12:55:17 -05:00
thunderbiscuit
16ab09d7df
Move licenses, changelog, and readme back into root directory 2022-11-14 10:54:06 -05:00
thunderbiscuit
738ed656fc
Update Android and JVM CI workflows to run only on appropriate changes 2022-11-14 10:04:06 -05:00
thunderbiscuit
e6708d4c5b
Move bdk-jvm and bdk-android out of subdirectory after ffi merge 2022-11-14 09:58:10 -05:00
thunderbiscuit
af77b9b9b1
Merge remote-tracking branch 'kotlinrepo/master' into ffi-merge 2022-11-14 09:45:49 -05:00
thunderbiscuit
0c1a9d7f1d
Move all bdk-kotlin into subdirectory to prepare for ffi merge
Signed-off-by: thunderbiscuit <thunderbiscuit@protonmail.com>
2022-11-14 08:56:17 -05:00
Steve Myers
4f544e465b
Use update ci workflows to use defaults.run.working-directory 2022-11-11 17:13:22 -06:00
thunderbiscuit
64c496f815
Run CI workflows only when relevant files are modified 2022-11-11 15:17:28 -05:00
thunderbiscuit
8bb8c00a6b
Remove bdk-ffi submodule from bdk-python 2022-11-10 16:27:48 -05:00
thunderbiscuit
26ef0d4a34
Remove .github directory in bdk-python 2022-11-10 16:09:29 -05:00
thunderbiscuit
8240d8dc99
Add simplified Python CI workflow 2022-11-10 15:58:23 -05:00
thunderbiscuit
da4c792046
Fix CI paths 2022-11-10 13:34:43 -05:00
thunderbiscuit
b06528d10c
Move bdk-ffi source code in subdirectory 2022-11-10 13:27:00 -05:00
thunderbiscuit
662270364b
Merge remote-tracking branch 'python/master' into python-ffi-merge 2022-11-10 13:23:32 -05:00
thunderbiscuit
413ca8bdeb
Move all content in bdk-python subdirectory 2022-11-10 12:57:38 -05:00
thunderbiscuit
2a97218991
Bump library development version to 0.6.0.dev0 2022-11-09 15:26:51 -05:00
thunderbiscuit
ec7b3769b5
Bump bdk-ffi submodule to v0.11.0 (bdk version 0.24.0)
Signed-off-by: thunderbiscuit <thunderbiscuit@protonmail.com>
2022-11-09 12:52:15 -05:00
thunderbiscuit
f07473e1ca
Bump versions to 0.12.0-SNAPSHOT 2022-11-08 15:03:20 -05:00
thunderbiscuit
3be23ad7f9
Update API docs to version 0.11.0 2022-11-08 14:19:37 -05:00
thunderbiscuit
ffd85e6bd1
Use release-smaller profile for bdk-ffi in Gradle plugins 2022-11-08 12:24:49 -05:00
Steve Myers
073c89db4b
Fix publish-spm workflow with release-smaller profile 2022-11-08 11:07:27 -06:00
thunderbiscuit
04aae0486a
Bump bdk-ffi submodule to v0.11.0 2022-11-08 11:50:54 -05:00
thunderbiscuit
929147f182
Bump versions to 0.11.0-SNAPSHOT 2022-11-08 11:17:23 -05:00
Steve Myers
eb9241d315
Update bdk-ffi to 0.11.0 2022-11-08 09:55:25 -06:00
thunderbiscuit
0648075555
Bump version to 0.11.0 v0.11.0 2022-11-08 10:11:38 -05:00
thunderbiscuit
3f81346e6b
Refactor from_str() method on the Mnemonic struct to from_string() 2022-11-08 09:54:50 -05:00
Steve Myers
a25fb1348d
Merge bitcoindevkit/bdk-ffi#208: Add FeeRate struct and PSBT fee_amount and fee_rate functions
ae1ea99ed3f26f33ead92d4a91588ae32d9e110b Add FeeRate struct and fee_amount() and fee_rate() functions on PartiallySignedTransaction (Steve Myers)
9a381f6d32321f2a726092bd2b54ab10d105e9c6 Rename PartiallySignedBitcoinTransaction to PartiallySignedTransaction (Steve Myers)

Pull request description:

  <!-- You can erase any parts of this template not applicable to your Pull Request. -->

  ### Description

  Add FeeRate struct and fee_amount() and fee_rate() functions on PartiallySignedTransaction.

  ### Notes to the reviewers

  This PR is dependent on https://github.com/bitcoindevkit/bdk/pull/782.

  ### Changelog notice

  - Breaking Changes
    - Renamed PartiallySignedBitcoinTransaction to PartiallySignedTransaction to be consistent with `rust-bitcoin`
  - APIs Added
    - Add FeeRate struct
    - Add fee_amount() and fee_rate() functions on PartiallySignedTransaction

  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

  #### New Features:

  * [x] I've added tests for the new feature
  * [x] I've added docs for the new feature

ACKs for top commit:
  thunderbiscuit:
    Re-ACK [ae1ea99](ae1ea99ed3).

Tree-SHA512: 2c3f792e9ef092cd3ba233601122f4960c496d132caad54ef2f7f41d7113dd16600a863bb8fd78d2e5b978adebdb7ddd9529c21b3d46cd0b16e0db4eb90de01d
2022-11-07 14:15:35 -06:00
Steve Myers
ae1ea99ed3
Add FeeRate struct and fee_amount() and fee_rate() functions on PartiallySignedTransaction 2022-11-07 11:55:36 -06:00
Steve Myers
9a381f6d32
Rename PartiallySignedBitcoinTransaction to PartiallySignedTransaction 2022-11-07 11:55:36 -06:00
Steve Myers
3a07b4838a
Merge bitcoindevkit/bdk-ffi#221: Bump bdk version to 0.24.0
29de6f2d060461da34333ea8b52aeaf531434ca2 Bump bdk version to 0.24.0 (thunderbiscuit)

Pull request description:

  ## Description
  This PR updates BDK to the latest version, `0.24.0`.

  ### Notes to the reviewers
  This PR is currently open only for CI testing and review. Only merge once bdk 0.24.0 is out and the PR has been updated.

  ### Changelog notice
  ```txt
  - Update BDK to latest version 0.24.0 [#221]

  [#221](https://github.com/bitcoindevkit/bdk-ffi/pull/221)
  ```

  #### All Submissions:
  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

ACKs for top commit:
  notmandatory:
    ACK 29de6f2d060461da34333ea8b52aeaf531434ca2

Tree-SHA512: 256eb4387728467704f732ce1151de9569b6121916bb1d814bb48c75faf20026846e6170a384ca7e5e9ac3652bd9dfe5511e019f13c972ae755f0b37f9db8b83
2022-11-07 11:47:45 -06:00
thunderbiscuit
29de6f2d06
Bump bdk version to 0.24.0 2022-11-07 12:33:00 -05:00
Steve Myers
73ba73fd03
Merge bitcoindevkit/bdk-ffi#219: Added Mnemonic Interface
9866649fdc5ffe0203f5a76082d789a22e5214bf Added Mnemonic Interface (dhruvbaliyan)

Pull request description:

  ### Description
  This PR adds `interface Mnemonic` which will make the API to generate new DescriptorSecretKey have type-safe arguments.

  <!-- Describe the purpose of this PR, what's being adding and/or fixed -->

  ### Notes to the reviewers

  This PR doesn't have any issue linked to it, as it was discusses on a call during the implementation of `DescriptorSecretKey` (PR #154). It was discussed to make `Mnemonic` an interface and use that instead of string `Mnemonic` so that the API to generate `DescriptorSecretKey` doesn't have any potential failure (like in case it's provided with incorrect Mnemonic words).

  APIs added
  ```
  // generates and returns Mnemonic with random entropy
  Mnemonic::new(word_count: WordCount) -> Self { ... }
  // converts string Mnemonic to Mnemonic type with error (in case of incorrect string Mnemonic)
  Mnemonic::from_str(mnemonic: String) -> Result<Self, BdkError> { ... }
  // generates and returns Mnemonic with given entropy
  Mnemonic::from_entropy(entropy: Vec<u8>) -> Result<Self, BdkError> {...}
  // view mnemonic as string
  Mnemonic::as_string(&self) -> String { ... }
  ```
  Along with some changes to `DescriptorSecretKey::new()` to fit these new APIs

  ### Changelog notice
  ```
  - Added Struct Mnemonic with following methods [#219]
    - new(word_count: WordCount) generates and returns Mnemonic with random entropy
    - from_str(mnemonic: String) converts string Mnemonic to Mnemonic type with error
    - from_entropy(entropy: Vec<u8>) generates and returns Mnemonic with given entropy
    - as_string() view Mnemonic as string
  - API removed [#219]
    - generate_mnemonic(word_count: WordCount)

  [#219](https://github.com/bitcoindevkit/bdk-ffi/pull/219)
  ```
  ### Checklists

  #### All Submissions:

  * [x] I've signed all my commits
  * [x] I followed the [contribution guidelines](https://github.com/bitcoindevkit/bdk/blob/master/CONTRIBUTING.md)
  * [x] I ran `cargo fmt` and `cargo clippy` before committing

  #### New Features:

  * [x] I've added docs for the new feature

  #### Bugfixes:

  * [x] This pull request breaks the existing API
      * Top level function `generate_mnemonic(...)` was removed

ACKs for top commit:
  thunderbiscuit:
    ACK 9866649fdc5ffe0203f5a76082d789a22e5214bf.
  notmandatory:
    ACK 9866649fdc5ffe0203f5a76082d789a22e5214bf

Tree-SHA512: 45f9158beb6fe7bfe2a901c3f17126db855fe0b4b479ecb2a16381e06a415eed295fe6be3c840bd1d1fc8cffaf58bd97dc27bdc1e82699367a827d700e8fd09b
2022-11-07 11:27:41 -06:00
thunderbiscuit
82126ece78
Add publishing CI workflow 2022-11-03 15:22:25 -04:00
dhruvbaliyan
9866649fdc
Added Mnemonic Interface 2022-11-03 22:33:38 +05:30