You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SIGHASH_TYPE seems like it should translate to SighashType and sighashType, but I think I picked up sigHashType from somewhere Core-ish or Insight-ish. I need to trace that back to make a final decision.
1. Descriptive Type and Property Names
public_key
andpublicKey
are fantastic property names. Descriptive. Easy-to-read. Wonderful.And
PublicKeyToPubKeyHash
is a fine Type name. It's very descriptive. When it pops up with Tooling, it makes sense.2. Functions, however, need shorter names
DashKeys.publicKeytoPublicKeyHash(pubBytes)
is not only long, it's actually hard to read.DashKeys.pubKeyToPkh(pubBytes)
is actually easier to see at-a-glance.3. Is it
pubKey
orpubkey
?It's definitely either
public_key
(JSON, DB) orpublicKey
(code).I'm not so sure when it comes to functions though...
It's actually easier to distinguish between
pubkeyToPkh
thanpubKeytoPkh
- too many humps vying for attention isn't as easy to read as fewer humps.4. This is an ecosystem concern
I want the exact same styles across the entire ecosystem.
The text was updated successfully, but these errors were encountered: