-
Notifications
You must be signed in to change notification settings - Fork 83
Open
Description
Summary
The codebase contains 16 instances of deprecated elliptic.Marshal and elliptic.Unmarshal functions that have been deprecated since Go 1.21. These should be migrated to use the crypto/ecdh package.
Affected Files
pkg/bitcoin/script_test.go(2 instances)pkg/bitcoin/transaction_test.go(1 instance)pkg/chain/ethereum/tbtc.go(2 instances)pkg/protocol/inactivity/member_test.go(1 instance)pkg/tbtc/chain_test.go(1 instance)pkg/tbtc/internal/test/marshaling.go(4 instances)pkg/tbtc/marshaling.go(2 instances)pkg/tbtc/registry.go(1 instance)pkg/tbtc/wallet.go(1 instance)pkg/tecdsa/dkg/protocol_test.go(1 instance)pkg/tecdsa/dkg/result.go(1 instance)
Required Changes
Replace deprecated functions:
elliptic.Marshal→ Usecrypto/ecdhpackage equivalentelliptic.Unmarshal→ Usecrypto/ecdhpackage equivalent
Impact
- Low Risk: These are deprecation warnings, not errors
- Backward Compatible: Current code still works
- Future-Proofing: Migration needed for future Go versions
References
- Go 1.21 deprecation notice: https://pkg.go.dev/crypto/elliptic#Marshal
- crypto/ecdh package: https://pkg.go.dev/crypto/ecdh
Metadata
Metadata
Assignees
Labels
No labels