geth

package
v0.0.0-...-5288846 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const KeyInfoABI = "" /* 2704-byte string literal not displayed */

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

Variables

View Source
var KeyInfoBin = "" /* 6786-byte string literal not displayed */

KeyInfoBin is the compiled bytecode used for deploying new contracts.

View Source
var KeyInfoFuncSigs = map[string]string{
	"07873ddc": "addKeyShareInfo(bytes32,bytes,bytes,bytes)",
	"b8b64181": "forwardPubkey(bytes,bytes,bytes32)",
	"4e6a698d": "pubkeyForwards(bytes)",
	"2ac8597c": "pubkeys(bytes)",
	"545239fe": "userkeys(bytes32,uint256)",
}

KeyInfoFuncSigs maps the 4-byte function signature to its string representation.

Functions

This section is empty.

Types

type KeyInfo

type KeyInfo struct {
	KeyInfoCaller     // Read-only binding to the contract
	KeyInfoTransactor // Write-only binding to the contract
	KeyInfoFilterer   // Log filterer for contract events
}

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

func DeployKeyInfo

func DeployKeyInfo(auth *bind.TransactOpts, backend bind.ContractBackend) (common.Address, *types.Transaction, *KeyInfo, error)

DeployKeyInfo deploys a new Ethereum contract, binding an instance of KeyInfo to it.

func NewKeyInfo

func NewKeyInfo(address common.Address, backend bind.ContractBackend) (*KeyInfo, error)

NewKeyInfo creates a new instance of KeyInfo, bound to a specific deployed contract.

type KeyInfoCaller

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

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

func NewKeyInfoCaller

func NewKeyInfoCaller(address common.Address, caller bind.ContractCaller) (*KeyInfoCaller, error)

NewKeyInfoCaller creates a new read-only instance of KeyInfo, bound to a specific deployed contract.

func (*KeyInfoCaller) PubkeyForwards

func (_KeyInfo *KeyInfoCaller) PubkeyForwards(opts *bind.CallOpts, arg0 []byte) ([]byte, error)

PubkeyForwards is a free data retrieval call binding the contract method 0x4e6a698d.

Solidity: function pubkeyForwards(bytes ) view returns(bytes)

func (*KeyInfoCaller) Pubkeys

func (_KeyInfo *KeyInfoCaller) Pubkeys(opts *bind.CallOpts, arg0 []byte) (struct {
	Party1    []byte
	Party2    []byte
	Timestamp *big.Int
}, error)

Pubkeys is a free data retrieval call binding the contract method 0x2ac8597c.

Solidity: function pubkeys(bytes ) view returns(bytes party1, bytes party2, uint256 timestamp)

func (*KeyInfoCaller) Userkeys

func (_KeyInfo *KeyInfoCaller) Userkeys(opts *bind.CallOpts, arg0 [32]byte, arg1 *big.Int) ([]byte, error)

Userkeys is a free data retrieval call binding the contract method 0x545239fe.

Solidity: function userkeys(bytes32 , uint256 ) view returns(bytes)

type KeyInfoCallerRaw

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

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

func (*KeyInfoCallerRaw) Call

func (_KeyInfo *KeyInfoCallerRaw) 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 KeyInfoCallerSession

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

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

func (*KeyInfoCallerSession) PubkeyForwards

func (_KeyInfo *KeyInfoCallerSession) PubkeyForwards(arg0 []byte) ([]byte, error)

PubkeyForwards is a free data retrieval call binding the contract method 0x4e6a698d.

Solidity: function pubkeyForwards(bytes ) view returns(bytes)

func (*KeyInfoCallerSession) Pubkeys

func (_KeyInfo *KeyInfoCallerSession) Pubkeys(arg0 []byte) (struct {
	Party1    []byte
	Party2    []byte
	Timestamp *big.Int
}, error)

Pubkeys is a free data retrieval call binding the contract method 0x2ac8597c.

Solidity: function pubkeys(bytes ) view returns(bytes party1, bytes party2, uint256 timestamp)

func (*KeyInfoCallerSession) Userkeys

func (_KeyInfo *KeyInfoCallerSession) Userkeys(arg0 [32]byte, arg1 *big.Int) ([]byte, error)

Userkeys is a free data retrieval call binding the contract method 0x545239fe.

Solidity: function userkeys(bytes32 , uint256 ) view returns(bytes)

type KeyInfoFilterer

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

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

func NewKeyInfoFilterer

func NewKeyInfoFilterer(address common.Address, filterer bind.ContractFilterer) (*KeyInfoFilterer, error)

NewKeyInfoFilterer creates a new log filterer instance of KeyInfo, bound to a specific deployed contract.

func (*KeyInfoFilterer) FilterKeyShareUpdated

func (_KeyInfo *KeyInfoFilterer) FilterKeyShareUpdated(opts *bind.FilterOpts, pubkey [][]byte, user [][32]byte) (*KeyInfoKeyShareUpdatedIterator, error)

FilterKeyShareUpdated is a free log retrieval operation binding the contract event 0x909956b054ea2ed1b865ac0e9bf20662c97d78d97205883668215fa0f7ca1b8e.

Solidity: event KeyShareUpdated(bytes indexed pubkey, bytes32 indexed user, bytes party1, bytes party2, uint256 timestamp)

func (*KeyInfoFilterer) FilterPubkeyForwarded

func (_KeyInfo *KeyInfoFilterer) FilterPubkeyForwarded(opts *bind.FilterOpts, pubkey [][]byte, newPubkey [][]byte, user [][32]byte) (*KeyInfoPubkeyForwardedIterator, error)

FilterPubkeyForwarded is a free log retrieval operation binding the contract event 0x439b679fc9f542ae812b84dc519a97855cda3b311b9b926d034e924bdf0cf1a0.

Solidity: event PubkeyForwarded(bytes indexed pubkey, bytes indexed newPubkey, bytes32 indexed user, uint256 timestamp)

func (*KeyInfoFilterer) ParseKeyShareUpdated

func (_KeyInfo *KeyInfoFilterer) ParseKeyShareUpdated(log types.Log) (*KeyInfoKeyShareUpdated, error)

ParseKeyShareUpdated is a log parse operation binding the contract event 0x909956b054ea2ed1b865ac0e9bf20662c97d78d97205883668215fa0f7ca1b8e.

Solidity: event KeyShareUpdated(bytes indexed pubkey, bytes32 indexed user, bytes party1, bytes party2, uint256 timestamp)

func (*KeyInfoFilterer) ParsePubkeyForwarded

func (_KeyInfo *KeyInfoFilterer) ParsePubkeyForwarded(log types.Log) (*KeyInfoPubkeyForwarded, error)

ParsePubkeyForwarded is a log parse operation binding the contract event 0x439b679fc9f542ae812b84dc519a97855cda3b311b9b926d034e924bdf0cf1a0.

Solidity: event PubkeyForwarded(bytes indexed pubkey, bytes indexed newPubkey, bytes32 indexed user, uint256 timestamp)

func (*KeyInfoFilterer) WatchKeyShareUpdated

func (_KeyInfo *KeyInfoFilterer) WatchKeyShareUpdated(opts *bind.WatchOpts, sink chan<- *KeyInfoKeyShareUpdated, pubkey [][]byte, user [][32]byte) (event.Subscription, error)

WatchKeyShareUpdated is a free log subscription operation binding the contract event 0x909956b054ea2ed1b865ac0e9bf20662c97d78d97205883668215fa0f7ca1b8e.

Solidity: event KeyShareUpdated(bytes indexed pubkey, bytes32 indexed user, bytes party1, bytes party2, uint256 timestamp)

func (*KeyInfoFilterer) WatchPubkeyForwarded

func (_KeyInfo *KeyInfoFilterer) WatchPubkeyForwarded(opts *bind.WatchOpts, sink chan<- *KeyInfoPubkeyForwarded, pubkey [][]byte, newPubkey [][]byte, user [][32]byte) (event.Subscription, error)

WatchPubkeyForwarded is a free log subscription operation binding the contract event 0x439b679fc9f542ae812b84dc519a97855cda3b311b9b926d034e924bdf0cf1a0.

Solidity: event PubkeyForwarded(bytes indexed pubkey, bytes indexed newPubkey, bytes32 indexed user, uint256 timestamp)

type KeyInfoKeyShareUpdated

type KeyInfoKeyShareUpdated struct {
	Pubkey    common.Hash
	User      [32]byte
	Party1    []byte
	Party2    []byte
	Timestamp *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

KeyInfoKeyShareUpdated represents a KeyShareUpdated event raised by the KeyInfo contract.

type KeyInfoKeyShareUpdatedIterator

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

KeyInfoKeyShareUpdatedIterator is returned from FilterKeyShareUpdated and is used to iterate over the raw logs and unpacked data for KeyShareUpdated events raised by the KeyInfo contract.

func (*KeyInfoKeyShareUpdatedIterator) Close

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

func (*KeyInfoKeyShareUpdatedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*KeyInfoKeyShareUpdatedIterator) 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 KeyInfoPubkeyForwarded

type KeyInfoPubkeyForwarded struct {
	Pubkey    common.Hash
	NewPubkey common.Hash
	User      [32]byte
	Timestamp *big.Int
	Raw       types.Log // Blockchain specific contextual infos
}

KeyInfoPubkeyForwarded represents a PubkeyForwarded event raised by the KeyInfo contract.

type KeyInfoPubkeyForwardedIterator

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

KeyInfoPubkeyForwardedIterator is returned from FilterPubkeyForwarded and is used to iterate over the raw logs and unpacked data for PubkeyForwarded events raised by the KeyInfo contract.

func (*KeyInfoPubkeyForwardedIterator) Close

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

func (*KeyInfoPubkeyForwardedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*KeyInfoPubkeyForwardedIterator) 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 KeyInfoRaw

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

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

func (*KeyInfoRaw) Call

func (_KeyInfo *KeyInfoRaw) 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 (*KeyInfoRaw) Transact

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

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

func (*KeyInfoRaw) Transfer

func (_KeyInfo *KeyInfoRaw) 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 KeyInfoSession

type KeyInfoSession struct {
	Contract     *KeyInfo          // 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
}

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

func (*KeyInfoSession) AddKeyShareInfo

func (_KeyInfo *KeyInfoSession) AddKeyShareInfo(user [32]byte, pubkey []byte, party1 []byte, party2 []byte) (*types.Transaction, error)

AddKeyShareInfo is a paid mutator transaction binding the contract method 0x07873ddc.

Solidity: function addKeyShareInfo(bytes32 user, bytes pubkey, bytes party1, bytes party2) returns(bool success)

func (*KeyInfoSession) ForwardPubkey

func (_KeyInfo *KeyInfoSession) ForwardPubkey(pubkey []byte, newPubkey []byte, user [32]byte) (*types.Transaction, error)

ForwardPubkey is a paid mutator transaction binding the contract method 0xb8b64181.

Solidity: function forwardPubkey(bytes pubkey, bytes newPubkey, bytes32 user) returns(bool success)

func (*KeyInfoSession) PubkeyForwards

func (_KeyInfo *KeyInfoSession) PubkeyForwards(arg0 []byte) ([]byte, error)

PubkeyForwards is a free data retrieval call binding the contract method 0x4e6a698d.

Solidity: function pubkeyForwards(bytes ) view returns(bytes)

func (*KeyInfoSession) Pubkeys

func (_KeyInfo *KeyInfoSession) Pubkeys(arg0 []byte) (struct {
	Party1    []byte
	Party2    []byte
	Timestamp *big.Int
}, error)

Pubkeys is a free data retrieval call binding the contract method 0x2ac8597c.

Solidity: function pubkeys(bytes ) view returns(bytes party1, bytes party2, uint256 timestamp)

func (*KeyInfoSession) Userkeys

func (_KeyInfo *KeyInfoSession) Userkeys(arg0 [32]byte, arg1 *big.Int) ([]byte, error)

Userkeys is a free data retrieval call binding the contract method 0x545239fe.

Solidity: function userkeys(bytes32 , uint256 ) view returns(bytes)

type KeyInfoTransactor

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

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

func NewKeyInfoTransactor

func NewKeyInfoTransactor(address common.Address, transactor bind.ContractTransactor) (*KeyInfoTransactor, error)

NewKeyInfoTransactor creates a new write-only instance of KeyInfo, bound to a specific deployed contract.

func (*KeyInfoTransactor) AddKeyShareInfo

func (_KeyInfo *KeyInfoTransactor) AddKeyShareInfo(opts *bind.TransactOpts, user [32]byte, pubkey []byte, party1 []byte, party2 []byte) (*types.Transaction, error)

AddKeyShareInfo is a paid mutator transaction binding the contract method 0x07873ddc.

Solidity: function addKeyShareInfo(bytes32 user, bytes pubkey, bytes party1, bytes party2) returns(bool success)

func (*KeyInfoTransactor) ForwardPubkey

func (_KeyInfo *KeyInfoTransactor) ForwardPubkey(opts *bind.TransactOpts, pubkey []byte, newPubkey []byte, user [32]byte) (*types.Transaction, error)

ForwardPubkey is a paid mutator transaction binding the contract method 0xb8b64181.

Solidity: function forwardPubkey(bytes pubkey, bytes newPubkey, bytes32 user) returns(bool success)

type KeyInfoTransactorRaw

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

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

func (*KeyInfoTransactorRaw) Transact

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

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

func (*KeyInfoTransactorRaw) Transfer

func (_KeyInfo *KeyInfoTransactorRaw) 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 KeyInfoTransactorSession

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

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

func (*KeyInfoTransactorSession) AddKeyShareInfo

func (_KeyInfo *KeyInfoTransactorSession) AddKeyShareInfo(user [32]byte, pubkey []byte, party1 []byte, party2 []byte) (*types.Transaction, error)

AddKeyShareInfo is a paid mutator transaction binding the contract method 0x07873ddc.

Solidity: function addKeyShareInfo(bytes32 user, bytes pubkey, bytes party1, bytes party2) returns(bool success)

func (*KeyInfoTransactorSession) ForwardPubkey

func (_KeyInfo *KeyInfoTransactorSession) ForwardPubkey(pubkey []byte, newPubkey []byte, user [32]byte) (*types.Transaction, error)

ForwardPubkey is a paid mutator transaction binding the contract method 0xb8b64181.

Solidity: function forwardPubkey(bytes pubkey, bytes newPubkey, bytes32 user) returns(bool success)

Jump to

Keyboard shortcuts

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