Versions in this module Expand all Collapse all v1 v1.1.0 Aug 14, 2019 v1.0.0 Jun 25, 2019 Changes in this version + const MaxNumKeysForMultiSig + func CheckReplacable(oldKey AccountKey, newKey AccountKey, currentBlockNumber uint64) error + func ValidateAccountKey(from common.Address, accKey AccountKey, pubkeys []*ecdsa.PublicKey, ...) error + type AccountKey interface + AccountCreationGas func(currentBlockNumber uint64) (uint64, error) + CheckInstallable func(currentBlockNumber uint64) error + CheckUpdatable func(newKey AccountKey, currentBlockNumber uint64) error + DeepCopy func() AccountKey + Equal func(AccountKey) bool + IsCompositeType func() bool + SigValidationGas func(currentBlockNumber uint64, r RoleType) (uint64, error) + String func() string + Type func() AccountKeyType + Update func(newKey AccountKey, currentBlockNumber uint64) error + Validate func(RoleType, []*ecdsa.PublicKey) bool + func NewAccountKey(t AccountKeyType) (AccountKey, error) + type AccountKeyFail struct + func NewAccountKeyFail() *AccountKeyFail + func (a *AccountKeyFail) AccountCreationGas(currentBlockNumber uint64) (uint64, error) + func (a *AccountKeyFail) CheckInstallable(currentBlockNumber uint64) error + func (a *AccountKeyFail) CheckUpdatable(newKey AccountKey, currentBlockNumber uint64) error + func (a *AccountKeyFail) DeepCopy() AccountKey + func (a *AccountKeyFail) Equal(b AccountKey) bool + func (a *AccountKeyFail) IsCompositeType() bool + func (a *AccountKeyFail) SigValidationGas(currentBlockNumber uint64, r RoleType) (uint64, error) + func (a *AccountKeyFail) String() string + func (a *AccountKeyFail) Type() AccountKeyType + func (a *AccountKeyFail) Update(newKey AccountKey, currentBlockNumber uint64) error + func (a *AccountKeyFail) Validate(r RoleType, pubkeys []*ecdsa.PublicKey) bool + type AccountKeyLegacy struct + func NewAccountKeyLegacy() *AccountKeyLegacy + func (a *AccountKeyLegacy) AccountCreationGas(currentBlockNumber uint64) (uint64, error) + func (a *AccountKeyLegacy) CheckInstallable(currentBlockNumber uint64) error + func (a *AccountKeyLegacy) CheckUpdatable(newKey AccountKey, currentBlockNumber uint64) error + func (a *AccountKeyLegacy) DeepCopy() AccountKey + func (a *AccountKeyLegacy) Equal(b AccountKey) bool + func (a *AccountKeyLegacy) IsCompositeType() bool + func (a *AccountKeyLegacy) SigValidationGas(currentBlockNumber uint64, r RoleType) (uint64, error) + func (a *AccountKeyLegacy) String() string + func (a *AccountKeyLegacy) Type() AccountKeyType + func (a *AccountKeyLegacy) Update(newKey AccountKey, currentBlockNumber uint64) error + func (a *AccountKeyLegacy) Validate(r RoleType, pubkeys []*ecdsa.PublicKey) bool + type AccountKeyNil struct + func NewAccountKeyNil() *AccountKeyNil + func (a *AccountKeyNil) AccountCreationGas(currentBlockNumber uint64) (uint64, error) + func (a *AccountKeyNil) CheckInstallable(currentBlockNumber uint64) error + func (a *AccountKeyNil) CheckUpdatable(newKey AccountKey, currentBlockNumber uint64) error + func (a *AccountKeyNil) DecodeRLP(s *rlp.Stream) error + func (a *AccountKeyNil) DeepCopy() AccountKey + func (a *AccountKeyNil) EncodeRLP(w io.Writer) error + func (a *AccountKeyNil) Equal(b AccountKey) bool + func (a *AccountKeyNil) IsCompositeType() bool + func (a *AccountKeyNil) SigValidationGas(currentBlockNumber uint64, r RoleType) (uint64, error) + func (a *AccountKeyNil) String() string + func (a *AccountKeyNil) Type() AccountKeyType + func (a *AccountKeyNil) Update(newKey AccountKey, currentBlockNumber uint64) error + func (a *AccountKeyNil) Validate(r RoleType, pubkeys []*ecdsa.PublicKey) bool + type AccountKeyPublic struct + func NewAccountKeyPublic() *AccountKeyPublic + func NewAccountKeyPublicWithValue(pk *ecdsa.PublicKey) *AccountKeyPublic + func (a *AccountKeyPublic) AccountCreationGas(currentBlockNumber uint64) (uint64, error) + func (a *AccountKeyPublic) CheckInstallable(currentBlockNumber uint64) error + func (a *AccountKeyPublic) CheckUpdatable(newKey AccountKey, currentBlockNumber uint64) error + func (a *AccountKeyPublic) DeepCopy() AccountKey + func (a *AccountKeyPublic) Equal(b AccountKey) bool + func (a *AccountKeyPublic) IsCompositeType() bool + func (a *AccountKeyPublic) SigValidationGas(currentBlockNumber uint64, r RoleType) (uint64, error) + func (a *AccountKeyPublic) String() string + func (a *AccountKeyPublic) Type() AccountKeyType + func (a *AccountKeyPublic) Update(newKey AccountKey, currentBlockNumber uint64) error + func (a *AccountKeyPublic) Validate(r RoleType, pubkeys []*ecdsa.PublicKey) bool + type AccountKeyRoleBased []AccountKey + func NewAccountKeyRoleBased() *AccountKeyRoleBased + func NewAccountKeyRoleBasedWithValues(keys []AccountKey) *AccountKeyRoleBased + func (a *AccountKeyRoleBased) AccountCreationGas(currentBlockNumber uint64) (uint64, error) + func (a *AccountKeyRoleBased) CheckInstallable(currentBlockNumber uint64) error + func (a *AccountKeyRoleBased) CheckUpdatable(newKey AccountKey, currentBlockNumber uint64) error + func (a *AccountKeyRoleBased) DecodeRLP(s *rlp.Stream) error + func (a *AccountKeyRoleBased) DeepCopy() AccountKey + func (a *AccountKeyRoleBased) EncodeRLP(w io.Writer) error + func (a *AccountKeyRoleBased) Equal(b AccountKey) bool + func (a *AccountKeyRoleBased) IsCompositeType() bool + func (a *AccountKeyRoleBased) MarshalJSON() ([]byte, error) + func (a *AccountKeyRoleBased) SigValidationGas(currentBlockNumber uint64, r RoleType) (uint64, error) + func (a *AccountKeyRoleBased) String() string + func (a *AccountKeyRoleBased) Type() AccountKeyType + func (a *AccountKeyRoleBased) UnmarshalJSON(b []byte) error + func (a *AccountKeyRoleBased) Update(newKey AccountKey, currentBlockNumber uint64) error + func (a *AccountKeyRoleBased) Validate(r RoleType, pubkeys []*ecdsa.PublicKey) bool + type AccountKeySerializer struct + func NewAccountKeySerializer() *AccountKeySerializer + func NewAccountKeySerializerWithAccountKey(k AccountKey) *AccountKeySerializer + func (serializer *AccountKeySerializer) DecodeRLP(s *rlp.Stream) error + func (serializer *AccountKeySerializer) EncodeRLP(w io.Writer) error + func (serializer *AccountKeySerializer) GetKey() AccountKey + func (serializer *AccountKeySerializer) MarshalJSON() ([]byte, error) + func (serializer *AccountKeySerializer) UnmarshalJSON(b []byte) error + type AccountKeyType uint8 + const AccountKeyTypeFail + const AccountKeyTypeLast + const AccountKeyTypeLegacy + const AccountKeyTypeNil + const AccountKeyTypePublic + const AccountKeyTypeRoleBased + const AccountKeyTypeWeightedMultiSig + func (a AccountKeyType) IsLegacyAccountKey() bool + type AccountKeyWeightedMultiSig struct + Keys WeightedPublicKeys + Threshold uint + func NewAccountKeyWeightedMultiSig() *AccountKeyWeightedMultiSig + func NewAccountKeyWeightedMultiSigWithValues(threshold uint, keys WeightedPublicKeys) *AccountKeyWeightedMultiSig + func (a *AccountKeyWeightedMultiSig) AccountCreationGas(currentBlockNumber uint64) (uint64, error) + func (a *AccountKeyWeightedMultiSig) CheckInstallable(currentBlockNumber uint64) error + func (a *AccountKeyWeightedMultiSig) CheckUpdatable(newKey AccountKey, currentBlockNumber uint64) error + func (a *AccountKeyWeightedMultiSig) DeepCopy() AccountKey + func (a *AccountKeyWeightedMultiSig) Equal(b AccountKey) bool + func (a *AccountKeyWeightedMultiSig) IsCompositeType() bool + func (a *AccountKeyWeightedMultiSig) SigValidationGas(currentBlockNumber uint64, r RoleType) (uint64, error) + func (a *AccountKeyWeightedMultiSig) String() string + func (a *AccountKeyWeightedMultiSig) Type() AccountKeyType + func (a *AccountKeyWeightedMultiSig) Update(newKey AccountKey, currentBlockNumber uint64) error + func (a *AccountKeyWeightedMultiSig) Validate(r RoleType, pubkeys []*ecdsa.PublicKey) bool + type PublicKeySerializable ecdsa.PublicKey + func (p *PublicKeySerializable) DecodeRLP(s *rlp.Stream) error + func (p *PublicKeySerializable) DeepCopy() *PublicKeySerializable + func (p *PublicKeySerializable) EncodeRLP(w io.Writer) error + func (p *PublicKeySerializable) Equal(pk *PublicKeySerializable) bool + func (p *PublicKeySerializable) MarshalJSON() ([]byte, error) + func (p *PublicKeySerializable) String() string + func (p *PublicKeySerializable) UnmarshalJSON(b []byte) error + type RoleType int + const RoleAccountUpdate + const RoleFeePayer + const RoleLast + const RoleTransaction + type WeightedPublicKey struct + Key *PublicKeySerializable + Weight uint + func NewWeightedPublicKey(weight uint, key *PublicKeySerializable) *WeightedPublicKey + func (w *WeightedPublicKey) Equal(b *WeightedPublicKey) bool + type WeightedPublicKeys []*WeightedPublicKey + func (w WeightedPublicKeys) DeepCopy() WeightedPublicKeys + func (w WeightedPublicKeys) Equal(b WeightedPublicKeys) bool