addresses library

Constants

hermezPrefix → const String

Functions

getAccountIndex(String? hezAccountIndex) num
Extracts the account index from the address with the hez prefix
getEthereumAddress(String? hezEthereumAddress) String?
Gets the ethereum address part of a Hermez address
getHermezAddress(String ethereumAddress) String
Get the hermez address representation of an ethereum address
hexToBase64BJJ(String bjjCompressedHex) String
Get API Bjj compressed data format @param {String} bjjCompressedHex Bjj compressed address encoded as hex string @returns {String} API adapted bjj compressed address
isEthereumAddress(String test) bool
Checks if given string matches regex of a Ethereum address
isHermezAccountIndex(String? test) bool
Checks if given string matches regex of a Hermez account index @param {String} test @returns {Boolean}
isHermezBjjAddress(String? test) bool
Checks if given string matches regex of a Hermez BJJ address
isHermezEthereumAddress(String? test) bool
Checks if given string matches regex of a Hermez address