Documentation ¶
Overview ¶
Package ethregexlib provides various regex utility functions that are relevant to ethpm and Ethereum in general. Information about this spec can be found here http://ethpm.github.io/ethpm-spec/package-spec.html
Index ¶
- func CheckAddress(bc string) (err error)
- func CheckAlias(s string) (err error)
- func CheckBIP122URI(s string) (err error)
- func CheckBytecode(bc string) (err error)
- func CheckContractName(s string) (err error)
- func CheckDependencyTree(s string) (err error)
- func CheckPackageName(s string) (err error)
- func CheckSemver(s string) (err error)
- func CheckThirtyTwoByteHash(bc string) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckAddress ¶
CheckAddress ensures the string is a valid Ethereum address
func CheckAlias ¶
CheckAlias ensures the string is formatted to the spec defined here https://ethpm.github.io/ethpm-spec/glossary.html#term-contract-alias
func CheckBIP122URI ¶
CheckBIP122URI ensures the string is formatted to the proper uri spec defined here https://github.com/bitcoin/bips/blob/master/bip-0122.mediawiki
func CheckBytecode ¶
CheckBytecode ensures the string is a valid hexadecimal string
func CheckContractName ¶
CheckContractName ensures names and identifiers are formatted correctly to the spec defined here https://ethpm.github.io/ethpm-spec/glossary.html#term-identifier
func CheckDependencyTree ¶
CheckDependencyTree ensures the string is in proper ethpm format specified here https://ethpm.github.io/ethpm-spec/package-spec.html#value-value
func CheckPackageName ¶
CheckPackageName ensures the string is a proper ethpm package name
func CheckSemver ¶
CheckSemver ensures package versioning matches semver standard
func CheckThirtyTwoByteHash ¶
CheckThirtyTwoByteHash ensures the string is a valid 32-byte hash
Types ¶
This section is empty.