Documentation ¶
Overview ¶
Package address defines the custom Ethereum address data type of the signare.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ZeroAddress = Address{}
ZeroAddress is an empty address
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address [addressLength]byte
Address represents an ethereum account address
func MustNewFromHexString ¶
MustNewFromHexString returns an Address. If the address input is invalid, a ZeroAddress will be returned. Suitable for tests.
func NewFromHexString ¶
NewFromHexString creates a new Address from the provided hex string. If an error is returned, the Address will have a ZeroAddress value.
func NewFromRawBytes ¶
NewFromRawBytes creates a new address from raw unencoded bytes. If b is larger than len(a), b will be cropped from the left
func (Address) MarshalJSON ¶
MarshalJSON implements json.Marshaller
func (Address) String ¶
String returns an EIP55-compliant hex encoded string representation of the Address. String implements fmt.Stringer
func (*Address) UnmarshalJSON ¶
UnmarshalJSON implements json.Unmarshaler