ideth

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2020 License: MIT Imports: 25 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ErrSignature must be used if a signature is invalid
	ErrSignature = errors.Error("invalid signature")
)
View Source
const FactoryContractABI = "" /* 821-byte string literal not displayed */

FactoryContractABI is the input ABI used to generate the binding from.

View Source
const IdentityContractABI = "" /* 2898-byte string literal not displayed */

IdentityContractABI is the input ABI used to generate the binding from.

Variables

This section is empty.

Functions

func CalculateCreatedAddress

func CalculateCreatedAddress(address common.Address, nonce uint64) common.Address

CalculateCreatedAddress calculates the Ethereum address based on address and nonce

func NewDIDFromContext

func NewDIDFromContext(ctx context.Context) (id.DID, error)

NewDIDFromContext returns DID from context.Account

func NewFactory

func NewFactory(factoryContract *FactoryContract, client ethereum.Client, jobManager jobs.Manager, queue *queue.Server, factoryAddress common.Address, conf id.Config) id.Factory

NewFactory returns a new identity factory service

func NewService

func NewService(client ethereum.Client, jobManager jobs.Manager, queue *queue.Server, conf id.Config) id.Service

NewService creates a instance of the identity service

Types

type Bootstrapper

type Bootstrapper struct{}

Bootstrapper implements bootstrap.Bootstrapper.

func (*Bootstrapper) Bootstrap

func (*Bootstrapper) Bootstrap(context map[string]interface{}) error

Bootstrap initializes the factory contract

type FactoryContract

type FactoryContract struct {
	FactoryContractCaller     // Read-only binding to the contract
	FactoryContractTransactor // Write-only binding to the contract
	FactoryContractFilterer   // Log filterer for contract events
}

FactoryContract is an auto generated Go binding around an Ethereum contract.

func NewFactoryContract

func NewFactoryContract(address common.Address, backend bind.ContractBackend) (*FactoryContract, error)

NewFactoryContract creates a new instance of FactoryContract, bound to a specific deployed contract.

type FactoryContractCaller

type FactoryContractCaller struct {
	// contains filtered or unexported fields
}

FactoryContractCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewFactoryContractCaller

func NewFactoryContractCaller(address common.Address, caller bind.ContractCaller) (*FactoryContractCaller, error)

NewFactoryContractCaller creates a new read-only instance of FactoryContract, bound to a specific deployed contract.

func (*FactoryContractCaller) CreatedIdentity

func (_FactoryContract *FactoryContractCaller) CreatedIdentity(opts *bind.CallOpts, identityAddr common.Address) (bool, error)

CreatedIdentity is a free data retrieval call binding the contract method 0xfc252feb.

Solidity: function createdIdentity(address identityAddr) view returns(bool valid)

type FactoryContractCallerRaw

type FactoryContractCallerRaw struct {
	Contract *FactoryContractCaller // Generic read-only contract binding to access the raw methods on
}

FactoryContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*FactoryContractCallerRaw) Call

func (_FactoryContract *FactoryContractCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type FactoryContractCallerSession

type FactoryContractCallerSession struct {
	Contract *FactoryContractCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts          // Call options to use throughout this session
}

FactoryContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*FactoryContractCallerSession) CreatedIdentity

func (_FactoryContract *FactoryContractCallerSession) CreatedIdentity(identityAddr common.Address) (bool, error)

CreatedIdentity is a free data retrieval call binding the contract method 0xfc252feb.

Solidity: function createdIdentity(address identityAddr) view returns(bool valid)

type FactoryContractFilterer

type FactoryContractFilterer struct {
	// contains filtered or unexported fields
}

FactoryContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewFactoryContractFilterer

func NewFactoryContractFilterer(address common.Address, filterer bind.ContractFilterer) (*FactoryContractFilterer, error)

NewFactoryContractFilterer creates a new log filterer instance of FactoryContract, bound to a specific deployed contract.

func (*FactoryContractFilterer) FilterIdentityCreated

func (_FactoryContract *FactoryContractFilterer) FilterIdentityCreated(opts *bind.FilterOpts, identity []common.Address) (*FactoryContractIdentityCreatedIterator, error)

FilterIdentityCreated is a free log retrieval operation binding the contract event 0xac993fde3b9423ff59e4a23cded8e89074c9c8740920d1d870f586ba7c5c8cf0.

Solidity: event IdentityCreated(address indexed identity)

func (*FactoryContractFilterer) ParseIdentityCreated added in v1.0.0

func (_FactoryContract *FactoryContractFilterer) ParseIdentityCreated(log types.Log) (*FactoryContractIdentityCreated, error)

ParseIdentityCreated is a log parse operation binding the contract event 0xac993fde3b9423ff59e4a23cded8e89074c9c8740920d1d870f586ba7c5c8cf0.

Solidity: event IdentityCreated(address indexed identity)

func (*FactoryContractFilterer) WatchIdentityCreated

func (_FactoryContract *FactoryContractFilterer) WatchIdentityCreated(opts *bind.WatchOpts, sink chan<- *FactoryContractIdentityCreated, identity []common.Address) (event.Subscription, error)

WatchIdentityCreated is a free log subscription operation binding the contract event 0xac993fde3b9423ff59e4a23cded8e89074c9c8740920d1d870f586ba7c5c8cf0.

Solidity: event IdentityCreated(address indexed identity)

type FactoryContractIdentityCreated

type FactoryContractIdentityCreated struct {
	Identity common.Address
	Raw      types.Log // Blockchain specific contextual infos
}

FactoryContractIdentityCreated represents a IdentityCreated event raised by the FactoryContract contract.

type FactoryContractIdentityCreatedIterator

type FactoryContractIdentityCreatedIterator struct {
	Event *FactoryContractIdentityCreated // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

FactoryContractIdentityCreatedIterator is returned from FilterIdentityCreated and is used to iterate over the raw logs and unpacked data for IdentityCreated events raised by the FactoryContract contract.

func (*FactoryContractIdentityCreatedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*FactoryContractIdentityCreatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*FactoryContractIdentityCreatedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type FactoryContractRaw

type FactoryContractRaw struct {
	Contract *FactoryContract // Generic contract binding to access the raw methods on
}

FactoryContractRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*FactoryContractRaw) Call

func (_FactoryContract *FactoryContractRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*FactoryContractRaw) Transact

func (_FactoryContract *FactoryContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*FactoryContractRaw) Transfer

func (_FactoryContract *FactoryContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type FactoryContractSession

type FactoryContractSession struct {
	Contract     *FactoryContract  // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

FactoryContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*FactoryContractSession) CreateIdentity

func (_FactoryContract *FactoryContractSession) CreateIdentity() (*types.Transaction, error)

CreateIdentity is a paid mutator transaction binding the contract method 0x59d21ad9.

Solidity: function createIdentity() returns()

func (*FactoryContractSession) CreateIdentityFor

func (_FactoryContract *FactoryContractSession) CreateIdentityFor(manager common.Address, keys [][32]byte, purposes []*big.Int) (*types.Transaction, error)

CreateIdentityFor is a paid mutator transaction binding the contract method 0xc4ff1c23.

Solidity: function createIdentityFor(address manager, bytes32[] keys, uint256[] purposes) returns()

func (*FactoryContractSession) CreatedIdentity

func (_FactoryContract *FactoryContractSession) CreatedIdentity(identityAddr common.Address) (bool, error)

CreatedIdentity is a free data retrieval call binding the contract method 0xfc252feb.

Solidity: function createdIdentity(address identityAddr) view returns(bool valid)

type FactoryContractTransactor

type FactoryContractTransactor struct {
	// contains filtered or unexported fields
}

FactoryContractTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewFactoryContractTransactor

func NewFactoryContractTransactor(address common.Address, transactor bind.ContractTransactor) (*FactoryContractTransactor, error)

NewFactoryContractTransactor creates a new write-only instance of FactoryContract, bound to a specific deployed contract.

func (*FactoryContractTransactor) CreateIdentity

func (_FactoryContract *FactoryContractTransactor) CreateIdentity(opts *bind.TransactOpts) (*types.Transaction, error)

CreateIdentity is a paid mutator transaction binding the contract method 0x59d21ad9.

Solidity: function createIdentity() returns()

func (*FactoryContractTransactor) CreateIdentityFor

func (_FactoryContract *FactoryContractTransactor) CreateIdentityFor(opts *bind.TransactOpts, manager common.Address, keys [][32]byte, purposes []*big.Int) (*types.Transaction, error)

CreateIdentityFor is a paid mutator transaction binding the contract method 0xc4ff1c23.

Solidity: function createIdentityFor(address manager, bytes32[] keys, uint256[] purposes) returns()

type FactoryContractTransactorRaw

type FactoryContractTransactorRaw struct {
	Contract *FactoryContractTransactor // Generic write-only contract binding to access the raw methods on
}

FactoryContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*FactoryContractTransactorRaw) Transact

func (_FactoryContract *FactoryContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*FactoryContractTransactorRaw) Transfer

func (_FactoryContract *FactoryContractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type FactoryContractTransactorSession

type FactoryContractTransactorSession struct {
	Contract     *FactoryContractTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts          // Transaction auth options to use throughout this session
}

FactoryContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*FactoryContractTransactorSession) CreateIdentity

func (_FactoryContract *FactoryContractTransactorSession) CreateIdentity() (*types.Transaction, error)

CreateIdentity is a paid mutator transaction binding the contract method 0x59d21ad9.

Solidity: function createIdentity() returns()

func (*FactoryContractTransactorSession) CreateIdentityFor

func (_FactoryContract *FactoryContractTransactorSession) CreateIdentityFor(manager common.Address, keys [][32]byte, purposes []*big.Int) (*types.Transaction, error)

CreateIdentityFor is a paid mutator transaction binding the contract method 0xc4ff1c23.

Solidity: function createIdentityFor(address manager, bytes32[] keys, uint256[] purposes) returns()

type IdentityContract

type IdentityContract struct {
	IdentityContractCaller     // Read-only binding to the contract
	IdentityContractTransactor // Write-only binding to the contract
	IdentityContractFilterer   // Log filterer for contract events
}

IdentityContract is an auto generated Go binding around an Ethereum contract.

func NewIdentityContract

func NewIdentityContract(address common.Address, backend bind.ContractBackend) (*IdentityContract, error)

NewIdentityContract creates a new instance of IdentityContract, bound to a specific deployed contract.

type IdentityContractCaller

type IdentityContractCaller struct {
	// contains filtered or unexported fields
}

IdentityContractCaller is an auto generated read-only Go binding around an Ethereum contract.

func NewIdentityContractCaller

func NewIdentityContractCaller(address common.Address, caller bind.ContractCaller) (*IdentityContractCaller, error)

NewIdentityContractCaller creates a new read-only instance of IdentityContract, bound to a specific deployed contract.

func (*IdentityContractCaller) AddressToKey

func (_IdentityContract *IdentityContractCaller) AddressToKey(opts *bind.CallOpts, addr common.Address) ([32]byte, error)

AddressToKey is a free data retrieval call binding the contract method 0x574363c8.

Solidity: function addressToKey(address addr) pure returns(bytes32)

func (*IdentityContractCaller) GetKey

func (_IdentityContract *IdentityContractCaller) GetKey(opts *bind.CallOpts, value [32]byte) (struct {
	Key       [32]byte
	Purposes  []*big.Int
	RevokedAt uint32
}, error)

GetKey is a free data retrieval call binding the contract method 0x12aaac70.

Solidity: function getKey(bytes32 value) view returns(bytes32 key, uint256[] purposes, uint32 revokedAt)

func (*IdentityContractCaller) GetKeysByPurpose

func (_IdentityContract *IdentityContractCaller) GetKeysByPurpose(opts *bind.CallOpts, purpose *big.Int) (struct {
	KeysByPurpose [][32]byte
	KeyTypes      []*big.Int
	KeysRevokedAt []uint32
}, error)

GetKeysByPurpose is a free data retrieval call binding the contract method 0x9010f726.

Solidity: function getKeysByPurpose(uint256 purpose) view returns(bytes32[] keysByPurpose, uint256[] keyTypes, uint32[] keysRevokedAt)

func (*IdentityContractCaller) KeyHasPurpose

func (_IdentityContract *IdentityContractCaller) KeyHasPurpose(opts *bind.CallOpts, key [32]byte, purpose *big.Int) (bool, error)

KeyHasPurpose is a free data retrieval call binding the contract method 0xd202158d.

Solidity: function keyHasPurpose(bytes32 key, uint256 purpose) view returns(bool found)

type IdentityContractCallerRaw

type IdentityContractCallerRaw struct {
	Contract *IdentityContractCaller // Generic read-only contract binding to access the raw methods on
}

IdentityContractCallerRaw is an auto generated low-level read-only Go binding around an Ethereum contract.

func (*IdentityContractCallerRaw) Call

func (_IdentityContract *IdentityContractCallerRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

type IdentityContractCallerSession

type IdentityContractCallerSession struct {
	Contract *IdentityContractCaller // Generic contract caller binding to set the session for
	CallOpts bind.CallOpts           // Call options to use throughout this session
}

IdentityContractCallerSession is an auto generated read-only Go binding around an Ethereum contract, with pre-set call options.

func (*IdentityContractCallerSession) AddressToKey

func (_IdentityContract *IdentityContractCallerSession) AddressToKey(addr common.Address) ([32]byte, error)

AddressToKey is a free data retrieval call binding the contract method 0x574363c8.

Solidity: function addressToKey(address addr) pure returns(bytes32)

func (*IdentityContractCallerSession) GetKey

func (_IdentityContract *IdentityContractCallerSession) GetKey(value [32]byte) (struct {
	Key       [32]byte
	Purposes  []*big.Int
	RevokedAt uint32
}, error)

GetKey is a free data retrieval call binding the contract method 0x12aaac70.

Solidity: function getKey(bytes32 value) view returns(bytes32 key, uint256[] purposes, uint32 revokedAt)

func (*IdentityContractCallerSession) GetKeysByPurpose

func (_IdentityContract *IdentityContractCallerSession) GetKeysByPurpose(purpose *big.Int) (struct {
	KeysByPurpose [][32]byte
	KeyTypes      []*big.Int
	KeysRevokedAt []uint32
}, error)

GetKeysByPurpose is a free data retrieval call binding the contract method 0x9010f726.

Solidity: function getKeysByPurpose(uint256 purpose) view returns(bytes32[] keysByPurpose, uint256[] keyTypes, uint32[] keysRevokedAt)

func (*IdentityContractCallerSession) KeyHasPurpose

func (_IdentityContract *IdentityContractCallerSession) KeyHasPurpose(key [32]byte, purpose *big.Int) (bool, error)

KeyHasPurpose is a free data retrieval call binding the contract method 0xd202158d.

Solidity: function keyHasPurpose(bytes32 key, uint256 purpose) view returns(bool found)

type IdentityContractFilterer

type IdentityContractFilterer struct {
	// contains filtered or unexported fields
}

IdentityContractFilterer is an auto generated log filtering Go binding around an Ethereum contract events.

func NewIdentityContractFilterer

func NewIdentityContractFilterer(address common.Address, filterer bind.ContractFilterer) (*IdentityContractFilterer, error)

NewIdentityContractFilterer creates a new log filterer instance of IdentityContract, bound to a specific deployed contract.

func (*IdentityContractFilterer) FilterKeyAdded

func (_IdentityContract *IdentityContractFilterer) FilterKeyAdded(opts *bind.FilterOpts, key [][32]byte, purpose []*big.Int, keyType []*big.Int) (*IdentityContractKeyAddedIterator, error)

FilterKeyAdded is a free log retrieval operation binding the contract event 0x480000bb1edad8ca1470381cc334b1917fbd51c6531f3a623ea8e0ec7e38a6e9.

Solidity: event KeyAdded(bytes32 indexed key, uint256 indexed purpose, uint256 indexed keyType)

func (*IdentityContractFilterer) FilterKeyRevoked

func (_IdentityContract *IdentityContractFilterer) FilterKeyRevoked(opts *bind.FilterOpts, key [][32]byte, revokedAt []uint32, keyType []*big.Int) (*IdentityContractKeyRevokedIterator, error)

FilterKeyRevoked is a free log retrieval operation binding the contract event 0x62db979b46b61a2c8ec127201e75b82b7a2dc57beb69834882857b7e9823d2fc.

Solidity: event KeyRevoked(bytes32 indexed key, uint32 indexed revokedAt, uint256 indexed keyType)

func (*IdentityContractFilterer) ParseKeyAdded added in v1.0.0

func (_IdentityContract *IdentityContractFilterer) ParseKeyAdded(log types.Log) (*IdentityContractKeyAdded, error)

ParseKeyAdded is a log parse operation binding the contract event 0x480000bb1edad8ca1470381cc334b1917fbd51c6531f3a623ea8e0ec7e38a6e9.

Solidity: event KeyAdded(bytes32 indexed key, uint256 indexed purpose, uint256 indexed keyType)

func (*IdentityContractFilterer) ParseKeyRevoked added in v1.0.0

func (_IdentityContract *IdentityContractFilterer) ParseKeyRevoked(log types.Log) (*IdentityContractKeyRevoked, error)

ParseKeyRevoked is a log parse operation binding the contract event 0x62db979b46b61a2c8ec127201e75b82b7a2dc57beb69834882857b7e9823d2fc.

Solidity: event KeyRevoked(bytes32 indexed key, uint32 indexed revokedAt, uint256 indexed keyType)

func (*IdentityContractFilterer) WatchKeyAdded

func (_IdentityContract *IdentityContractFilterer) WatchKeyAdded(opts *bind.WatchOpts, sink chan<- *IdentityContractKeyAdded, key [][32]byte, purpose []*big.Int, keyType []*big.Int) (event.Subscription, error)

WatchKeyAdded is a free log subscription operation binding the contract event 0x480000bb1edad8ca1470381cc334b1917fbd51c6531f3a623ea8e0ec7e38a6e9.

Solidity: event KeyAdded(bytes32 indexed key, uint256 indexed purpose, uint256 indexed keyType)

func (*IdentityContractFilterer) WatchKeyRevoked

func (_IdentityContract *IdentityContractFilterer) WatchKeyRevoked(opts *bind.WatchOpts, sink chan<- *IdentityContractKeyRevoked, key [][32]byte, revokedAt []uint32, keyType []*big.Int) (event.Subscription, error)

WatchKeyRevoked is a free log subscription operation binding the contract event 0x62db979b46b61a2c8ec127201e75b82b7a2dc57beb69834882857b7e9823d2fc.

Solidity: event KeyRevoked(bytes32 indexed key, uint32 indexed revokedAt, uint256 indexed keyType)

type IdentityContractKeyAdded

type IdentityContractKeyAdded struct {
	Key     [32]byte
	Purpose *big.Int
	KeyType *big.Int
	Raw     types.Log // Blockchain specific contextual infos
}

IdentityContractKeyAdded represents a KeyAdded event raised by the IdentityContract contract.

type IdentityContractKeyAddedIterator

type IdentityContractKeyAddedIterator struct {
	Event *IdentityContractKeyAdded // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

IdentityContractKeyAddedIterator is returned from FilterKeyAdded and is used to iterate over the raw logs and unpacked data for KeyAdded events raised by the IdentityContract contract.

func (*IdentityContractKeyAddedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*IdentityContractKeyAddedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*IdentityContractKeyAddedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type IdentityContractKeyRevoked

type IdentityContractKeyRevoked struct {
	Key       [32]byte
	RevokedAt uint32
	KeyType   *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

IdentityContractKeyRevoked represents a KeyRevoked event raised by the IdentityContract contract.

type IdentityContractKeyRevokedIterator

type IdentityContractKeyRevokedIterator struct {
	Event *IdentityContractKeyRevoked // Event containing the contract specifics and raw log
	// contains filtered or unexported fields
}

IdentityContractKeyRevokedIterator is returned from FilterKeyRevoked and is used to iterate over the raw logs and unpacked data for KeyRevoked events raised by the IdentityContract contract.

func (*IdentityContractKeyRevokedIterator) Close

Close terminates the iteration process, releasing any pending underlying resources.

func (*IdentityContractKeyRevokedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*IdentityContractKeyRevokedIterator) Next

Next advances the iterator to the subsequent event, returning whether there are any more events found. In case of a retrieval or parsing error, false is returned and Error() can be queried for the exact failure.

type IdentityContractRaw

type IdentityContractRaw struct {
	Contract *IdentityContract // Generic contract binding to access the raw methods on
}

IdentityContractRaw is an auto generated low-level Go binding around an Ethereum contract.

func (*IdentityContractRaw) Call

func (_IdentityContract *IdentityContractRaw) Call(opts *bind.CallOpts, result interface{}, method string, params ...interface{}) error

Call invokes the (constant) contract method with params as input values and sets the output to result. The result type might be a single field for simple returns, a slice of interfaces for anonymous returns and a struct for named returns.

func (*IdentityContractRaw) Transact

func (_IdentityContract *IdentityContractRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*IdentityContractRaw) Transfer

func (_IdentityContract *IdentityContractRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type IdentityContractSession

type IdentityContractSession struct {
	Contract     *IdentityContract // Generic contract binding to set the session for
	CallOpts     bind.CallOpts     // Call options to use throughout this session
	TransactOpts bind.TransactOpts // Transaction auth options to use throughout this session
}

IdentityContractSession is an auto generated Go binding around an Ethereum contract, with pre-set call and transact options.

func (*IdentityContractSession) AddKey

func (_IdentityContract *IdentityContractSession) AddKey(key [32]byte, purpose *big.Int, keyType *big.Int) (*types.Transaction, error)

AddKey is a paid mutator transaction binding the contract method 0x1d381240.

Solidity: function addKey(bytes32 key, uint256 purpose, uint256 keyType) returns()

func (*IdentityContractSession) AddMultiPurposeKey

func (_IdentityContract *IdentityContractSession) AddMultiPurposeKey(key [32]byte, purposes []*big.Int, keyType *big.Int) (*types.Transaction, error)

AddMultiPurposeKey is a paid mutator transaction binding the contract method 0x173d2616.

Solidity: function addMultiPurposeKey(bytes32 key, uint256[] purposes, uint256 keyType) returns()

func (*IdentityContractSession) AddressToKey

func (_IdentityContract *IdentityContractSession) AddressToKey(addr common.Address) ([32]byte, error)

AddressToKey is a free data retrieval call binding the contract method 0x574363c8.

Solidity: function addressToKey(address addr) pure returns(bytes32)

func (*IdentityContractSession) Execute

func (_IdentityContract *IdentityContractSession) Execute(to common.Address, value *big.Int, data []byte) (*types.Transaction, error)

Execute is a paid mutator transaction binding the contract method 0xb61d27f6.

Solidity: function execute(address to, uint256 value, bytes data) returns()

func (*IdentityContractSession) GetKey

func (_IdentityContract *IdentityContractSession) GetKey(value [32]byte) (struct {
	Key       [32]byte
	Purposes  []*big.Int
	RevokedAt uint32
}, error)

GetKey is a free data retrieval call binding the contract method 0x12aaac70.

Solidity: function getKey(bytes32 value) view returns(bytes32 key, uint256[] purposes, uint32 revokedAt)

func (*IdentityContractSession) GetKeysByPurpose

func (_IdentityContract *IdentityContractSession) GetKeysByPurpose(purpose *big.Int) (struct {
	KeysByPurpose [][32]byte
	KeyTypes      []*big.Int
	KeysRevokedAt []uint32
}, error)

GetKeysByPurpose is a free data retrieval call binding the contract method 0x9010f726.

Solidity: function getKeysByPurpose(uint256 purpose) view returns(bytes32[] keysByPurpose, uint256[] keyTypes, uint32[] keysRevokedAt)

func (*IdentityContractSession) KeyHasPurpose

func (_IdentityContract *IdentityContractSession) KeyHasPurpose(key [32]byte, purpose *big.Int) (bool, error)

KeyHasPurpose is a free data retrieval call binding the contract method 0xd202158d.

Solidity: function keyHasPurpose(bytes32 key, uint256 purpose) view returns(bool found)

func (*IdentityContractSession) RevokeKey

func (_IdentityContract *IdentityContractSession) RevokeKey(key [32]byte) (*types.Transaction, error)

RevokeKey is a paid mutator transaction binding the contract method 0x572f2210.

Solidity: function revokeKey(bytes32 key) returns()

type IdentityContractTransactor

type IdentityContractTransactor struct {
	// contains filtered or unexported fields
}

IdentityContractTransactor is an auto generated write-only Go binding around an Ethereum contract.

func NewIdentityContractTransactor

func NewIdentityContractTransactor(address common.Address, transactor bind.ContractTransactor) (*IdentityContractTransactor, error)

NewIdentityContractTransactor creates a new write-only instance of IdentityContract, bound to a specific deployed contract.

func (*IdentityContractTransactor) AddKey

func (_IdentityContract *IdentityContractTransactor) AddKey(opts *bind.TransactOpts, key [32]byte, purpose *big.Int, keyType *big.Int) (*types.Transaction, error)

AddKey is a paid mutator transaction binding the contract method 0x1d381240.

Solidity: function addKey(bytes32 key, uint256 purpose, uint256 keyType) returns()

func (*IdentityContractTransactor) AddMultiPurposeKey

func (_IdentityContract *IdentityContractTransactor) AddMultiPurposeKey(opts *bind.TransactOpts, key [32]byte, purposes []*big.Int, keyType *big.Int) (*types.Transaction, error)

AddMultiPurposeKey is a paid mutator transaction binding the contract method 0x173d2616.

Solidity: function addMultiPurposeKey(bytes32 key, uint256[] purposes, uint256 keyType) returns()

func (*IdentityContractTransactor) Execute

func (_IdentityContract *IdentityContractTransactor) Execute(opts *bind.TransactOpts, to common.Address, value *big.Int, data []byte) (*types.Transaction, error)

Execute is a paid mutator transaction binding the contract method 0xb61d27f6.

Solidity: function execute(address to, uint256 value, bytes data) returns()

func (*IdentityContractTransactor) RevokeKey

func (_IdentityContract *IdentityContractTransactor) RevokeKey(opts *bind.TransactOpts, key [32]byte) (*types.Transaction, error)

RevokeKey is a paid mutator transaction binding the contract method 0x572f2210.

Solidity: function revokeKey(bytes32 key) returns()

type IdentityContractTransactorRaw

type IdentityContractTransactorRaw struct {
	Contract *IdentityContractTransactor // Generic write-only contract binding to access the raw methods on
}

IdentityContractTransactorRaw is an auto generated low-level write-only Go binding around an Ethereum contract.

func (*IdentityContractTransactorRaw) Transact

func (_IdentityContract *IdentityContractTransactorRaw) Transact(opts *bind.TransactOpts, method string, params ...interface{}) (*types.Transaction, error)

Transact invokes the (paid) contract method with params as input values.

func (*IdentityContractTransactorRaw) Transfer

func (_IdentityContract *IdentityContractTransactorRaw) Transfer(opts *bind.TransactOpts) (*types.Transaction, error)

Transfer initiates a plain transaction to move funds to the contract, calling its default method if one is available.

type IdentityContractTransactorSession

type IdentityContractTransactorSession struct {
	Contract     *IdentityContractTransactor // Generic contract transactor binding to set the session for
	TransactOpts bind.TransactOpts           // Transaction auth options to use throughout this session
}

IdentityContractTransactorSession is an auto generated write-only Go binding around an Ethereum contract, with pre-set transact options.

func (*IdentityContractTransactorSession) AddKey

func (_IdentityContract *IdentityContractTransactorSession) AddKey(key [32]byte, purpose *big.Int, keyType *big.Int) (*types.Transaction, error)

AddKey is a paid mutator transaction binding the contract method 0x1d381240.

Solidity: function addKey(bytes32 key, uint256 purpose, uint256 keyType) returns()

func (*IdentityContractTransactorSession) AddMultiPurposeKey

func (_IdentityContract *IdentityContractTransactorSession) AddMultiPurposeKey(key [32]byte, purposes []*big.Int, keyType *big.Int) (*types.Transaction, error)

AddMultiPurposeKey is a paid mutator transaction binding the contract method 0x173d2616.

Solidity: function addMultiPurposeKey(bytes32 key, uint256[] purposes, uint256 keyType) returns()

func (*IdentityContractTransactorSession) Execute

func (_IdentityContract *IdentityContractTransactorSession) Execute(to common.Address, value *big.Int, data []byte) (*types.Transaction, error)

Execute is a paid mutator transaction binding the contract method 0xb61d27f6.

Solidity: function execute(address to, uint256 value, bytes data) returns()

func (*IdentityContractTransactorSession) RevokeKey

func (_IdentityContract *IdentityContractTransactorSession) RevokeKey(key [32]byte) (*types.Transaction, error)

RevokeKey is a paid mutator transaction binding the contract method 0x572f2210.

Solidity: function revokeKey(bytes32 key) returns()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL