code: func PublicKeyLength(curveType CurveType) int {
  	switch curveType {
  	case CurveTypeEd25519:
  		return ed25519.PublicKeySize
  	case CurveTypeSecp256k1:
  		return btcec.PubKeyBytesLenCompressed
  	default:
  		// Other functions rely on this
  		return 0
  	}
  }
docs: // Returns the length in bytes of the public key