Versions in this module Expand all Collapse all v0 v0.1.5 Dec 20, 2019 GO-2022-0905 GO-2022-0905: BLS Signature "Malleability" in github.com/filecoin-project/lotus v0.1.1 Dec 12, 2019 GO-2022-0905 GO-2022-0905: BLS Signature "Malleability" in github.com/filecoin-project/lotus v0.1.0 Dec 11, 2019 GO-2022-0905 GO-2022-0905: BLS Signature "Malleability" in github.com/filecoin-project/lotus Changes in this version + const ChecksumHashLength + const MainnetPrefix + const MaxAddressStringLength + const PayloadHashLength + const TestnetPrefix + var AddressEncoding = base32.NewEncoding(encodeStd) + var ErrInvalidChecksum = errors.New("invalid address checksum") + var ErrInvalidLength = errors.New("invalid address length") + var ErrInvalidPayload = errors.New("invalid address payload") + var ErrUnknownNetwork = errors.New("unknown address network") + var ErrUnknownProtocol = errors.New("unknown address protocol") + var Undef = Address + var UndefAddressString = "<empty>" + func Checksum(ingest []byte) []byte + func IDFromAddress(addr Address) (uint64, error) + func NewForTestGetter() func() Address + func ValidateChecksum(ingest, expect []byte) bool + type Address struct + var TestAddress Address + var TestAddress2 Address + func NewActorAddress(data []byte) (Address, error) + func NewBLSAddress(pubkey []byte) (Address, error) + func NewFromBytes(addr []byte) (Address, error) + func NewFromString(addr string) (Address, error) + func NewIDAddress(id uint64) (Address, error) + func NewSecp256k1Address(pubkey []byte) (Address, error) + func (a *Address) Scan(value interface{}) error + func (a *Address) UnmarshalCBOR(br io.Reader) error + func (a *Address) UnmarshalJSON(b []byte) error + func (a Address) Bytes() []byte + func (a Address) Empty() bool + func (a Address) Format(f fmt.State, c rune) + func (a Address) Marshal() ([]byte, error) + func (a Address) MarshalCBOR(w io.Writer) error + func (a Address) MarshalJSON() ([]byte, error) + func (a Address) Payload() []byte + func (a Address) Protocol() Protocol + func (a Address) String() string + func (a Address) Unmarshal(b []byte) error + type Network = byte + const Mainnet + const Testnet + type Protocol = byte + const Actor + const BLS + const ID + const SECP256K1 + const Unknown