404: Something's gone wrong :-(
56 | 57 |You've tried to visit a page that doesn't exist. Luckily this site 59 | has other pages.
60 |If you were looking for something specific, try searching: 61 |
64 | 65 | 66 |├── .gitignore ├── .metadata ├── CHANGELOG.md ├── CONTRIBUTING.md ├── LICENSE ├── README.md ├── create_test_data.js ├── doc └── api │ ├── __404error.html │ ├── bitbox │ ├── Account-class.html │ ├── Account │ │ ├── Account.html │ │ ├── accountNode.html │ │ ├── currentChild.html │ │ ├── getCurrentAddress.html │ │ ├── getNextAddress.html │ │ ├── hashCode.html │ │ ├── noSuchMethod.html │ │ ├── operator_equals.html │ │ ├── runtimeType.html │ │ └── toString.html │ ├── Address-class.html │ ├── Address │ │ ├── Address.html │ │ ├── details.html │ │ ├── detectFormat.html │ │ ├── formatCashAddr-constant.html │ │ ├── formatLegacy-constant.html │ │ ├── getUnconfirmed.html │ │ ├── hashCode.html │ │ ├── noSuchMethod.html │ │ ├── operator_equals.html │ │ ├── runtimeType.html │ │ ├── toBase58Check.html │ │ ├── toCashAddress.html │ │ ├── toLegacyAddress.html │ │ ├── toString.html │ │ ├── utxo.html │ │ └── validateAddress.html │ ├── Bitbox-class.html │ ├── Bitbox │ │ ├── Bitbox.html │ │ ├── hashCode.html │ │ ├── noSuchMethod.html │ │ ├── operator_equals.html │ │ ├── restUrl-constant.html │ │ ├── runtimeType.html │ │ ├── setRestUrl.html │ │ ├── toString.html │ │ ├── transactionBuilder.html │ │ └── trestUrl-constant.html │ ├── BitcoinCash-class.html │ ├── BitcoinCash │ │ ├── BitcoinCash.html │ │ ├── decodeBIP21.html │ │ ├── encodeBIP21.html │ │ ├── fromSatoshi.html │ │ ├── getByteCount.html │ │ ├── hashCode.html │ │ ├── noSuchMethod.html │ │ ├── operator_equals.html │ │ ├── runtimeType.html │ │ ├── toSatoshi.html │ │ └── toString.html │ ├── ECPair-class.html │ ├── ECPair │ │ ├── ECPair.fromPrivateKey.html │ │ ├── ECPair.fromPublicKey.html │ │ ├── ECPair.fromWIF.html │ │ ├── ECPair.html │ │ ├── ECPair.makeRandom.html │ │ ├── address.html │ │ ├── compressed.html │ │ ├── hashCode.html │ │ ├── network.html │ │ ├── noSuchMethod.html │ │ ├── operator_equals.html │ │ ├── privateKey.html │ │ ├── publicKey.html │ │ ├── runtimeType.html │ │ ├── sign.html │ │ ├── toString.html │ │ ├── toWIF.html │ │ └── verify.html │ ├── HDNode-class.html │ ├── HDNode │ │ ├── HDNode.fromSeed.html │ │ ├── HDNode.fromXPriv.html │ │ ├── HDNode.fromXPub.html │ │ ├── HDNode.html │ │ ├── HIGHEST_BIT-constant.html │ │ ├── UINT31_MAX-constant.html │ │ ├── UINT32_MAX-constant.html │ │ ├── depth.html │ │ ├── derive.html │ │ ├── derivePath.html │ │ ├── fingerprint.html │ │ ├── hashCode.html │ │ ├── identifier.html │ │ ├── index.html │ │ ├── keyPair.html │ │ ├── noSuchMethod.html │ │ ├── operator_equals.html │ │ ├── parentFingerprint.html │ │ ├── privateKey.html │ │ ├── publicKey.html │ │ ├── publicKeyList.html │ │ ├── rawPrivateKey.html │ │ ├── runtimeType.html │ │ ├── toCashAddress.html │ │ ├── toLegacyAddress.html │ │ ├── toString.html │ │ ├── toXPriv.html │ │ └── toXPub.html │ ├── Input-class.html │ ├── Input │ │ ├── Input.clone.html │ │ ├── Input.expandInput.html │ │ ├── Input.html │ │ ├── hash.html │ │ ├── hashCode.html │ │ ├── index.html │ │ ├── noSuchMethod.html │ │ ├── operator_equals.html │ │ ├── prevOutScript.html │ │ ├── pubkeys.html │ │ ├── runtimeType.html │ │ ├── script.html │ │ ├── sequence.html │ │ ├── signScript.html │ │ ├── signatures.html │ │ ├── toString.html │ │ └── value.html │ ├── Mnemonic-class.html │ ├── Mnemonic │ │ ├── Mnemonic.html │ │ ├── generate.html │ │ ├── hashCode.html │ │ ├── noSuchMethod.html │ │ ├── operator_equals.html │ │ ├── runtimeType.html │ │ ├── toSeed.html │ │ └── toString.html │ ├── Output-class.html │ ├── Output │ │ ├── Output.clone.html │ │ ├── Output.html │ │ ├── hashCode.html │ │ ├── noSuchMethod.html │ │ ├── operator_equals.html │ │ ├── pubkeys.html │ │ ├── runtimeType.html │ │ ├── script.html │ │ ├── signatures.html │ │ ├── toString.html │ │ ├── value.html │ │ └── valueBuffer.html │ ├── RawTransactions-class.html │ ├── RawTransactions │ │ ├── RawTransactions.html │ │ ├── hashCode.html │ │ ├── noSuchMethod.html │ │ ├── operator_equals.html │ │ ├── runtimeType.html │ │ ├── sendRawTransaction.html │ │ └── toString.html │ ├── Transaction-class.html │ ├── Transaction │ │ ├── ADVANCED_TRANSACTION_FLAG-constant.html │ │ ├── ADVANCED_TRANSACTION_MARKER-constant.html │ │ ├── DEFAULT_SEQUENCE-constant.html │ │ ├── ONE.html │ │ ├── SATOSHI_MAX-constant.html │ │ ├── SIGHASH_ALL-constant.html │ │ ├── SIGHASH_ANYONECANPAY-constant.html │ │ ├── SIGHASH_BITCOINCASHBIP143-constant.html │ │ ├── SIGHASH_NONE-constant.html │ │ ├── SIGHASH_SINGLE-constant.html │ │ ├── Transaction.clone.html │ │ ├── Transaction.fromBuffer.html │ │ ├── Transaction.fromHex.html │ │ ├── Transaction.html │ │ ├── ZERO.html │ │ ├── addInput.html │ │ ├── addOutput.html │ │ ├── blankOutput.html │ │ ├── emptyScript.html │ │ ├── getHash.html │ │ ├── getId.html │ │ ├── hashCode.html │ │ ├── hashForCashSignature.html │ │ ├── hashForSignature.html │ │ ├── inputs.html │ │ ├── isCoinbase.html │ │ ├── isCoinbaseHash.html │ │ ├── locktime.html │ │ ├── noSuchMethod.html │ │ ├── operator_equals.html │ │ ├── outputs.html │ │ ├── runtimeType.html │ │ ├── setInputScript.html │ │ ├── toBuffer.html │ │ ├── toHex.html │ │ ├── toString.html │ │ ├── valueUint64Max.html │ │ ├── version.html │ │ └── virtualSize.html │ ├── TransactionBuilder-class.html │ ├── TransactionBuilder │ │ ├── DEFAULT_SEQUENCE-constant.html │ │ ├── SIGHASH_ALL-constant.html │ │ ├── SIGHASH_ANYONECANPAY-constant.html │ │ ├── SIGHASH_BITCOINCASHBIP143-constant.html │ │ ├── SIGHASH_NONE-constant.html │ │ ├── SIGHASH_SINGLE-constant.html │ │ ├── TransactionBuilder.fromTransaction.html │ │ ├── TransactionBuilder.html │ │ ├── addInput.html │ │ ├── addOutput.html │ │ ├── build.html │ │ ├── buildIncomplete.html │ │ ├── getByteCount.html │ │ ├── hashCode.html │ │ ├── noSuchMethod.html │ │ ├── operator_equals.html │ │ ├── prevTxSet.html │ │ ├── runtimeType.html │ │ ├── setLockTime.html │ │ ├── setVersion.html │ │ ├── sign.html │ │ ├── toString.html │ │ └── tx.html │ ├── Utxo-class.html │ ├── Utxo │ │ ├── Utxo.fromMap.html │ │ ├── Utxo.html │ │ ├── amount.html │ │ ├── confirmations.html │ │ ├── convertMapListToUtxos.html │ │ ├── hashCode.html │ │ ├── height.html │ │ ├── noSuchMethod.html │ │ ├── operator_equals.html │ │ ├── runtimeType.html │ │ ├── satoshis.html │ │ ├── toString.html │ │ ├── txid.html │ │ └── vout.html │ ├── bitbox-library.html │ ├── decode.html │ ├── encode.html │ ├── encodingLength.html │ ├── printHex.html │ ├── readUInt64LE.html │ └── writeUInt64LE.html │ ├── categories.json │ ├── index.html │ ├── index.json │ └── static-assets │ ├── URI.js │ ├── css │ ├── bootstrap.css │ └── bootstrap.min.css │ ├── favicon.png │ ├── github.css │ ├── highlight.pack.js │ ├── play_button.svg │ ├── readme.md │ ├── script.js │ ├── sdk_footer_text.html │ ├── styles.css │ └── typeahead.bundle.min.js ├── example └── main.dart ├── lib ├── bitbox.dart └── src │ ├── account.dart │ ├── address.dart │ ├── bitbox.dart │ ├── bitcoincash.dart │ ├── crypto │ ├── crypto.dart │ └── ecurve.dart │ ├── ecpair.dart │ ├── hdnode.dart │ ├── mnemonic.dart │ ├── rawtransactions.dart │ ├── transaction.dart │ ├── transactionbuilder.dart │ ├── utils │ ├── bip21.dart │ ├── check_types.dart │ ├── network.dart │ ├── opcodes.dart │ ├── p2pkh.dart │ ├── pushdata.dart │ ├── rest_api.dart │ └── script.dart │ └── varuint.dart ├── pubspec.lock ├── pubspec.yaml └── test └── bitbox_test.dart /.gitignore: -------------------------------------------------------------------------------- 1 | # Miscellaneous 2 | *.class 3 | *.log 4 | *.pyc 5 | *.swp 6 | .DS_Store 7 | .atom/ 8 | .buildlog/ 9 | .history 10 | .svn/ 11 | 12 | # IntelliJ related 13 | *.iml 14 | *.ipr 15 | *.iws 16 | .idea/ 17 | 18 | # Visual Studio Code related 19 | .vscode/ 20 | 21 | # Flutter/Dart/Pub related 22 | .dart_tool/ 23 | .flutter-plugins 24 | .packages 25 | .pub-cache/ 26 | .pub/ 27 | build/ 28 | 29 | # Android related 30 | **/android/**/gradle-wrapper.jar 31 | **/android/.gradle 32 | **/android/captures/ 33 | **/android/gradlew 34 | **/android/gradlew.bat 35 | **/android/local.properties 36 | **/android/**/GeneratedPluginRegistrant.java 37 | 38 | # iOS/XCode related 39 | **/ios/**/*.mode1v3 40 | **/ios/**/*.mode2v3 41 | **/ios/**/*.moved-aside 42 | **/ios/**/*.pbxuser 43 | **/ios/**/*.perspectivev3 44 | **/ios/**/*sync/ 45 | **/ios/**/.sconsign.dblite 46 | **/ios/**/.tags* 47 | **/ios/**/.vagrant/ 48 | **/ios/**/DerivedData/ 49 | **/ios/**/Icon? 50 | **/ios/**/Pods/ 51 | **/ios/**/.symlinks/ 52 | **/ios/**/profile 53 | **/ios/**/xcuserdata 54 | **/ios/.generated/ 55 | **/ios/Flutter/App.framework 56 | **/ios/Flutter/Flutter.framework 57 | **/ios/Flutter/Generated.xcconfig 58 | **/ios/Flutter/app.flx 59 | **/ios/Flutter/app.zip 60 | **/ios/Flutter/flutter_assets/ 61 | **/ios/ServiceDefinitions.json 62 | **/ios/Runner/GeneratedPluginRegistrant.* 63 | 64 | # Exceptions to above rules. 65 | !**/ios/**/default.mode1v3 66 | !**/ios/**/default.mode2v3 67 | !**/ios/**/default.pbxuser 68 | !**/ios/**/default.perspectivev3 69 | !/packages/flutter_tools/test/data/dart_dependencies_test/**/.packages 70 | -------------------------------------------------------------------------------- /.metadata: -------------------------------------------------------------------------------- 1 | # This file tracks properties of this Flutter project. 2 | # Used by Flutter tool to assess capabilities and perform upgrades etc. 3 | # 4 | # This file should be version controlled and should not be manually edited. 5 | 6 | version: 7 | revision: 7a4c33425ddd78c54aba07d86f3f9a4a0051769b 8 | channel: beta 9 | 10 | project_type: package 11 | -------------------------------------------------------------------------------- /CHANGELOG.md: -------------------------------------------------------------------------------- 1 | ## [0.0.1] - 2019-08-01 2 | 3 | Light version of Bitcoin.com's Bitbox library 4 | 5 | ## [0.0.2] - 2019-10-06 6 | 7 | - Taken some code analysis hint into account 8 | 9 | ## [0.0.3] - 2020-03-20 10 | 11 | - Added support for bip21 implemented by RomitRadical 12 | - Added transaction details support 13 | - Fixed some API issues and 14 | 15 | ## [0.0.4] - 2020-05-12 16 | 17 | - padded a private key by if it was generated shorter than 32 bytes 18 | - added support for broadcasting more transactions 19 | - changed resturl parameter to non-named (didn't make sense to have it named when it was the only one)) 20 | 21 | ## [0.0.4] - 2020-06-02 22 | 23 | - fixed signing mechanism, so it would better handle 31-byte private key 24 | -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- 1 | I was told it's a good practice to give guidelines to contributors. However this is the open-source project I have ever created or even contributed to, so the first contribution by someone more experience could be contribution rules :-) 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | TODO: Add your license here. 2 | -------------------------------------------------------------------------------- /doc/api/__404error.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 |You've tried to visit a page that doesn't exist. Luckily this site 59 | has other pages.
60 |If you were looking for something specific, try searching: 61 |
64 | 65 | 66 |Account(this.accountNode, [this.currentChild]);
95 | final HDNode accountNode
95 |
96 |
97 | int currentChild = 0
95 |
96 |
97 | A representation of the runtime type of the object.
98 |external Type get runtimeType;
102 | Returns a string representation of this object.
95 |external String toString();
100 | static const restUrl = "https://rest.bitcoin.com/v2/"
99 |
100 |
101 | Returns a string representation of this object.
97 |external String toString();
102 | static const trestUrl = "https://trest.bitcoin.com/v2/"
99 |
100 |
101 | int index
102 |
103 |
104 | Generate bip39 mnemonic
94 |static String generate({int strength = 128}) => bip39.generateMnemonic(strength: strength);
99 | A representation of the runtime type of the object.
97 |external Type get runtimeType;
101 | Create root seed from mnemonic
94 |static Uint8List toSeed(String mnemonic) => bip39.mnemonicToSeed(mnemonic);
99 | Returns a string representation of this object.
94 |external String toString();
99 | List<Uint8List> pubkeys
97 |
98 |
99 | A representation of the runtime type of the object.
100 |external Type get runtimeType;
104 | Uint8List script
97 |
98 |
99 | List<Uint8List> signatures
97 |
98 |
99 | int value
97 |
98 |
99 | Uint8List valueBuffer
97 |
98 |
99 | A representation of the runtime type of the object.
96 |external Type get runtimeType;
100 | Returns a string representation of this object.
93 |external String toString();
98 | final double amount
100 |
101 |
102 | final int confirmations
100 |
101 |
102 | final int height
100 |
101 |
102 | final int satoshis
100 |
101 |
102 | final String txid
100 |
101 |
102 | final int vout
100 |
101 |
102 |