mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2026-03-01 04:28:51 +00:00
Repackage crypto and rpcclient into modules of their own #1360
Labels
No labels
I1
I2
I3
I4
S1
S2
S3
S4
U0
U1
U2
U3
U3
U4
blocked
bug
bug
cli
compiler
config
config
consensus
dependencies
discussion
documentation
enhancement
epic
feature
go
good first issue
help wanted
neotest
network
oracle
performance
question
rpc
security
smartcontract
task
task
task
test
vm
wallet
windows
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neo-go#1360
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @roman-khimov on GitHub (Sep 3, 2024).
Is your feature request related to a problem? Please describe.
I'm always frustrated when NeoGo import pulls a hell lot of dependencies into other packages. In many cases it's just to have Neo-specific crypto, some also use the RPC client. Not a lot of projects use anything else. And these don't need all of the stuff we have in
go.mod.Describe the solution you'd like
Create modules for crypto/rpcclient in a way similar to github.com/decred/dcrd/dcrec/secp256k1/v4. It requires additional tags which is not very pretty and there are gonna be some interop-style dances with updates (but
replace). So it will definitely increase the maintenance burden. At the same time it'll help downstream projects.Describe alternatives you've considered
Keep things as is. It works too.
@roman-khimov commented on GitHub (Jul 22, 2025):
Might be problematic wrt replace directive (which would be required for local crypto/client overrides), similar to #3964.