Documentation
¶
Index ¶
Constants ¶
View Source
const ( // AddressByteLength is the Standard Address Byte Length AddressByteLength = 20 // HashByteLength is the Standard Hash Byte Length HashByteLength = 32 // EcdsaSignatureLength is the Standard ECDSA Signature length EcdsaSignatureLength = 65 // EcdsaPubKeySize is the Standard ECDSA Public Key Size EcdsaPubKeySize = 65 // EcdsaPubKeyCompressedSize is the Standard compressed ECDSA Public Key Size EcdsaPubKeyCompressedSize = 33 // EcdsaPrivKeySize is the Standard ECDSA Private Key Size EcdsaPrivKeySize = 32 )
Variables ¶
This section is empty.
Functions ¶
func AddressToHex ¶
AddressToHex returns the string value of an address. Addresses must be a 20 byte array.
Types ¶
type Address ¶ added in v0.3.8
type Address [AddressByteLength]byte
Address is the fixed (20) byte array of an address
func AddressFromHex ¶
AddressFromHex will return the [20]byte value of a address hex string Any values exceeding [20]byte will be trimmed.
func BytesToAddress ¶ added in v0.3.8
type Hash ¶ added in v0.3.8
type Hash [HashByteLength]byte
Hash is the fixed (32) byte array of a hash
func BytesToHash ¶ added in v0.3.8
Click to show internal directories.
Click to hide internal directories.