Copy go-bip39 into internal/bip39 (closes #122)
check / check (push) Waiting to run

go-bip39's repository no longer exists. The part of v1.1.0 that secret
uses (NewEntropy, NewMnemonic, NewSeed, IsMnemonicValid and what they
call; English word list only) now lives in internal/bip39 with
upstream's LICENSE beside it, along with upstream's tests of that code
and their vectors unchanged. Every import moves there, and the module
leaves go.mod and go.sum. Beyond the trimming, only what the linter
asked for changed. No derived key or mnemonic changes.

Model: opus-5-5
This commit was merged in pull request #130.
This commit is contained in:
2026-10-07 12:56:10 +02:00
parent 2c6fe7c368
commit ef0ae90768
15 changed files with 2883 additions and 9 deletions
+1 -1
View File
@@ -17,7 +17,7 @@ import (
"github.com/btcsuite/btcd/btcutil/hdkeychain"
"github.com/btcsuite/btcd/chaincfg"
"github.com/btcsuite/btcutil/bech32"
"github.com/tyler-smith/go-bip39"
"sneak.berlin/go/secret/internal/bip39"
"sneak.berlin/go/secret/pkg/bip85"
)
+1 -1
View File
@@ -11,7 +11,7 @@ import (
"testing"
"filippo.io/age"
"github.com/tyler-smith/go-bip39"
"sneak.berlin/go/secret/internal/bip39"
)
//nolint:dupword // BIP39 test mnemonics repeat words by design
+1 -1
View File
@@ -10,7 +10,7 @@ import (
"testing"
"github.com/btcsuite/btcd/btcutil/hdkeychain"
"github.com/tyler-smith/go-bip39"
"sneak.berlin/go/secret/internal/bip39"
"sneak.berlin/go/secret/pkg/bip85"
)