poseidonsmt

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PoseidonSMTABI = PoseidonSMTMetaData.ABI

PoseidonSMTABI is the input ABI used to generate the binding from. Deprecated: Use PoseidonSMTMetaData.ABI instead.

View Source
var PoseidonSMTMetaData = &bind.MetaData{
	ABI: "[{\"anonymous\":false,\"inputs\":[{\"indexed\":false,\"internalType\":\"uint8\",\"name\":\"version\",\"type\":\"uint8\"}],\"name\":\"Initialized\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"ROOT_VALIDITY\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"\",\"type\":\"uint256\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"uint256\",\"name\":\"treeHeight_\",\"type\":\"uint256\"},{\"internalType\":\"address\",\"name\":\"registration_\",\"type\":\"address\"}],\"name\":\"__PoseidonSMT_init\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"keyOfElement_\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"element_\",\"type\":\"bytes32\"}],\"name\":\"add\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"key_\",\"type\":\"bytes32\"}],\"name\":\"getNodeByKey\",\"outputs\":[{\"components\":[{\"internalType\":\"enumSparseMerkleTree.NodeType\",\"name\":\"nodeType\",\"type\":\"uint8\"},{\"internalType\":\"uint64\",\"name\":\"childLeft\",\"type\":\"uint64\"},{\"internalType\":\"uint64\",\"name\":\"childRight\",\"type\":\"uint64\"},{\"internalType\":\"bytes32\",\"name\":\"nodeHash\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"}],\"internalType\":\"structSparseMerkleTree.Node\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"key_\",\"type\":\"bytes32\"}],\"name\":\"getProof\",\"outputs\":[{\"components\":[{\"internalType\":\"bytes32\",\"name\":\"root\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32[]\",\"name\":\"siblings\",\"type\":\"bytes32[]\"},{\"internalType\":\"bool\",\"name\":\"existence\",\"type\":\"bool\"},{\"internalType\":\"bytes32\",\"name\":\"key\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"value\",\"type\":\"bytes32\"},{\"internalType\":\"bool\",\"name\":\"auxExistence\",\"type\":\"bool\"},{\"internalType\":\"bytes32\",\"name\":\"auxKey\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"auxValue\",\"type\":\"bytes32\"}],\"internalType\":\"structSparseMerkleTree.Proof\",\"name\":\"\",\"type\":\"tuple\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"getRoot\",\"outputs\":[{\"internalType\":\"bytes32\",\"name\":\"\",\"type\":\"bytes32\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"root_\",\"type\":\"bytes32\"}],\"name\":\"isRootLatest\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"root_\",\"type\":\"bytes32\"}],\"name\":\"isRootValid\",\"outputs\":[{\"internalType\":\"bool\",\"name\":\"\",\"type\":\"bool\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"registration\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"keyOfElement_\",\"type\":\"bytes32\"}],\"name\":\"remove\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"bytes32\",\"name\":\"keyOfElement_\",\"type\":\"bytes32\"},{\"internalType\":\"bytes32\",\"name\":\"newElement_\",\"type\":\"bytes32\"}],\"name\":\"update\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}]",
}

PoseidonSMTMetaData contains all meta data concerning the PoseidonSMT contract.

Functions

This section is empty.

Types

type PoseidonSMT

type PoseidonSMT struct {
	PoseidonSMTCaller     // Read-only binding to the contract
	PoseidonSMTTransactor // Write-only binding to the contract
	PoseidonSMTFilterer   // Log filterer for contract events
}

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

func NewPoseidonSMT

func NewPoseidonSMT(address common.Address, backend bind.ContractBackend) (*PoseidonSMT, error)

NewPoseidonSMT creates a new instance of PoseidonSMT, bound to a specific deployed contract.

type PoseidonSMTCaller

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

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

func NewPoseidonSMTCaller

func NewPoseidonSMTCaller(address common.Address, caller bind.ContractCaller) (*PoseidonSMTCaller, error)

NewPoseidonSMTCaller creates a new read-only instance of PoseidonSMT, bound to a specific deployed contract.

func (*PoseidonSMTCaller) GetNodeByKey

func (_PoseidonSMT *PoseidonSMTCaller) GetNodeByKey(opts *bind.CallOpts, key_ [32]byte) (SparseMerkleTreeNode, error)

GetNodeByKey is a free data retrieval call binding the contract method 0x083a8580.

Solidity: function getNodeByKey(bytes32 key_) view returns((uint8,uint64,uint64,bytes32,bytes32,bytes32))

func (*PoseidonSMTCaller) GetProof

func (_PoseidonSMT *PoseidonSMTCaller) GetProof(opts *bind.CallOpts, key_ [32]byte) (SparseMerkleTreeProof, error)

GetProof is a free data retrieval call binding the contract method 0x1b80bb3a.

Solidity: function getProof(bytes32 key_) view returns((bytes32,bytes32[],bool,bytes32,bytes32,bool,bytes32,bytes32))

func (*PoseidonSMTCaller) GetRoot

func (_PoseidonSMT *PoseidonSMTCaller) GetRoot(opts *bind.CallOpts) ([32]byte, error)

GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.

Solidity: function getRoot() view returns(bytes32)

func (*PoseidonSMTCaller) IsRootLatest

func (_PoseidonSMT *PoseidonSMTCaller) IsRootLatest(opts *bind.CallOpts, root_ [32]byte) (bool, error)

IsRootLatest is a free data retrieval call binding the contract method 0x8492307f.

Solidity: function isRootLatest(bytes32 root_) view returns(bool)

func (*PoseidonSMTCaller) IsRootValid

func (_PoseidonSMT *PoseidonSMTCaller) IsRootValid(opts *bind.CallOpts, root_ [32]byte) (bool, error)

IsRootValid is a free data retrieval call binding the contract method 0x30ef41b4.

Solidity: function isRootValid(bytes32 root_) view returns(bool)

func (*PoseidonSMTCaller) ROOTVALIDITY

func (_PoseidonSMT *PoseidonSMTCaller) ROOTVALIDITY(opts *bind.CallOpts) (*big.Int, error)

ROOTVALIDITY is a free data retrieval call binding the contract method 0xcffe9676.

Solidity: function ROOT_VALIDITY() view returns(uint256)

func (*PoseidonSMTCaller) Registration

func (_PoseidonSMT *PoseidonSMTCaller) Registration(opts *bind.CallOpts) (common.Address, error)

Registration is a free data retrieval call binding the contract method 0x443bd1d0.

Solidity: function registration() view returns(address)

type PoseidonSMTCallerRaw

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

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

func (*PoseidonSMTCallerRaw) Call

func (_PoseidonSMT *PoseidonSMTCallerRaw) 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 PoseidonSMTCallerSession

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

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

func (*PoseidonSMTCallerSession) GetNodeByKey

func (_PoseidonSMT *PoseidonSMTCallerSession) GetNodeByKey(key_ [32]byte) (SparseMerkleTreeNode, error)

GetNodeByKey is a free data retrieval call binding the contract method 0x083a8580.

Solidity: function getNodeByKey(bytes32 key_) view returns((uint8,uint64,uint64,bytes32,bytes32,bytes32))

func (*PoseidonSMTCallerSession) GetProof

func (_PoseidonSMT *PoseidonSMTCallerSession) GetProof(key_ [32]byte) (SparseMerkleTreeProof, error)

GetProof is a free data retrieval call binding the contract method 0x1b80bb3a.

Solidity: function getProof(bytes32 key_) view returns((bytes32,bytes32[],bool,bytes32,bytes32,bool,bytes32,bytes32))

func (*PoseidonSMTCallerSession) GetRoot

func (_PoseidonSMT *PoseidonSMTCallerSession) GetRoot() ([32]byte, error)

GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.

Solidity: function getRoot() view returns(bytes32)

func (*PoseidonSMTCallerSession) IsRootLatest

func (_PoseidonSMT *PoseidonSMTCallerSession) IsRootLatest(root_ [32]byte) (bool, error)

IsRootLatest is a free data retrieval call binding the contract method 0x8492307f.

Solidity: function isRootLatest(bytes32 root_) view returns(bool)

func (*PoseidonSMTCallerSession) IsRootValid

func (_PoseidonSMT *PoseidonSMTCallerSession) IsRootValid(root_ [32]byte) (bool, error)

IsRootValid is a free data retrieval call binding the contract method 0x30ef41b4.

Solidity: function isRootValid(bytes32 root_) view returns(bool)

func (*PoseidonSMTCallerSession) ROOTVALIDITY

func (_PoseidonSMT *PoseidonSMTCallerSession) ROOTVALIDITY() (*big.Int, error)

ROOTVALIDITY is a free data retrieval call binding the contract method 0xcffe9676.

Solidity: function ROOT_VALIDITY() view returns(uint256)

func (*PoseidonSMTCallerSession) Registration

func (_PoseidonSMT *PoseidonSMTCallerSession) Registration() (common.Address, error)

Registration is a free data retrieval call binding the contract method 0x443bd1d0.

Solidity: function registration() view returns(address)

type PoseidonSMTFilterer

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

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

func NewPoseidonSMTFilterer

func NewPoseidonSMTFilterer(address common.Address, filterer bind.ContractFilterer) (*PoseidonSMTFilterer, error)

NewPoseidonSMTFilterer creates a new log filterer instance of PoseidonSMT, bound to a specific deployed contract.

func (*PoseidonSMTFilterer) FilterInitialized

func (_PoseidonSMT *PoseidonSMTFilterer) FilterInitialized(opts *bind.FilterOpts) (*PoseidonSMTInitializedIterator, error)

FilterInitialized is a free log retrieval operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*PoseidonSMTFilterer) ParseInitialized

func (_PoseidonSMT *PoseidonSMTFilterer) ParseInitialized(log types.Log) (*PoseidonSMTInitialized, error)

ParseInitialized is a log parse operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

func (*PoseidonSMTFilterer) WatchInitialized

func (_PoseidonSMT *PoseidonSMTFilterer) WatchInitialized(opts *bind.WatchOpts, sink chan<- *PoseidonSMTInitialized) (event.Subscription, error)

WatchInitialized is a free log subscription operation binding the contract event 0x7f26b83ff96e1f2b6a682f133852f6798a09c465da95921460cefb3847402498.

Solidity: event Initialized(uint8 version)

type PoseidonSMTInitialized

type PoseidonSMTInitialized struct {
	Version uint8
	Raw     types.Log // Blockchain specific contextual infos
}

PoseidonSMTInitialized represents a Initialized event raised by the PoseidonSMT contract.

type PoseidonSMTInitializedIterator

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

PoseidonSMTInitializedIterator is returned from FilterInitialized and is used to iterate over the raw logs and unpacked data for Initialized events raised by the PoseidonSMT contract.

func (*PoseidonSMTInitializedIterator) Close

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

func (*PoseidonSMTInitializedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PoseidonSMTInitializedIterator) 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 PoseidonSMTRaw

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

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

func (*PoseidonSMTRaw) Call

func (_PoseidonSMT *PoseidonSMTRaw) 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 (*PoseidonSMTRaw) Transact

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

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

func (*PoseidonSMTRaw) Transfer

func (_PoseidonSMT *PoseidonSMTRaw) 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 PoseidonSMTSession

type PoseidonSMTSession struct {
	Contract     *PoseidonSMT      // 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
}

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

func (*PoseidonSMTSession) Add

func (_PoseidonSMT *PoseidonSMTSession) Add(keyOfElement_ [32]byte, element_ [32]byte) (*types.Transaction, error)

Add is a paid mutator transaction binding the contract method 0xd1de592a.

Solidity: function add(bytes32 keyOfElement_, bytes32 element_) returns()

func (*PoseidonSMTSession) GetNodeByKey

func (_PoseidonSMT *PoseidonSMTSession) GetNodeByKey(key_ [32]byte) (SparseMerkleTreeNode, error)

GetNodeByKey is a free data retrieval call binding the contract method 0x083a8580.

Solidity: function getNodeByKey(bytes32 key_) view returns((uint8,uint64,uint64,bytes32,bytes32,bytes32))

func (*PoseidonSMTSession) GetProof

func (_PoseidonSMT *PoseidonSMTSession) GetProof(key_ [32]byte) (SparseMerkleTreeProof, error)

GetProof is a free data retrieval call binding the contract method 0x1b80bb3a.

Solidity: function getProof(bytes32 key_) view returns((bytes32,bytes32[],bool,bytes32,bytes32,bool,bytes32,bytes32))

func (*PoseidonSMTSession) GetRoot

func (_PoseidonSMT *PoseidonSMTSession) GetRoot() ([32]byte, error)

GetRoot is a free data retrieval call binding the contract method 0x5ca1e165.

Solidity: function getRoot() view returns(bytes32)

func (*PoseidonSMTSession) IsRootLatest

func (_PoseidonSMT *PoseidonSMTSession) IsRootLatest(root_ [32]byte) (bool, error)

IsRootLatest is a free data retrieval call binding the contract method 0x8492307f.

Solidity: function isRootLatest(bytes32 root_) view returns(bool)

func (*PoseidonSMTSession) IsRootValid

func (_PoseidonSMT *PoseidonSMTSession) IsRootValid(root_ [32]byte) (bool, error)

IsRootValid is a free data retrieval call binding the contract method 0x30ef41b4.

Solidity: function isRootValid(bytes32 root_) view returns(bool)

func (*PoseidonSMTSession) PoseidonSMTInit

func (_PoseidonSMT *PoseidonSMTSession) PoseidonSMTInit(treeHeight_ *big.Int, registration_ common.Address) (*types.Transaction, error)

PoseidonSMTInit is a paid mutator transaction binding the contract method 0x146b8412.

Solidity: function __PoseidonSMT_init(uint256 treeHeight_, address registration_) returns()

func (*PoseidonSMTSession) ROOTVALIDITY

func (_PoseidonSMT *PoseidonSMTSession) ROOTVALIDITY() (*big.Int, error)

ROOTVALIDITY is a free data retrieval call binding the contract method 0xcffe9676.

Solidity: function ROOT_VALIDITY() view returns(uint256)

func (*PoseidonSMTSession) Registration

func (_PoseidonSMT *PoseidonSMTSession) Registration() (common.Address, error)

Registration is a free data retrieval call binding the contract method 0x443bd1d0.

Solidity: function registration() view returns(address)

func (*PoseidonSMTSession) Remove

func (_PoseidonSMT *PoseidonSMTSession) Remove(keyOfElement_ [32]byte) (*types.Transaction, error)

Remove is a paid mutator transaction binding the contract method 0x95bc2673.

Solidity: function remove(bytes32 keyOfElement_) returns()

func (*PoseidonSMTSession) Update

func (_PoseidonSMT *PoseidonSMTSession) Update(keyOfElement_ [32]byte, newElement_ [32]byte) (*types.Transaction, error)

Update is a paid mutator transaction binding the contract method 0x13f57c3e.

Solidity: function update(bytes32 keyOfElement_, bytes32 newElement_) returns()

type PoseidonSMTTransactor

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

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

func NewPoseidonSMTTransactor

func NewPoseidonSMTTransactor(address common.Address, transactor bind.ContractTransactor) (*PoseidonSMTTransactor, error)

NewPoseidonSMTTransactor creates a new write-only instance of PoseidonSMT, bound to a specific deployed contract.

func (*PoseidonSMTTransactor) Add

func (_PoseidonSMT *PoseidonSMTTransactor) Add(opts *bind.TransactOpts, keyOfElement_ [32]byte, element_ [32]byte) (*types.Transaction, error)

Add is a paid mutator transaction binding the contract method 0xd1de592a.

Solidity: function add(bytes32 keyOfElement_, bytes32 element_) returns()

func (*PoseidonSMTTransactor) PoseidonSMTInit

func (_PoseidonSMT *PoseidonSMTTransactor) PoseidonSMTInit(opts *bind.TransactOpts, treeHeight_ *big.Int, registration_ common.Address) (*types.Transaction, error)

PoseidonSMTInit is a paid mutator transaction binding the contract method 0x146b8412.

Solidity: function __PoseidonSMT_init(uint256 treeHeight_, address registration_) returns()

func (*PoseidonSMTTransactor) Remove

func (_PoseidonSMT *PoseidonSMTTransactor) Remove(opts *bind.TransactOpts, keyOfElement_ [32]byte) (*types.Transaction, error)

Remove is a paid mutator transaction binding the contract method 0x95bc2673.

Solidity: function remove(bytes32 keyOfElement_) returns()

func (*PoseidonSMTTransactor) Update

func (_PoseidonSMT *PoseidonSMTTransactor) Update(opts *bind.TransactOpts, keyOfElement_ [32]byte, newElement_ [32]byte) (*types.Transaction, error)

Update is a paid mutator transaction binding the contract method 0x13f57c3e.

Solidity: function update(bytes32 keyOfElement_, bytes32 newElement_) returns()

type PoseidonSMTTransactorRaw

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

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

func (*PoseidonSMTTransactorRaw) Transact

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

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

func (*PoseidonSMTTransactorRaw) Transfer

func (_PoseidonSMT *PoseidonSMTTransactorRaw) 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 PoseidonSMTTransactorSession

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

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

func (*PoseidonSMTTransactorSession) Add

func (_PoseidonSMT *PoseidonSMTTransactorSession) Add(keyOfElement_ [32]byte, element_ [32]byte) (*types.Transaction, error)

Add is a paid mutator transaction binding the contract method 0xd1de592a.

Solidity: function add(bytes32 keyOfElement_, bytes32 element_) returns()

func (*PoseidonSMTTransactorSession) PoseidonSMTInit

func (_PoseidonSMT *PoseidonSMTTransactorSession) PoseidonSMTInit(treeHeight_ *big.Int, registration_ common.Address) (*types.Transaction, error)

PoseidonSMTInit is a paid mutator transaction binding the contract method 0x146b8412.

Solidity: function __PoseidonSMT_init(uint256 treeHeight_, address registration_) returns()

func (*PoseidonSMTTransactorSession) Remove

func (_PoseidonSMT *PoseidonSMTTransactorSession) Remove(keyOfElement_ [32]byte) (*types.Transaction, error)

Remove is a paid mutator transaction binding the contract method 0x95bc2673.

Solidity: function remove(bytes32 keyOfElement_) returns()

func (*PoseidonSMTTransactorSession) Update

func (_PoseidonSMT *PoseidonSMTTransactorSession) Update(keyOfElement_ [32]byte, newElement_ [32]byte) (*types.Transaction, error)

Update is a paid mutator transaction binding the contract method 0x13f57c3e.

Solidity: function update(bytes32 keyOfElement_, bytes32 newElement_) returns()

type SparseMerkleTreeNode

type SparseMerkleTreeNode struct {
	NodeType   uint8
	ChildLeft  uint64
	ChildRight uint64
	NodeHash   [32]byte
	Key        [32]byte
	Value      [32]byte
}

SparseMerkleTreeNode is an auto generated low-level Go binding around an user-defined struct.

type SparseMerkleTreeProof

type SparseMerkleTreeProof struct {
	Root         [32]byte
	Siblings     [][32]byte
	Existence    bool
	Key          [32]byte
	Value        [32]byte
	AuxExistence bool
	AuxKey       [32]byte
	AuxValue     [32]byte
}

SparseMerkleTreeProof is an auto generated low-level Go binding around an user-defined struct.

Jump to

Keyboard shortcuts

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