Documentation ¶
Index ¶
- Constants
- func Bt2Hex(b []byte) string
- func BtToUtf8(ua []byte) string
- func CleanTextAmount(n string) float64
- func CreateNEMTimeStamp() int64
- func FixPrivateKey(privateKey string) string
- func FormatEndpoint(endpoint base.Node) string
- func Grep(item []base.Properties) map[string]string
- func Hex2BaReversed(hexx string) []byte
- func Hex2Bt(hexx string) []byte
- func Hex2a(hexx string) string
- func IsHexadecimal(str string) bool
- func IsPrivateKeyValid(privateKey string) bool
- func IsPublicKeyValid(publicKey string) bool
- func MosaicIdToName(mosaicId base.MosaicID) string
- func PubToAddress()
- func SerializeTransaction(entity interface{}) []byte
- func Struc2Json(data interface{}) string
- func Utf8ToHex(str string) string
- type Temporary
Constants ¶
const ( Const4bytessigner = 32 Const4bytesaddress = 40 )
const Mosaicdefinition = 0x4001 // 16385
The mosaic definition transaction type
const MultisigSignature = 0x1002 // 4098
The multisignature signature transaction type
const ProvisionNamespace = 0x2001 // 8193
The provision namespace transaction type
Variables ¶
This section is empty.
Functions ¶
func CleanTextAmount ¶
Clean a text input amount and return it as number param n - The number as a string return The clean amount
func CreateNEMTimeStamp ¶
func CreateNEMTimeStamp() int64
Create a time stamp for a NEM transaction NEM EPOCH = UTC(2015, 3, 29, 0, 6, 25, 0) return The NEM transaction time stamp in milliseconds
func FixPrivateKey ¶
Fix a private key param privatekey - An hex private key return - The fixed hex private key
func FormatEndpoint ¶
Convert an endpoint object to an endpoint url param endpoint - An endpoint object return An endpoint url
func Hex2BaReversed ¶
Hex2BaReversed Reversed convertion of hex to []Bytes. param hexx - An hex string return []Bytes
func IsHexadecimal ¶
Test if a string is hexadecimal param str - A string to test return True if correct, false otherwise
func IsPrivateKeyValid ¶
Check if a private key is valid param privatekey - A private key eturn True if valid, false otherwise
func IsPublicKeyValid ¶
Check if a public key is valid param publicKey - A public key return - True if valid, false otherwise
func MosaicIdToName ¶
Return mosaic name from mosaicId object param mosaicId - A mosaicId object return The mosaic name
func PubToAddress ¶
func PubToAddress()
Convert a public key to NEM address param input - The account public key param networkId - The current network id return - A clean NEM address
func SerializeTransaction ¶
func SerializeTransaction(entity interface{}) []byte
Serialize a transaction struct param entity - A transaction struct return The serialized transaction
func Struc2Json ¶
func Struc2Json(data interface{}) string