BlockchainCommons / BlockchainCommons/keytool-cli
Testing current master with lethekit
- Langage dominant
- C++
- Étoiles
- 6
- Forks
- 5
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
## Abstract
Testing 7604c8089008896bf86c7c18c800aeb86fe5f83e
### Test vector 1
```bash
seed_lethekit=$(seedtool --in ur ur:crypto-seed/oyadgdvlpfssfwmkztcebbnyzowkspnljlrhdkztykahhf)
keytool \
--seed $seed_lethekit \
--address-index '*' \
output-descriptor
```
result OK, matches with lethekit:
```bash
wpkh([b238a845/84h/0h/0h]xpub6D1GQL3S3qryEx5gQccdVB5Fy1ePkeDGU8bMmW1GKfDQvtBsbJ6FaaudsBphw2WwtjYyJ4ARR6Mh9ZRTTKqro6eZww2m6SVxG7WuY2DALVp/0/*)
```

### Test vector 2
```bash
# address wpkh not supported only pkh and sh?
for (( i=0; i <= 9; ++i ))
do
keytool \
--seed 1eb5338edac6fae54cbb172091ae6c1a \
--address-index $i \
address-index \
full-address-derivation-path \
address-pkh
done
```
Result:
```bash
0
c1859926/84h/0h/0h/0/0
17u4HStkGWxJ5PtNqzCMEKRzaPJ8h35eBc
1
c1859926/84h/0h/0h/0/1
1JyxrbHYS7ZGhq68JewhJAMWka38Bv8tFw
2
```
Here I noticed no support for segwit addresses? Also, the output shows segwit derivation path (84h) when `address-pkh` specified (`44h`) -> Not OK.
---
You can generate more test vectors for a particular seed (e.g. lethekit_seed/mnemonic: `together mail awful cradle scrub apart hip leader silk slice unusual embark`) in https://iancoleman.io/bip39/
Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Commencez par reproduire le vecteur de test 2 avec les points d’entrée address-index, full-address-derivation-path et address-pkh de keytool, puis suivez la manière dont ces commandes sélectionnent les chemins de dérivation et les formats d’adresse. Comparez la sortie avec l’attente 44h et l’observation segwit signalées ; le travail est terminé lorsque le comportement est clarifié ou corrigé et couvert par des vecteurs de test reproductibles.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- cpp
- Domaine
- blockchain, cli
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100