Context
CryptoHash is duplicated across the ecosystem:
nearcore/core/primitives-core/src/hash.rs (canonical, with ProtocolSchema derive)
near-workspaces-rs/workspaces/src/types/mod.rs (copy with sha2 dep)
near-api-rs/types/src/lib.rs (another copy)
near-cli-rs (wrapper around near-primitives)
Action
Considerations
nearcore's version has ProtocolSchema derive (protocol-level concerns)
- Other consumers just need the basic hash functionality
- Coordination cost vs. deduplication benefit
Reference
Priority: Medium
Context
CryptoHashis duplicated across the ecosystem:nearcore/core/primitives-core/src/hash.rs(canonical, with ProtocolSchema derive)near-workspaces-rs/workspaces/src/types/mod.rs(copy with sha2 dep)near-api-rs/types/src/lib.rs(another copy)near-cli-rs(wrapper around near-primitives)Action
near-cryptohash-rscrate is worth the coordination costnearcorecould wrap/extend it vs. the other way aroundConsiderations
nearcore's version hasProtocolSchemaderive (protocol-level concerns)Reference
Priority: Medium