native

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const PrivateBankABI = "" /* 3963-byte string literal not displayed */

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

View Source
const PrivateBankBin = `` /* 18914-byte string literal not displayed */

PrivateBankBin is the compiled bytecode used for deploying new contracts.

View Source
const SafeMathABI = "[{\"payable\":false,\"stateMutability\":\"nonpayable\",\"type\":\"fallback\"}]"

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

View Source
const SafeMathBin = `` /* 190-byte string literal not displayed */

SafeMathBin is the compiled bytecode used for deploying new contracts.

View Source
const ZSLMerkleTreeABI = "" /* 3401-byte string literal not displayed */

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

View Source
const ZSLMerkleTreeBin = `` /* 8076-byte string literal not displayed */

ZSLMerkleTreeBin is the compiled bytecode used for deploying new contracts.

View Source
const ZSLPrecompileABI = "" /* 1593-byte string literal not displayed */

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

View Source
const ZSLPrecompileBin = `` /* 2036-byte string literal not displayed */

ZSLPrecompileBin is the compiled bytecode used for deploying new contracts.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrivateBank

type PrivateBank struct {
	PrivateBankCaller     // Read-only binding to the contract
	PrivateBankTransactor // Write-only binding to the contract
	PrivateBankFilterer   // Log filterer for contract events
}

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

func DeployPrivateBank

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

DeployPrivateBank deploys a new Ethereum contract, binding an instance of PrivateBank to it.

func NewPrivateBank

func NewPrivateBank(address common.Address, backend bind.ContractBackend) (*PrivateBank, error)

NewPrivateBank creates a new instance of PrivateBank, bound to a specific deployed contract.

type PrivateBankCaller

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

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

func NewPrivateBankCaller

func NewPrivateBankCaller(address common.Address, caller bind.ContractCaller) (*PrivateBankCaller, error)

NewPrivateBankCaller creates a new read-only instance of PrivateBank, bound to a specific deployed contract.

func (*PrivateBankCaller) GetWitness

func (_PrivateBank *PrivateBankCaller) GetWitness(opts *bind.CallOpts, cm [32]byte) (*big.Int, [][32]byte, [32]byte, error)

GetWitness is a free data retrieval call binding the contract method 0x47e72246.

Solidity: function getWitness(cm bytes32) constant returns(uint256, bytes32[], bytes32)

func (*PrivateBankCaller) ShieldedTransferCount

func (_PrivateBank *PrivateBankCaller) ShieldedTransferCount(opts *bind.CallOpts) (*big.Int, error)

ShieldedTransferCount is a free data retrieval call binding the contract method 0x41a42bea.

Solidity: function shieldedTransferCount() constant returns(uint256)

func (*PrivateBankCaller) ShieldingCount

func (_PrivateBank *PrivateBankCaller) ShieldingCount(opts *bind.CallOpts) (*big.Int, error)

ShieldingCount is a free data retrieval call binding the contract method 0x7a14db16.

Solidity: function shieldingCount() constant returns(uint256)

func (*PrivateBankCaller) TotalSupply

func (_PrivateBank *PrivateBankCaller) TotalSupply(opts *bind.CallOpts) (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

func (*PrivateBankCaller) UnshieldingCount

func (_PrivateBank *PrivateBankCaller) UnshieldingCount(opts *bind.CallOpts) (*big.Int, error)

UnshieldingCount is a free data retrieval call binding the contract method 0x4e3cb2e9.

Solidity: function unshieldingCount() constant returns(uint256)

func (*PrivateBankCaller) ZTOKENTREEDEPTH

func (_PrivateBank *PrivateBankCaller) ZTOKENTREEDEPTH(opts *bind.CallOpts) (*big.Int, error)

ZTOKENTREEDEPTH is a free data retrieval call binding the contract method 0xce0a8572.

Solidity: function ZTOKEN_TREE_DEPTH() constant returns(uint256)

type PrivateBankCallerRaw

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

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

func (*PrivateBankCallerRaw) Call

func (_PrivateBank *PrivateBankCallerRaw) 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 PrivateBankCallerSession

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

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

func (*PrivateBankCallerSession) GetWitness

func (_PrivateBank *PrivateBankCallerSession) GetWitness(cm [32]byte) (*big.Int, [][32]byte, [32]byte, error)

GetWitness is a free data retrieval call binding the contract method 0x47e72246.

Solidity: function getWitness(cm bytes32) constant returns(uint256, bytes32[], bytes32)

func (*PrivateBankCallerSession) ShieldedTransferCount

func (_PrivateBank *PrivateBankCallerSession) ShieldedTransferCount() (*big.Int, error)

ShieldedTransferCount is a free data retrieval call binding the contract method 0x41a42bea.

Solidity: function shieldedTransferCount() constant returns(uint256)

func (*PrivateBankCallerSession) ShieldingCount

func (_PrivateBank *PrivateBankCallerSession) ShieldingCount() (*big.Int, error)

ShieldingCount is a free data retrieval call binding the contract method 0x7a14db16.

Solidity: function shieldingCount() constant returns(uint256)

func (*PrivateBankCallerSession) TotalSupply

func (_PrivateBank *PrivateBankCallerSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

func (*PrivateBankCallerSession) UnshieldingCount

func (_PrivateBank *PrivateBankCallerSession) UnshieldingCount() (*big.Int, error)

UnshieldingCount is a free data retrieval call binding the contract method 0x4e3cb2e9.

Solidity: function unshieldingCount() constant returns(uint256)

func (*PrivateBankCallerSession) ZTOKENTREEDEPTH

func (_PrivateBank *PrivateBankCallerSession) ZTOKENTREEDEPTH() (*big.Int, error)

ZTOKENTREEDEPTH is a free data retrieval call binding the contract method 0xce0a8572.

Solidity: function ZTOKEN_TREE_DEPTH() constant returns(uint256)

type PrivateBankFilterer

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

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

func NewPrivateBankFilterer

func NewPrivateBankFilterer(address common.Address, filterer bind.ContractFilterer) (*PrivateBankFilterer, error)

NewPrivateBankFilterer creates a new log filterer instance of PrivateBank, bound to a specific deployed contract.

func (*PrivateBankFilterer) FilterLogNewNote

func (_PrivateBank *PrivateBankFilterer) FilterLogNewNote(opts *bind.FilterOpts) (*PrivateBankLogNewNoteIterator, error)

FilterLogNewNote is a free log retrieval operation binding the contract event 0x9ffdcb2deca08add84691e31fcaf8d45a7c62cd186a75416fd10619602e2f2ee.

Solidity: e LogNewNote(pk bytes32, rho bytes32, value uint64)

func (*PrivateBankFilterer) FilterLogShieldedTransfer

func (_PrivateBank *PrivateBankFilterer) FilterLogShieldedTransfer(opts *bind.FilterOpts, from []common.Address) (*PrivateBankLogShieldedTransferIterator, error)

FilterLogShieldedTransfer is a free log retrieval operation binding the contract event 0x0d3211cecea8fbffc05221205fa1aefe539b636c658a996a6cbc8729fe1ad001.

Solidity: e LogShieldedTransfer(from indexed address, cm1 bytes32, cm2 bytes32)

func (*PrivateBankFilterer) FilterLogShielding

func (_PrivateBank *PrivateBankFilterer) FilterLogShielding(opts *bind.FilterOpts, from []common.Address) (*PrivateBankLogShieldingIterator, error)

FilterLogShielding is a free log retrieval operation binding the contract event 0x85b7bd30efc09a22e16ff1baa680581ec4bc1dd7a889ac239355ff19dc34f5e3.

Solidity: e LogShielding(from indexed address, value uint64, commitment bytes32)

func (*PrivateBankFilterer) FilterLogSpendNullifier

func (_PrivateBank *PrivateBankFilterer) FilterLogSpendNullifier(opts *bind.FilterOpts) (*PrivateBankLogSpendNullifierIterator, error)

FilterLogSpendNullifier is a free log retrieval operation binding the contract event 0xc7d4658ff28174cdb265eb970264466b3a14c413a2e2f3a5bbcab44427eb9072.

Solidity: e LogSpendNullifier(spendNullifier bytes32)

func (*PrivateBankFilterer) FilterLogUnshielding

func (_PrivateBank *PrivateBankFilterer) FilterLogUnshielding(opts *bind.FilterOpts, to []common.Address) (*PrivateBankLogUnshieldingIterator, error)

FilterLogUnshielding is a free log retrieval operation binding the contract event 0x44ed7e2197490271743d80ef2940b5ef22d886361e9634e9696842ccd2acfacf.

Solidity: e LogUnshielding(to indexed address, value uint64, commitment bytes32)

func (*PrivateBankFilterer) WatchLogNewNote

func (_PrivateBank *PrivateBankFilterer) WatchLogNewNote(opts *bind.WatchOpts, sink chan<- *PrivateBankLogNewNote) (event.Subscription, error)

WatchLogNewNote is a free log subscription operation binding the contract event 0x9ffdcb2deca08add84691e31fcaf8d45a7c62cd186a75416fd10619602e2f2ee.

Solidity: e LogNewNote(pk bytes32, rho bytes32, value uint64)

func (*PrivateBankFilterer) WatchLogShieldedTransfer

func (_PrivateBank *PrivateBankFilterer) WatchLogShieldedTransfer(opts *bind.WatchOpts, sink chan<- *PrivateBankLogShieldedTransfer, from []common.Address) (event.Subscription, error)

WatchLogShieldedTransfer is a free log subscription operation binding the contract event 0x0d3211cecea8fbffc05221205fa1aefe539b636c658a996a6cbc8729fe1ad001.

Solidity: e LogShieldedTransfer(from indexed address, cm1 bytes32, cm2 bytes32)

func (*PrivateBankFilterer) WatchLogShielding

func (_PrivateBank *PrivateBankFilterer) WatchLogShielding(opts *bind.WatchOpts, sink chan<- *PrivateBankLogShielding, from []common.Address) (event.Subscription, error)

WatchLogShielding is a free log subscription operation binding the contract event 0x85b7bd30efc09a22e16ff1baa680581ec4bc1dd7a889ac239355ff19dc34f5e3.

Solidity: e LogShielding(from indexed address, value uint64, commitment bytes32)

func (*PrivateBankFilterer) WatchLogSpendNullifier

func (_PrivateBank *PrivateBankFilterer) WatchLogSpendNullifier(opts *bind.WatchOpts, sink chan<- *PrivateBankLogSpendNullifier) (event.Subscription, error)

WatchLogSpendNullifier is a free log subscription operation binding the contract event 0xc7d4658ff28174cdb265eb970264466b3a14c413a2e2f3a5bbcab44427eb9072.

Solidity: e LogSpendNullifier(spendNullifier bytes32)

func (*PrivateBankFilterer) WatchLogUnshielding

func (_PrivateBank *PrivateBankFilterer) WatchLogUnshielding(opts *bind.WatchOpts, sink chan<- *PrivateBankLogUnshielding, to []common.Address) (event.Subscription, error)

WatchLogUnshielding is a free log subscription operation binding the contract event 0x44ed7e2197490271743d80ef2940b5ef22d886361e9634e9696842ccd2acfacf.

Solidity: e LogUnshielding(to indexed address, value uint64, commitment bytes32)

type PrivateBankLogNewNote

type PrivateBankLogNewNote struct {
	Pk    [32]byte
	Rho   [32]byte
	Value uint64
	Raw   types.Log // Blockchain specific contextual infos
}

PrivateBankLogNewNote represents a LogNewNote event raised by the PrivateBank contract.

type PrivateBankLogNewNoteIterator

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

PrivateBankLogNewNoteIterator is returned from FilterLogNewNote and is used to iterate over the raw logs and unpacked data for LogNewNote events raised by the PrivateBank contract.

func (*PrivateBankLogNewNoteIterator) Close

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

func (*PrivateBankLogNewNoteIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PrivateBankLogNewNoteIterator) 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 PrivateBankLogShieldedTransfer

type PrivateBankLogShieldedTransfer struct {
	From common.Address
	Cm1  [32]byte
	Cm2  [32]byte
	Raw  types.Log // Blockchain specific contextual infos
}

PrivateBankLogShieldedTransfer represents a LogShieldedTransfer event raised by the PrivateBank contract.

type PrivateBankLogShieldedTransferIterator

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

PrivateBankLogShieldedTransferIterator is returned from FilterLogShieldedTransfer and is used to iterate over the raw logs and unpacked data for LogShieldedTransfer events raised by the PrivateBank contract.

func (*PrivateBankLogShieldedTransferIterator) Close

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

func (*PrivateBankLogShieldedTransferIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PrivateBankLogShieldedTransferIterator) 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 PrivateBankLogShielding

type PrivateBankLogShielding struct {
	From       common.Address
	Value      uint64
	Commitment [32]byte
	Raw        types.Log // Blockchain specific contextual infos
}

PrivateBankLogShielding represents a LogShielding event raised by the PrivateBank contract.

type PrivateBankLogShieldingIterator

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

PrivateBankLogShieldingIterator is returned from FilterLogShielding and is used to iterate over the raw logs and unpacked data for LogShielding events raised by the PrivateBank contract.

func (*PrivateBankLogShieldingIterator) Close

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

func (*PrivateBankLogShieldingIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PrivateBankLogShieldingIterator) 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 PrivateBankLogSpendNullifier

type PrivateBankLogSpendNullifier struct {
	SpendNullifier [32]byte
	Raw            types.Log // Blockchain specific contextual infos
}

PrivateBankLogSpendNullifier represents a LogSpendNullifier event raised by the PrivateBank contract.

type PrivateBankLogSpendNullifierIterator

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

PrivateBankLogSpendNullifierIterator is returned from FilterLogSpendNullifier and is used to iterate over the raw logs and unpacked data for LogSpendNullifier events raised by the PrivateBank contract.

func (*PrivateBankLogSpendNullifierIterator) Close

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

func (*PrivateBankLogSpendNullifierIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PrivateBankLogSpendNullifierIterator) 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 PrivateBankLogUnshielding

type PrivateBankLogUnshielding struct {
	To         common.Address
	Value      uint64
	Commitment [32]byte
	Raw        types.Log // Blockchain specific contextual infos
}

PrivateBankLogUnshielding represents a LogUnshielding event raised by the PrivateBank contract.

type PrivateBankLogUnshieldingIterator

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

PrivateBankLogUnshieldingIterator is returned from FilterLogUnshielding and is used to iterate over the raw logs and unpacked data for LogUnshielding events raised by the PrivateBank contract.

func (*PrivateBankLogUnshieldingIterator) Close

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

func (*PrivateBankLogUnshieldingIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*PrivateBankLogUnshieldingIterator) 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 PrivateBankRaw

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

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

func (*PrivateBankRaw) Call

func (_PrivateBank *PrivateBankRaw) 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 (*PrivateBankRaw) Transact

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

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

func (*PrivateBankRaw) Transfer

func (_PrivateBank *PrivateBankRaw) 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 PrivateBankSession

type PrivateBankSession struct {
	Contract     *PrivateBank      // 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
}

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

func (*PrivateBankSession) BroadcastNote

func (_PrivateBank *PrivateBankSession) BroadcastNote(pk [32]byte, rho [32]byte, value uint64) (*types.Transaction, error)

BroadcastNote is a paid mutator transaction binding the contract method 0x263cce1b.

Solidity: function broadcastNote(pk bytes32, rho bytes32, value uint64) returns()

func (*PrivateBankSession) GetWitness

func (_PrivateBank *PrivateBankSession) GetWitness(cm [32]byte) (*big.Int, [][32]byte, [32]byte, error)

GetWitness is a free data retrieval call binding the contract method 0x47e72246.

Solidity: function getWitness(cm bytes32) constant returns(uint256, bytes32[], bytes32)

func (*PrivateBankSession) Shield

func (_PrivateBank *PrivateBankSession) Shield(proof []byte, send_nf [32]byte, cm [32]byte) (*types.Transaction, error)

Shield is a paid mutator transaction binding the contract method 0xb84e7724.

Solidity: function shield(proof bytes, send_nf bytes32, cm bytes32) returns()

func (*PrivateBankSession) ShieldedTransfer

func (_PrivateBank *PrivateBankSession) ShieldedTransfer(proof []byte, anchor [32]byte, spend_nf_1 [32]byte, spend_nf_2 [32]byte, send_nf_1 [32]byte, send_nf_2 [32]byte, cm_1 [32]byte, cm_2 [32]byte) (*types.Transaction, error)

ShieldedTransfer is a paid mutator transaction binding the contract method 0x5e2aca56.

Solidity: function shieldedTransfer(proof bytes, anchor bytes32, spend_nf_1 bytes32, spend_nf_2 bytes32, send_nf_1 bytes32, send_nf_2 bytes32, cm_1 bytes32, cm_2 bytes32) returns()

func (*PrivateBankSession) ShieldedTransferCount

func (_PrivateBank *PrivateBankSession) ShieldedTransferCount() (*big.Int, error)

ShieldedTransferCount is a free data retrieval call binding the contract method 0x41a42bea.

Solidity: function shieldedTransferCount() constant returns(uint256)

func (*PrivateBankSession) ShieldingCount

func (_PrivateBank *PrivateBankSession) ShieldingCount() (*big.Int, error)

ShieldingCount is a free data retrieval call binding the contract method 0x7a14db16.

Solidity: function shieldingCount() constant returns(uint256)

func (*PrivateBankSession) TotalSupply

func (_PrivateBank *PrivateBankSession) TotalSupply() (*big.Int, error)

TotalSupply is a free data retrieval call binding the contract method 0x18160ddd.

Solidity: function totalSupply() constant returns(uint256)

func (*PrivateBankSession) Unshield

func (_PrivateBank *PrivateBankSession) Unshield(proof []byte, spend_nf [32]byte, cm [32]byte, rt [32]byte, value uint64) (*types.Transaction, error)

Unshield is a paid mutator transaction binding the contract method 0x835278b7.

Solidity: function unshield(proof bytes, spend_nf bytes32, cm bytes32, rt bytes32, value uint64) returns()

func (*PrivateBankSession) UnshieldingCount

func (_PrivateBank *PrivateBankSession) UnshieldingCount() (*big.Int, error)

UnshieldingCount is a free data retrieval call binding the contract method 0x4e3cb2e9.

Solidity: function unshieldingCount() constant returns(uint256)

func (*PrivateBankSession) ZTOKENTREEDEPTH

func (_PrivateBank *PrivateBankSession) ZTOKENTREEDEPTH() (*big.Int, error)

ZTOKENTREEDEPTH is a free data retrieval call binding the contract method 0xce0a8572.

Solidity: function ZTOKEN_TREE_DEPTH() constant returns(uint256)

type PrivateBankTransactor

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

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

func NewPrivateBankTransactor

func NewPrivateBankTransactor(address common.Address, transactor bind.ContractTransactor) (*PrivateBankTransactor, error)

NewPrivateBankTransactor creates a new write-only instance of PrivateBank, bound to a specific deployed contract.

func (*PrivateBankTransactor) BroadcastNote

func (_PrivateBank *PrivateBankTransactor) BroadcastNote(opts *bind.TransactOpts, pk [32]byte, rho [32]byte, value uint64) (*types.Transaction, error)

BroadcastNote is a paid mutator transaction binding the contract method 0x263cce1b.

Solidity: function broadcastNote(pk bytes32, rho bytes32, value uint64) returns()

func (*PrivateBankTransactor) Shield

func (_PrivateBank *PrivateBankTransactor) Shield(opts *bind.TransactOpts, proof []byte, send_nf [32]byte, cm [32]byte) (*types.Transaction, error)

Shield is a paid mutator transaction binding the contract method 0xb84e7724.

Solidity: function shield(proof bytes, send_nf bytes32, cm bytes32) returns()

func (*PrivateBankTransactor) ShieldedTransfer

func (_PrivateBank *PrivateBankTransactor) ShieldedTransfer(opts *bind.TransactOpts, proof []byte, anchor [32]byte, spend_nf_1 [32]byte, spend_nf_2 [32]byte, send_nf_1 [32]byte, send_nf_2 [32]byte, cm_1 [32]byte, cm_2 [32]byte) (*types.Transaction, error)

ShieldedTransfer is a paid mutator transaction binding the contract method 0x5e2aca56.

Solidity: function shieldedTransfer(proof bytes, anchor bytes32, spend_nf_1 bytes32, spend_nf_2 bytes32, send_nf_1 bytes32, send_nf_2 bytes32, cm_1 bytes32, cm_2 bytes32) returns()

func (*PrivateBankTransactor) Unshield

func (_PrivateBank *PrivateBankTransactor) Unshield(opts *bind.TransactOpts, proof []byte, spend_nf [32]byte, cm [32]byte, rt [32]byte, value uint64) (*types.Transaction, error)

Unshield is a paid mutator transaction binding the contract method 0x835278b7.

Solidity: function unshield(proof bytes, spend_nf bytes32, cm bytes32, rt bytes32, value uint64) returns()

type PrivateBankTransactorRaw

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

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

func (*PrivateBankTransactorRaw) Transact

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

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

func (*PrivateBankTransactorRaw) Transfer

func (_PrivateBank *PrivateBankTransactorRaw) 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 PrivateBankTransactorSession

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

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

func (*PrivateBankTransactorSession) BroadcastNote

func (_PrivateBank *PrivateBankTransactorSession) BroadcastNote(pk [32]byte, rho [32]byte, value uint64) (*types.Transaction, error)

BroadcastNote is a paid mutator transaction binding the contract method 0x263cce1b.

Solidity: function broadcastNote(pk bytes32, rho bytes32, value uint64) returns()

func (*PrivateBankTransactorSession) Shield

func (_PrivateBank *PrivateBankTransactorSession) Shield(proof []byte, send_nf [32]byte, cm [32]byte) (*types.Transaction, error)

Shield is a paid mutator transaction binding the contract method 0xb84e7724.

Solidity: function shield(proof bytes, send_nf bytes32, cm bytes32) returns()

func (*PrivateBankTransactorSession) ShieldedTransfer

func (_PrivateBank *PrivateBankTransactorSession) ShieldedTransfer(proof []byte, anchor [32]byte, spend_nf_1 [32]byte, spend_nf_2 [32]byte, send_nf_1 [32]byte, send_nf_2 [32]byte, cm_1 [32]byte, cm_2 [32]byte) (*types.Transaction, error)

ShieldedTransfer is a paid mutator transaction binding the contract method 0x5e2aca56.

Solidity: function shieldedTransfer(proof bytes, anchor bytes32, spend_nf_1 bytes32, spend_nf_2 bytes32, send_nf_1 bytes32, send_nf_2 bytes32, cm_1 bytes32, cm_2 bytes32) returns()

func (*PrivateBankTransactorSession) Unshield

func (_PrivateBank *PrivateBankTransactorSession) Unshield(proof []byte, spend_nf [32]byte, cm [32]byte, rt [32]byte, value uint64) (*types.Transaction, error)

Unshield is a paid mutator transaction binding the contract method 0x835278b7.

Solidity: function unshield(proof bytes, spend_nf bytes32, cm bytes32, rt bytes32, value uint64) returns()

type SafeMath

type SafeMath struct {
	SafeMathCaller     // Read-only binding to the contract
	SafeMathTransactor // Write-only binding to the contract
	SafeMathFilterer   // Log filterer for contract events
}

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

func DeploySafeMath

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

DeploySafeMath deploys a new Ethereum contract, binding an instance of SafeMath to it.

func NewSafeMath

func NewSafeMath(address common.Address, backend bind.ContractBackend) (*SafeMath, error)

NewSafeMath creates a new instance of SafeMath, bound to a specific deployed contract.

type SafeMathCaller

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

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

func NewSafeMathCaller

func NewSafeMathCaller(address common.Address, caller bind.ContractCaller) (*SafeMathCaller, error)

NewSafeMathCaller creates a new read-only instance of SafeMath, bound to a specific deployed contract.

type SafeMathCallerRaw

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

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

func (*SafeMathCallerRaw) Call

func (_SafeMath *SafeMathCallerRaw) 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 SafeMathCallerSession

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

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

type SafeMathFilterer

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

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

func NewSafeMathFilterer

func NewSafeMathFilterer(address common.Address, filterer bind.ContractFilterer) (*SafeMathFilterer, error)

NewSafeMathFilterer creates a new log filterer instance of SafeMath, bound to a specific deployed contract.

type SafeMathRaw

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

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

func (*SafeMathRaw) Call

func (_SafeMath *SafeMathRaw) 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 (*SafeMathRaw) Transact

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

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

func (*SafeMathRaw) Transfer

func (_SafeMath *SafeMathRaw) 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 SafeMathSession

type SafeMathSession struct {
	Contract     *SafeMath         // 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
}

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

type SafeMathTransactor

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

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

func NewSafeMathTransactor

func NewSafeMathTransactor(address common.Address, transactor bind.ContractTransactor) (*SafeMathTransactor, error)

NewSafeMathTransactor creates a new write-only instance of SafeMath, bound to a specific deployed contract.

type SafeMathTransactorRaw

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

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

func (*SafeMathTransactorRaw) Transact

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

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

func (*SafeMathTransactorRaw) Transfer

func (_SafeMath *SafeMathTransactorRaw) 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 SafeMathTransactorSession

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

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

type ZSLMerkleTree

type ZSLMerkleTree struct {
	ZSLMerkleTreeCaller     // Read-only binding to the contract
	ZSLMerkleTreeTransactor // Write-only binding to the contract
	ZSLMerkleTreeFilterer   // Log filterer for contract events
}

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

func DeployZSLMerkleTree

func DeployZSLMerkleTree(auth *bind.TransactOpts, backend bind.ContractBackend, depth *big.Int) (common.Address, *types.Transaction, *ZSLMerkleTree, error)

DeployZSLMerkleTree deploys a new Ethereum contract, binding an instance of ZSLMerkleTree to it.

func NewZSLMerkleTree

func NewZSLMerkleTree(address common.Address, backend bind.ContractBackend) (*ZSLMerkleTree, error)

NewZSLMerkleTree creates a new instance of ZSLMerkleTree, bound to a specific deployed contract.

type ZSLMerkleTreeCaller

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

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

func NewZSLMerkleTreeCaller

func NewZSLMerkleTreeCaller(address common.Address, caller bind.ContractCaller) (*ZSLMerkleTreeCaller, error)

NewZSLMerkleTreeCaller creates a new read-only instance of ZSLMerkleTree, bound to a specific deployed contract.

func (*ZSLMerkleTreeCaller) Available

func (_ZSLMerkleTree *ZSLMerkleTreeCaller) Available(opts *bind.CallOpts) (*big.Int, error)

Available is a free data retrieval call binding the contract method 0x48a0d754.

Solidity: function available() constant returns(uint256)

func (*ZSLMerkleTreeCaller) Capacity

func (_ZSLMerkleTree *ZSLMerkleTreeCaller) Capacity(opts *bind.CallOpts) (*big.Int, error)

Capacity is a free data retrieval call binding the contract method 0x5cfc1a51.

Solidity: function capacity() constant returns(uint256)

func (*ZSLMerkleTreeCaller) Combine

func (_ZSLMerkleTree *ZSLMerkleTreeCaller) Combine(opts *bind.CallOpts, left [32]byte, right [32]byte) ([32]byte, error)

Combine is a free data retrieval call binding the contract method 0x1d48f5e9.

Solidity: function combine(left bytes32, right bytes32) constant returns(bytes32)

func (*ZSLMerkleTreeCaller) CommitmentExists

func (_ZSLMerkleTree *ZSLMerkleTreeCaller) CommitmentExists(opts *bind.CallOpts, cm [32]byte) (bool, error)

CommitmentExists is a free data retrieval call binding the contract method 0x86307865.

Solidity: function commitmentExists(cm bytes32) constant returns(bool)

func (*ZSLMerkleTreeCaller) Depth

func (_ZSLMerkleTree *ZSLMerkleTreeCaller) Depth(opts *bind.CallOpts) (*big.Int, error)

Depth is a free data retrieval call binding the contract method 0x631c56ef.

Solidity: function depth() constant returns(uint256)

func (*ZSLMerkleTreeCaller) GetCommitmentAtLeafIndex

func (_ZSLMerkleTree *ZSLMerkleTreeCaller) GetCommitmentAtLeafIndex(opts *bind.CallOpts, index *big.Int) ([32]byte, error)

GetCommitmentAtLeafIndex is a free data retrieval call binding the contract method 0xd0316c50.

Solidity: function getCommitmentAtLeafIndex(index uint256) constant returns(bytes32)

func (*ZSLMerkleTreeCaller) GetEmptyRoot

func (_ZSLMerkleTree *ZSLMerkleTreeCaller) GetEmptyRoot(opts *bind.CallOpts, depth *big.Int) ([32]byte, error)

GetEmptyRoot is a free data retrieval call binding the contract method 0xa06f0977.

Solidity: function getEmptyRoot(depth uint256) constant returns(bytes32)

func (*ZSLMerkleTreeCaller) GetEmptyRoots

func (_ZSLMerkleTree *ZSLMerkleTreeCaller) GetEmptyRoots(opts *bind.CallOpts) ([][32]byte, error)

GetEmptyRoots is a free data retrieval call binding the contract method 0x6def0cbe.

Solidity: function getEmptyRoots() constant returns(bytes32[])

func (*ZSLMerkleTreeCaller) GetLeafIndex

func (_ZSLMerkleTree *ZSLMerkleTreeCaller) GetLeafIndex(opts *bind.CallOpts, cm [32]byte) (*big.Int, error)

GetLeafIndex is a free data retrieval call binding the contract method 0xc8c50515.

Solidity: function getLeafIndex(cm bytes32) constant returns(uint256)

func (*ZSLMerkleTreeCaller) GetWitness

func (_ZSLMerkleTree *ZSLMerkleTreeCaller) GetWitness(opts *bind.CallOpts, cm [32]byte) (*big.Int, [][32]byte, [32]byte, error)

GetWitness is a free data retrieval call binding the contract method 0x47e72246.

Solidity: function getWitness(cm bytes32) constant returns(uint256, bytes32[], bytes32)

func (*ZSLMerkleTreeCaller) LeftShift

func (_ZSLMerkleTree *ZSLMerkleTreeCaller) LeftShift(opts *bind.CallOpts, v *big.Int, n *big.Int) (*big.Int, error)

LeftShift is a free data retrieval call binding the contract method 0x5ae60499.

Solidity: function leftShift(v uint256, n uint256) constant returns(uint256)

func (*ZSLMerkleTreeCaller) RightShift

func (_ZSLMerkleTree *ZSLMerkleTreeCaller) RightShift(opts *bind.CallOpts, v *big.Int, n *big.Int) (*big.Int, error)

RightShift is a free data retrieval call binding the contract method 0x0af0b132.

Solidity: function rightShift(v uint256, n uint256) constant returns(uint256)

func (*ZSLMerkleTreeCaller) Root

func (_ZSLMerkleTree *ZSLMerkleTreeCaller) Root(opts *bind.CallOpts) ([32]byte, error)

Root is a free data retrieval call binding the contract method 0xebf0c717.

Solidity: function root() constant returns(bytes32)

func (*ZSLMerkleTreeCaller) Size

func (_ZSLMerkleTree *ZSLMerkleTreeCaller) Size(opts *bind.CallOpts) (*big.Int, error)

Size is a free data retrieval call binding the contract method 0x949d225d.

Solidity: function size() constant returns(uint256)

type ZSLMerkleTreeCallerRaw

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

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

func (*ZSLMerkleTreeCallerRaw) Call

func (_ZSLMerkleTree *ZSLMerkleTreeCallerRaw) 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 ZSLMerkleTreeCallerSession

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

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

func (*ZSLMerkleTreeCallerSession) Available

func (_ZSLMerkleTree *ZSLMerkleTreeCallerSession) Available() (*big.Int, error)

Available is a free data retrieval call binding the contract method 0x48a0d754.

Solidity: function available() constant returns(uint256)

func (*ZSLMerkleTreeCallerSession) Capacity

func (_ZSLMerkleTree *ZSLMerkleTreeCallerSession) Capacity() (*big.Int, error)

Capacity is a free data retrieval call binding the contract method 0x5cfc1a51.

Solidity: function capacity() constant returns(uint256)

func (*ZSLMerkleTreeCallerSession) Combine

func (_ZSLMerkleTree *ZSLMerkleTreeCallerSession) Combine(left [32]byte, right [32]byte) ([32]byte, error)

Combine is a free data retrieval call binding the contract method 0x1d48f5e9.

Solidity: function combine(left bytes32, right bytes32) constant returns(bytes32)

func (*ZSLMerkleTreeCallerSession) CommitmentExists

func (_ZSLMerkleTree *ZSLMerkleTreeCallerSession) CommitmentExists(cm [32]byte) (bool, error)

CommitmentExists is a free data retrieval call binding the contract method 0x86307865.

Solidity: function commitmentExists(cm bytes32) constant returns(bool)

func (*ZSLMerkleTreeCallerSession) Depth

func (_ZSLMerkleTree *ZSLMerkleTreeCallerSession) Depth() (*big.Int, error)

Depth is a free data retrieval call binding the contract method 0x631c56ef.

Solidity: function depth() constant returns(uint256)

func (*ZSLMerkleTreeCallerSession) GetCommitmentAtLeafIndex

func (_ZSLMerkleTree *ZSLMerkleTreeCallerSession) GetCommitmentAtLeafIndex(index *big.Int) ([32]byte, error)

GetCommitmentAtLeafIndex is a free data retrieval call binding the contract method 0xd0316c50.

Solidity: function getCommitmentAtLeafIndex(index uint256) constant returns(bytes32)

func (*ZSLMerkleTreeCallerSession) GetEmptyRoot

func (_ZSLMerkleTree *ZSLMerkleTreeCallerSession) GetEmptyRoot(depth *big.Int) ([32]byte, error)

GetEmptyRoot is a free data retrieval call binding the contract method 0xa06f0977.

Solidity: function getEmptyRoot(depth uint256) constant returns(bytes32)

func (*ZSLMerkleTreeCallerSession) GetEmptyRoots

func (_ZSLMerkleTree *ZSLMerkleTreeCallerSession) GetEmptyRoots() ([][32]byte, error)

GetEmptyRoots is a free data retrieval call binding the contract method 0x6def0cbe.

Solidity: function getEmptyRoots() constant returns(bytes32[])

func (*ZSLMerkleTreeCallerSession) GetLeafIndex

func (_ZSLMerkleTree *ZSLMerkleTreeCallerSession) GetLeafIndex(cm [32]byte) (*big.Int, error)

GetLeafIndex is a free data retrieval call binding the contract method 0xc8c50515.

Solidity: function getLeafIndex(cm bytes32) constant returns(uint256)

func (*ZSLMerkleTreeCallerSession) GetWitness

func (_ZSLMerkleTree *ZSLMerkleTreeCallerSession) GetWitness(cm [32]byte) (*big.Int, [][32]byte, [32]byte, error)

GetWitness is a free data retrieval call binding the contract method 0x47e72246.

Solidity: function getWitness(cm bytes32) constant returns(uint256, bytes32[], bytes32)

func (*ZSLMerkleTreeCallerSession) LeftShift

func (_ZSLMerkleTree *ZSLMerkleTreeCallerSession) LeftShift(v *big.Int, n *big.Int) (*big.Int, error)

LeftShift is a free data retrieval call binding the contract method 0x5ae60499.

Solidity: function leftShift(v uint256, n uint256) constant returns(uint256)

func (*ZSLMerkleTreeCallerSession) RightShift

func (_ZSLMerkleTree *ZSLMerkleTreeCallerSession) RightShift(v *big.Int, n *big.Int) (*big.Int, error)

RightShift is a free data retrieval call binding the contract method 0x0af0b132.

Solidity: function rightShift(v uint256, n uint256) constant returns(uint256)

func (*ZSLMerkleTreeCallerSession) Root

func (_ZSLMerkleTree *ZSLMerkleTreeCallerSession) Root() ([32]byte, error)

Root is a free data retrieval call binding the contract method 0xebf0c717.

Solidity: function root() constant returns(bytes32)

func (*ZSLMerkleTreeCallerSession) Size

func (_ZSLMerkleTree *ZSLMerkleTreeCallerSession) Size() (*big.Int, error)

Size is a free data retrieval call binding the contract method 0x949d225d.

Solidity: function size() constant returns(uint256)

type ZSLMerkleTreeFilterer

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

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

func NewZSLMerkleTreeFilterer

func NewZSLMerkleTreeFilterer(address common.Address, filterer bind.ContractFilterer) (*ZSLMerkleTreeFilterer, error)

NewZSLMerkleTreeFilterer creates a new log filterer instance of ZSLMerkleTree, bound to a specific deployed contract.

type ZSLMerkleTreeRaw

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

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

func (*ZSLMerkleTreeRaw) Call

func (_ZSLMerkleTree *ZSLMerkleTreeRaw) 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 (*ZSLMerkleTreeRaw) Transact

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

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

func (*ZSLMerkleTreeRaw) Transfer

func (_ZSLMerkleTree *ZSLMerkleTreeRaw) 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 ZSLMerkleTreeSession

type ZSLMerkleTreeSession struct {
	Contract     *ZSLMerkleTree    // 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
}

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

func (*ZSLMerkleTreeSession) AddCommitment

func (_ZSLMerkleTree *ZSLMerkleTreeSession) AddCommitment(cm [32]byte) (*types.Transaction, error)

AddCommitment is a paid mutator transaction binding the contract method 0x9f7ad1d1.

Solidity: function addCommitment(cm bytes32) returns()

func (*ZSLMerkleTreeSession) Available

func (_ZSLMerkleTree *ZSLMerkleTreeSession) Available() (*big.Int, error)

Available is a free data retrieval call binding the contract method 0x48a0d754.

Solidity: function available() constant returns(uint256)

func (*ZSLMerkleTreeSession) Capacity

func (_ZSLMerkleTree *ZSLMerkleTreeSession) Capacity() (*big.Int, error)

Capacity is a free data retrieval call binding the contract method 0x5cfc1a51.

Solidity: function capacity() constant returns(uint256)

func (*ZSLMerkleTreeSession) Combine

func (_ZSLMerkleTree *ZSLMerkleTreeSession) Combine(left [32]byte, right [32]byte) ([32]byte, error)

Combine is a free data retrieval call binding the contract method 0x1d48f5e9.

Solidity: function combine(left bytes32, right bytes32) constant returns(bytes32)

func (*ZSLMerkleTreeSession) CommitmentExists

func (_ZSLMerkleTree *ZSLMerkleTreeSession) CommitmentExists(cm [32]byte) (bool, error)

CommitmentExists is a free data retrieval call binding the contract method 0x86307865.

Solidity: function commitmentExists(cm bytes32) constant returns(bool)

func (*ZSLMerkleTreeSession) Depth

func (_ZSLMerkleTree *ZSLMerkleTreeSession) Depth() (*big.Int, error)

Depth is a free data retrieval call binding the contract method 0x631c56ef.

Solidity: function depth() constant returns(uint256)

func (*ZSLMerkleTreeSession) GetCommitmentAtLeafIndex

func (_ZSLMerkleTree *ZSLMerkleTreeSession) GetCommitmentAtLeafIndex(index *big.Int) ([32]byte, error)

GetCommitmentAtLeafIndex is a free data retrieval call binding the contract method 0xd0316c50.

Solidity: function getCommitmentAtLeafIndex(index uint256) constant returns(bytes32)

func (*ZSLMerkleTreeSession) GetEmptyRoot

func (_ZSLMerkleTree *ZSLMerkleTreeSession) GetEmptyRoot(depth *big.Int) ([32]byte, error)

GetEmptyRoot is a free data retrieval call binding the contract method 0xa06f0977.

Solidity: function getEmptyRoot(depth uint256) constant returns(bytes32)

func (*ZSLMerkleTreeSession) GetEmptyRoots

func (_ZSLMerkleTree *ZSLMerkleTreeSession) GetEmptyRoots() ([][32]byte, error)

GetEmptyRoots is a free data retrieval call binding the contract method 0x6def0cbe.

Solidity: function getEmptyRoots() constant returns(bytes32[])

func (*ZSLMerkleTreeSession) GetLeafIndex

func (_ZSLMerkleTree *ZSLMerkleTreeSession) GetLeafIndex(cm [32]byte) (*big.Int, error)

GetLeafIndex is a free data retrieval call binding the contract method 0xc8c50515.

Solidity: function getLeafIndex(cm bytes32) constant returns(uint256)

func (*ZSLMerkleTreeSession) GetWitness

func (_ZSLMerkleTree *ZSLMerkleTreeSession) GetWitness(cm [32]byte) (*big.Int, [][32]byte, [32]byte, error)

GetWitness is a free data retrieval call binding the contract method 0x47e72246.

Solidity: function getWitness(cm bytes32) constant returns(uint256, bytes32[], bytes32)

func (*ZSLMerkleTreeSession) LeftShift

func (_ZSLMerkleTree *ZSLMerkleTreeSession) LeftShift(v *big.Int, n *big.Int) (*big.Int, error)

LeftShift is a free data retrieval call binding the contract method 0x5ae60499.

Solidity: function leftShift(v uint256, n uint256) constant returns(uint256)

func (*ZSLMerkleTreeSession) RightShift

func (_ZSLMerkleTree *ZSLMerkleTreeSession) RightShift(v *big.Int, n *big.Int) (*big.Int, error)

RightShift is a free data retrieval call binding the contract method 0x0af0b132.

Solidity: function rightShift(v uint256, n uint256) constant returns(uint256)

func (*ZSLMerkleTreeSession) Root

func (_ZSLMerkleTree *ZSLMerkleTreeSession) Root() ([32]byte, error)

Root is a free data retrieval call binding the contract method 0xebf0c717.

Solidity: function root() constant returns(bytes32)

func (*ZSLMerkleTreeSession) Size

func (_ZSLMerkleTree *ZSLMerkleTreeSession) Size() (*big.Int, error)

Size is a free data retrieval call binding the contract method 0x949d225d.

Solidity: function size() constant returns(uint256)

type ZSLMerkleTreeTransactor

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

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

func NewZSLMerkleTreeTransactor

func NewZSLMerkleTreeTransactor(address common.Address, transactor bind.ContractTransactor) (*ZSLMerkleTreeTransactor, error)

NewZSLMerkleTreeTransactor creates a new write-only instance of ZSLMerkleTree, bound to a specific deployed contract.

func (*ZSLMerkleTreeTransactor) AddCommitment

func (_ZSLMerkleTree *ZSLMerkleTreeTransactor) AddCommitment(opts *bind.TransactOpts, cm [32]byte) (*types.Transaction, error)

AddCommitment is a paid mutator transaction binding the contract method 0x9f7ad1d1.

Solidity: function addCommitment(cm bytes32) returns()

type ZSLMerkleTreeTransactorRaw

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

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

func (*ZSLMerkleTreeTransactorRaw) Transact

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

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

func (*ZSLMerkleTreeTransactorRaw) Transfer

func (_ZSLMerkleTree *ZSLMerkleTreeTransactorRaw) 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 ZSLMerkleTreeTransactorSession

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

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

func (*ZSLMerkleTreeTransactorSession) AddCommitment

func (_ZSLMerkleTree *ZSLMerkleTreeTransactorSession) AddCommitment(cm [32]byte) (*types.Transaction, error)

AddCommitment is a paid mutator transaction binding the contract method 0x9f7ad1d1.

Solidity: function addCommitment(cm bytes32) returns()

type ZSLPrecompile

type ZSLPrecompile struct {
	ZSLPrecompileCaller     // Read-only binding to the contract
	ZSLPrecompileTransactor // Write-only binding to the contract
	ZSLPrecompileFilterer   // Log filterer for contract events
}

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

func DeployZSLPrecompile

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

DeployZSLPrecompile deploys a new Ethereum contract, binding an instance of ZSLPrecompile to it.

func NewZSLPrecompile

func NewZSLPrecompile(address common.Address, backend bind.ContractBackend) (*ZSLPrecompile, error)

NewZSLPrecompile creates a new instance of ZSLPrecompile, bound to a specific deployed contract.

type ZSLPrecompileCaller

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

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

func NewZSLPrecompileCaller

func NewZSLPrecompileCaller(address common.Address, caller bind.ContractCaller) (*ZSLPrecompileCaller, error)

NewZSLPrecompileCaller creates a new read-only instance of ZSLPrecompile, bound to a specific deployed contract.

func (*ZSLPrecompileCaller) Sha256Compress

func (_ZSLPrecompile *ZSLPrecompileCaller) Sha256Compress(opts *bind.CallOpts, input []byte) ([32]byte, error)

Sha256Compress is a free data retrieval call binding the contract method 0x3b300c68.

Solidity: function sha256Compress(input bytes) constant returns(result bytes32)

func (*ZSLPrecompileCaller) VerifyShieldedTransfer

func (_ZSLPrecompile *ZSLPrecompileCaller) VerifyShieldedTransfer(opts *bind.CallOpts, proof []byte, treeRoot [32]byte, spendNullifier1 [32]byte, spendNullifier2 [32]byte, sendNullifier1 [32]byte, sendNullifier2 [32]byte, commitment1 [32]byte, commitment2 [32]byte) (bool, error)

VerifyShieldedTransfer is a free data retrieval call binding the contract method 0x794f69e3.

Solidity: function verifyShieldedTransfer(proof bytes, treeRoot bytes32, spendNullifier1 bytes32, spendNullifier2 bytes32, sendNullifier1 bytes32, sendNullifier2 bytes32, commitment1 bytes32, commitment2 bytes32) constant returns(bool)

func (*ZSLPrecompileCaller) VerifyShielding

func (_ZSLPrecompile *ZSLPrecompileCaller) VerifyShielding(opts *bind.CallOpts, proof []byte, sendNullifier [32]byte, commitment [32]byte, value uint64) (bool, error)

VerifyShielding is a free data retrieval call binding the contract method 0xe088659e.

Solidity: function verifyShielding(proof bytes, sendNullifier bytes32, commitment bytes32, value uint64) constant returns(bool)

func (*ZSLPrecompileCaller) VerifyUnshielding

func (_ZSLPrecompile *ZSLPrecompileCaller) VerifyUnshielding(opts *bind.CallOpts, proof []byte, spendNullifier [32]byte, treeRoot [32]byte, value uint64) (bool, error)

VerifyUnshielding is a free data retrieval call binding the contract method 0xdafca47a.

Solidity: function verifyUnshielding(proof bytes, spendNullifier bytes32, treeRoot bytes32, value uint64) constant returns(bool)

type ZSLPrecompileCallerRaw

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

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

func (*ZSLPrecompileCallerRaw) Call

func (_ZSLPrecompile *ZSLPrecompileCallerRaw) 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 ZSLPrecompileCallerSession

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

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

func (*ZSLPrecompileCallerSession) Sha256Compress

func (_ZSLPrecompile *ZSLPrecompileCallerSession) Sha256Compress(input []byte) ([32]byte, error)

Sha256Compress is a free data retrieval call binding the contract method 0x3b300c68.

Solidity: function sha256Compress(input bytes) constant returns(result bytes32)

func (*ZSLPrecompileCallerSession) VerifyShieldedTransfer

func (_ZSLPrecompile *ZSLPrecompileCallerSession) VerifyShieldedTransfer(proof []byte, treeRoot [32]byte, spendNullifier1 [32]byte, spendNullifier2 [32]byte, sendNullifier1 [32]byte, sendNullifier2 [32]byte, commitment1 [32]byte, commitment2 [32]byte) (bool, error)

VerifyShieldedTransfer is a free data retrieval call binding the contract method 0x794f69e3.

Solidity: function verifyShieldedTransfer(proof bytes, treeRoot bytes32, spendNullifier1 bytes32, spendNullifier2 bytes32, sendNullifier1 bytes32, sendNullifier2 bytes32, commitment1 bytes32, commitment2 bytes32) constant returns(bool)

func (*ZSLPrecompileCallerSession) VerifyShielding

func (_ZSLPrecompile *ZSLPrecompileCallerSession) VerifyShielding(proof []byte, sendNullifier [32]byte, commitment [32]byte, value uint64) (bool, error)

VerifyShielding is a free data retrieval call binding the contract method 0xe088659e.

Solidity: function verifyShielding(proof bytes, sendNullifier bytes32, commitment bytes32, value uint64) constant returns(bool)

func (*ZSLPrecompileCallerSession) VerifyUnshielding

func (_ZSLPrecompile *ZSLPrecompileCallerSession) VerifyUnshielding(proof []byte, spendNullifier [32]byte, treeRoot [32]byte, value uint64) (bool, error)

VerifyUnshielding is a free data retrieval call binding the contract method 0xdafca47a.

Solidity: function verifyUnshielding(proof bytes, spendNullifier bytes32, treeRoot bytes32, value uint64) constant returns(bool)

type ZSLPrecompileFilterer

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

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

func NewZSLPrecompileFilterer

func NewZSLPrecompileFilterer(address common.Address, filterer bind.ContractFilterer) (*ZSLPrecompileFilterer, error)

NewZSLPrecompileFilterer creates a new log filterer instance of ZSLPrecompile, bound to a specific deployed contract.

type ZSLPrecompileRaw

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

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

func (*ZSLPrecompileRaw) Call

func (_ZSLPrecompile *ZSLPrecompileRaw) 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 (*ZSLPrecompileRaw) Transact

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

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

func (*ZSLPrecompileRaw) Transfer

func (_ZSLPrecompile *ZSLPrecompileRaw) 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 ZSLPrecompileSession

type ZSLPrecompileSession struct {
	Contract     *ZSLPrecompile    // 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
}

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

func (*ZSLPrecompileSession) Sha256Compress

func (_ZSLPrecompile *ZSLPrecompileSession) Sha256Compress(input []byte) ([32]byte, error)

Sha256Compress is a free data retrieval call binding the contract method 0x3b300c68.

Solidity: function sha256Compress(input bytes) constant returns(result bytes32)

func (*ZSLPrecompileSession) VerifyShieldedTransfer

func (_ZSLPrecompile *ZSLPrecompileSession) VerifyShieldedTransfer(proof []byte, treeRoot [32]byte, spendNullifier1 [32]byte, spendNullifier2 [32]byte, sendNullifier1 [32]byte, sendNullifier2 [32]byte, commitment1 [32]byte, commitment2 [32]byte) (bool, error)

VerifyShieldedTransfer is a free data retrieval call binding the contract method 0x794f69e3.

Solidity: function verifyShieldedTransfer(proof bytes, treeRoot bytes32, spendNullifier1 bytes32, spendNullifier2 bytes32, sendNullifier1 bytes32, sendNullifier2 bytes32, commitment1 bytes32, commitment2 bytes32) constant returns(bool)

func (*ZSLPrecompileSession) VerifyShielding

func (_ZSLPrecompile *ZSLPrecompileSession) VerifyShielding(proof []byte, sendNullifier [32]byte, commitment [32]byte, value uint64) (bool, error)

VerifyShielding is a free data retrieval call binding the contract method 0xe088659e.

Solidity: function verifyShielding(proof bytes, sendNullifier bytes32, commitment bytes32, value uint64) constant returns(bool)

func (*ZSLPrecompileSession) VerifyUnshielding

func (_ZSLPrecompile *ZSLPrecompileSession) VerifyUnshielding(proof []byte, spendNullifier [32]byte, treeRoot [32]byte, value uint64) (bool, error)

VerifyUnshielding is a free data retrieval call binding the contract method 0xdafca47a.

Solidity: function verifyUnshielding(proof bytes, spendNullifier bytes32, treeRoot bytes32, value uint64) constant returns(bool)

type ZSLPrecompileTransactor

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

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

func NewZSLPrecompileTransactor

func NewZSLPrecompileTransactor(address common.Address, transactor bind.ContractTransactor) (*ZSLPrecompileTransactor, error)

NewZSLPrecompileTransactor creates a new write-only instance of ZSLPrecompile, bound to a specific deployed contract.

type ZSLPrecompileTransactorRaw

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

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

func (*ZSLPrecompileTransactorRaw) Transact

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

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

func (*ZSLPrecompileTransactorRaw) Transfer

func (_ZSLPrecompile *ZSLPrecompileTransactorRaw) 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 ZSLPrecompileTransactorSession

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

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

Jump to

Keyboard shortcuts

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