|
| 1 | +--- |
| 2 | +'@bitauth/libauth': major |
| 3 | +--- |
| 4 | + |
| 5 | +Unify object parameters and error handling across library |
| 6 | + |
| 7 | +A number of existing Libauth utilities have been modified to adhere to Libauth's object parameter and error handling conventions: |
| 8 | + |
| 9 | +- CashAddress utilities: |
| 10 | + - [`encodeCashAddress`](https://libauth.org/functions/encodeCashAddress.html)/[`decodeCashAddress`](https://libauth.org/functions/decodeCashAddress.html) |
| 11 | + - [`lockingBytecodeToCashAddress`](https://libauth.org/functions/lockingBytecodeToCashAddress.html)/[`cashAddressToLockingBytecode`](https://libauth.org/functions/cashAddressToLockingBytecode.html) |
| 12 | + - [`encodeCashAddressFormat`](https://libauth.org/functions/encodeCashAddressFormat.html)/[`decodeCashAddressFormat`](https://libauth.org/functions/decodeCashAddressFormat.html) |
| 13 | +- BIP32 (HD Key) utilities: |
| 14 | + - [`crackHdPrivateNodeFromHdPublicNodeAndChildPrivateNode`](https://libauth.org/functions/crackHdPrivateNodeFromHdPublicNodeAndChildPrivateNode.html) |
| 15 | + - [`decodeHdKey`](https://libauth.org/functions/decodeHdKey.html) ([`decodeHdKeyUnchecked`](https://libauth.org/functions/decodeHdKeyUnchecked.html)) |
| 16 | + - [`decodeHdPrivateKey`](https://libauth.org/functions/decodeHdPrivateKey.html)/[`encodeHdPrivateKey`](https://libauth.org/functions/encodeHdPrivateKey.html) |
| 17 | + - [`decodeHdPublicKey`](https://libauth.org/functions/decodeHdPublicKey.html)/[`encodeHdPrivateKey`](https://libauth.org/functions/encodeHdPrivateKey.html) |
| 18 | + - [`deriveHdPath`](https://libauth.org/functions/deriveHdPath.html) |
| 19 | + - [`deriveHdPathRelative`](https://libauth.org/functions/deriveHdPathRelative.html) |
| 20 | + - [`deriveHdPrivateNodeFromSeed`](https://libauth.org/functions/deriveHdPrivateNodeFromSeed.html) |
| 21 | + - [`deriveHdPrivateNodeIdentifier`](https://libauth.org/functions/deriveHdPrivateNodeIdentifier.html)/[`deriveHdPublicNodeIdentifier`](https://libauth.org/functions/deriveHdPublicNodeIdentifier.html) |
| 22 | + - [`deriveHdPrivateNodeChild`](https://libauth.org/functions/deriveHdPrivateNodeChild.html)/[`deriveHdPublicNodeChild`](https://libauth.org/functions/deriveHdPublicNodeChild.html) |
| 23 | + - [`deriveHdPublicKey`](https://libauth.org/functions/deriveHdPublicKey.html) |
| 24 | + - [`deriveHdPublicNode`](https://libauth.org/functions/deriveHdPublicNode.html) |
| 25 | + - [`hdKeyVersionIsPrivateKey`](https://libauth.org/functions/hdKeyVersionIsPrivateKey.html)/[`hdKeyVersionIsPublicKey`](https://libauth.org/functions/hdKeyVersionIsPublicKey.html) |
| 26 | + - [`hdPrivateKeyToIdentifier`](https://libauth.org/functions/hdPrivateKeyToIdentifier.html)/[`hdPublicKeyToIdentifier`](https://libauth.org/functions/hdPublicKeyToIdentifier.html) |
| 27 | +- BIP39 (Mnemonic Phrase) Utilities: |
| 28 | + - [`deriveHdPrivateNodeFromBip39Mnemonic`](https://libauth.org/functions/deriveHdPrivateNodeFromBip39Mnemonic.html) |
| 29 | + - [`deriveSeedFromBip39Mnemonic`](https://libauth.org/functions/deriveSeedFromBip39Mnemonic.html) |
| 30 | + - [`encodeBip39Mnemonic`](https://libauth.org/functions/encodeBip39Mnemonic.html)/[`decodeBip39Mnemonic`](https://libauth.org/functions/decodeBip39Mnemonic.html) |
| 31 | + - [`generateBip39Mnemonic`](https://libauth.org/functions/generateBip39Mnemonic.html) |
| 32 | +- Key Utilities: |
| 33 | + - [`generateDeterministicEntropy`](https://libauth.org/functions/generateDeterministicEntropy.html) |
| 34 | + |
| 35 | +Please see the relevant guide(s) for usage examples: |
| 36 | + |
| 37 | +- [Handling Errors](https://github.com/bitauth/libauth/blob/master/docs/errors.md) |
| 38 | +- [Keys](https://github.com/bitauth/libauth/blob/master/docs/keys.md) |
| 39 | +- [Addresses](https://github.com/bitauth/libauth/blob/master/docs/addresses.md) |
| 40 | +- [Wallets & Transaction Creation](https://github.com/bitauth/libauth/blob/master/docs/wallets.md) |
0 commit comments