anchors

package
v0.0.2-alpha Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2018 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AnchorIDLength is the length in bytes of the AnchorID
	AnchorIDLength = 32

	// DocumentRootLength is the length in bytes of the DocumentRoot
	DocumentRootLength = 32

	// DocumentProofLength is the length in bytes of a single proof
	DocumentProofLength = 32

	// AnchorSchemaVersion as stored on public repository
	AnchorSchemaVersion uint = 1
)
View Source
const BootstrappedAnchorRepo string = "BootstrappedAnchorRepo"

BootstrappedAnchorRepo is used as a key to map the configured anchor repository through context.

View Source
const EthereumAnchorRepositoryContractABI = "" /* 2681-byte string literal not displayed */

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

Variables

This section is empty.

Functions

func GenerateCommitHash

func GenerateCommitHash(anchorID AnchorID, centrifugeID identity.CentID, documentRoot DocumentRoot) []byte

GenerateCommitHash generates Keccak256 message from AnchorID, CentID, DocumentRoot

Types

type AnchorID

type AnchorID [AnchorIDLength]byte

AnchorID type is byte array of length AnchorIDLength

func ToAnchorID

func ToAnchorID(bytes []byte) (AnchorID, error)

ToAnchorID convert the bytes into AnchorID type returns an error if the bytes length != AnchorIDLength

func (*AnchorID) BigInt

func (a *AnchorID) BigInt() *big.Int

BigInt returns anchorID in bigInt form

type AnchorRepository

type AnchorRepository interface {
	PreCommitAnchor(anchorID AnchorID, signingRoot DocumentRoot, centID identity.CentID, signature []byte, expirationBlock *big.Int) (<-chan *WatchPreCommit, error)
	CommitAnchor(anchorID AnchorID, documentRoot DocumentRoot, centID identity.CentID, documentProofs [][32]byte, signature []byte) (<-chan *WatchCommit, error)
	GetDocumentRootOf(anchorID AnchorID) (DocumentRoot, error)
}

AnchorRepository defines a set of functions that can be implemented by any type that stores and retrieves the anchoring, and pre anchoring details.

type Bootstrapper

type Bootstrapper struct{}

Bootstrapper implements bootstrapper.Bootstrapper for package requirement initialisations.

func (Bootstrapper) Bootstrap

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

Bootstrap initializes the anchorRepositoryContract as well as the anchorConfirmationTask that depends on it. the anchorConfirmationTask is added to be registered on the Queue at queue.Bootstrapper.

type CommitData

type CommitData struct {
	BlockHeight    uint64
	AnchorID       AnchorID
	DocumentRoot   DocumentRoot
	CentrifugeID   identity.CentID
	DocumentProofs [][DocumentProofLength]byte
	Signature      []byte
	SchemaVersion  uint
}

CommitData holds required document details for anchoring

func NewCommitData

func NewCommitData(blockHeight uint64, anchorID AnchorID, documentRoot DocumentRoot, centrifugeID identity.CentID, documentProofs [][32]byte, signature []byte) (commitData *CommitData)

NewCommitData returns a CommitData with passed in details

type Config

type Config interface {
	GetEthereumDefaultAccountName() string
	GetEthereumContextWaitTimeout() time.Duration
	GetContractAddress(address string) common.Address
}

Config defines required functions for the package Anchors

type DocumentRoot

type DocumentRoot [DocumentRootLength]byte

DocumentRoot type is byte array of length DocumentRootLength

func RandomDocumentRoot

func RandomDocumentRoot() DocumentRoot

RandomDocumentRoot returns a randomly generated DocumentRoot

func ToDocumentRoot

func ToDocumentRoot(bytes []byte) (DocumentRoot, error)

ToDocumentRoot converts bytes to DocumentRoot returns error if the bytes length != DocumentRootLength

type EthereumAnchorRepositoryContract

type EthereumAnchorRepositoryContract struct {
	EthereumAnchorRepositoryContractCaller     // Read-only binding to the contract
	EthereumAnchorRepositoryContractTransactor // Write-only binding to the contract
	EthereumAnchorRepositoryContractFilterer   // Log filterer for contract events
}

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

func NewEthereumAnchorRepositoryContract

func NewEthereumAnchorRepositoryContract(address common.Address, backend bind.ContractBackend) (*EthereumAnchorRepositoryContract, error)

NewEthereumAnchorRepositoryContract creates a new instance of EthereumAnchorRepositoryContract, bound to a specific deployed contract.

type EthereumAnchorRepositoryContractAnchorCommitted

type EthereumAnchorRepositoryContractAnchorCommitted struct {
	From         common.Address
	AnchorId     *big.Int
	CentrifugeId *big.Int
	DocumentRoot [32]byte
	BlockHeight  uint32
	Raw          types.Log // Blockchain specific contextual infos
}

EthereumAnchorRepositoryContractAnchorCommitted represents a AnchorCommitted event raised by the EthereumAnchorRepositoryContract contract.

type EthereumAnchorRepositoryContractAnchorCommittedIterator

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

EthereumAnchorRepositoryContractAnchorCommittedIterator is returned from FilterAnchorCommitted and is used to iterate over the raw logs and unpacked data for AnchorCommitted events raised by the EthereumAnchorRepositoryContract contract.

func (*EthereumAnchorRepositoryContractAnchorCommittedIterator) Close

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

func (*EthereumAnchorRepositoryContractAnchorCommittedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EthereumAnchorRepositoryContractAnchorCommittedIterator) 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 EthereumAnchorRepositoryContractAnchorPreCommitted

type EthereumAnchorRepositoryContractAnchorPreCommitted struct {
	From        common.Address
	AnchorId    *big.Int
	BlockHeight uint32
	Raw         types.Log // Blockchain specific contextual infos
}

EthereumAnchorRepositoryContractAnchorPreCommitted represents a AnchorPreCommitted event raised by the EthereumAnchorRepositoryContract contract.

type EthereumAnchorRepositoryContractAnchorPreCommittedIterator

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

EthereumAnchorRepositoryContractAnchorPreCommittedIterator is returned from FilterAnchorPreCommitted and is used to iterate over the raw logs and unpacked data for AnchorPreCommitted events raised by the EthereumAnchorRepositoryContract contract.

func (*EthereumAnchorRepositoryContractAnchorPreCommittedIterator) Close

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

func (*EthereumAnchorRepositoryContractAnchorPreCommittedIterator) Error

Error returns any retrieval or parsing error occurred during filtering.

func (*EthereumAnchorRepositoryContractAnchorPreCommittedIterator) 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 EthereumAnchorRepositoryContractCaller

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

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

func NewEthereumAnchorRepositoryContractCaller

func NewEthereumAnchorRepositoryContractCaller(address common.Address, caller bind.ContractCaller) (*EthereumAnchorRepositoryContractCaller, error)

NewEthereumAnchorRepositoryContractCaller creates a new read-only instance of EthereumAnchorRepositoryContract, bound to a specific deployed contract.

func (*EthereumAnchorRepositoryContractCaller) Commits

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCaller) Commits(opts *bind.CallOpts, arg0 *big.Int) ([32]byte, error)

Commits is a free data retrieval call binding the contract method 0xc7c4a615.

Solidity: function commits( uint256) constant returns(bytes32)

func (*EthereumAnchorRepositoryContractCaller) GetAnchorById

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCaller) GetAnchorById(opts *bind.CallOpts, _anchorId *big.Int) (struct {
	AnchorId     *big.Int
	DocumentRoot [32]byte
	CentrifugeId *big.Int
}, error)

GetAnchorById is a free data retrieval call binding the contract method 0x32bf361b.

Solidity: function getAnchorById(_anchorId uint256) constant returns(anchorId uint256, documentRoot bytes32, centrifugeId uint48)

func (*EthereumAnchorRepositoryContractCaller) HasValidPreCommit

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCaller) HasValidPreCommit(opts *bind.CallOpts, _anchorId *big.Int) (bool, error)

HasValidPreCommit is a free data retrieval call binding the contract method 0xb5c7d034.

Solidity: function hasValidPreCommit(_anchorId uint256) constant returns(bool)

func (*EthereumAnchorRepositoryContractCaller) PreCommits

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCaller) PreCommits(opts *bind.CallOpts, arg0 *big.Int) (struct {
	SigningRoot     [32]byte
	CentrifugeId    *big.Int
	ExpirationBlock uint32
}, error)

PreCommits is a free data retrieval call binding the contract method 0xd04cc3da.

Solidity: function preCommits( uint256) constant returns(signingRoot bytes32, centrifugeId uint48, expirationBlock uint32)

type EthereumAnchorRepositoryContractCallerRaw

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

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

func (*EthereumAnchorRepositoryContractCallerRaw) Call

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCallerRaw) 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 EthereumAnchorRepositoryContractCallerSession

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

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

func (*EthereumAnchorRepositoryContractCallerSession) Commits

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCallerSession) Commits(arg0 *big.Int) ([32]byte, error)

Commits is a free data retrieval call binding the contract method 0xc7c4a615.

Solidity: function commits( uint256) constant returns(bytes32)

func (*EthereumAnchorRepositoryContractCallerSession) GetAnchorById

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCallerSession) GetAnchorById(_anchorId *big.Int) (struct {
	AnchorId     *big.Int
	DocumentRoot [32]byte
	CentrifugeId *big.Int
}, error)

GetAnchorById is a free data retrieval call binding the contract method 0x32bf361b.

Solidity: function getAnchorById(_anchorId uint256) constant returns(anchorId uint256, documentRoot bytes32, centrifugeId uint48)

func (*EthereumAnchorRepositoryContractCallerSession) HasValidPreCommit

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCallerSession) HasValidPreCommit(_anchorId *big.Int) (bool, error)

HasValidPreCommit is a free data retrieval call binding the contract method 0xb5c7d034.

Solidity: function hasValidPreCommit(_anchorId uint256) constant returns(bool)

func (*EthereumAnchorRepositoryContractCallerSession) PreCommits

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractCallerSession) PreCommits(arg0 *big.Int) (struct {
	SigningRoot     [32]byte
	CentrifugeId    *big.Int
	ExpirationBlock uint32
}, error)

PreCommits is a free data retrieval call binding the contract method 0xd04cc3da.

Solidity: function preCommits( uint256) constant returns(signingRoot bytes32, centrifugeId uint48, expirationBlock uint32)

type EthereumAnchorRepositoryContractFilterer

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

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

func NewEthereumAnchorRepositoryContractFilterer

func NewEthereumAnchorRepositoryContractFilterer(address common.Address, filterer bind.ContractFilterer) (*EthereumAnchorRepositoryContractFilterer, error)

NewEthereumAnchorRepositoryContractFilterer creates a new log filterer instance of EthereumAnchorRepositoryContract, bound to a specific deployed contract.

func (*EthereumAnchorRepositoryContractFilterer) FilterAnchorCommitted

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractFilterer) FilterAnchorCommitted(opts *bind.FilterOpts, from []common.Address, anchorId []*big.Int, centrifugeId []*big.Int) (*EthereumAnchorRepositoryContractAnchorCommittedIterator, error)

FilterAnchorCommitted is a free log retrieval operation binding the contract event 0x307682cd6852f8e18285627aa89f76c08e16e4978ab1c80dedbc5e1d43ddba66.

Solidity: e AnchorCommitted(from indexed address, anchorId indexed uint256, centrifugeId indexed uint48, documentRoot bytes32, blockHeight uint32)

func (*EthereumAnchorRepositoryContractFilterer) FilterAnchorPreCommitted

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractFilterer) FilterAnchorPreCommitted(opts *bind.FilterOpts, from []common.Address, anchorId []*big.Int) (*EthereumAnchorRepositoryContractAnchorPreCommittedIterator, error)

FilterAnchorPreCommitted is a free log retrieval operation binding the contract event 0xaa2928be4e330731bc1f0289edebfc72ccb9979ffc703a3de4edd8ea760462da.

Solidity: e AnchorPreCommitted(from indexed address, anchorId indexed uint256, blockHeight uint32)

func (*EthereumAnchorRepositoryContractFilterer) WatchAnchorCommitted

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractFilterer) WatchAnchorCommitted(opts *bind.WatchOpts, sink chan<- *EthereumAnchorRepositoryContractAnchorCommitted, from []common.Address, anchorId []*big.Int, centrifugeId []*big.Int) (event.Subscription, error)

WatchAnchorCommitted is a free log subscription operation binding the contract event 0x307682cd6852f8e18285627aa89f76c08e16e4978ab1c80dedbc5e1d43ddba66.

Solidity: e AnchorCommitted(from indexed address, anchorId indexed uint256, centrifugeId indexed uint48, documentRoot bytes32, blockHeight uint32)

func (*EthereumAnchorRepositoryContractFilterer) WatchAnchorPreCommitted

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractFilterer) WatchAnchorPreCommitted(opts *bind.WatchOpts, sink chan<- *EthereumAnchorRepositoryContractAnchorPreCommitted, from []common.Address, anchorId []*big.Int) (event.Subscription, error)

WatchAnchorPreCommitted is a free log subscription operation binding the contract event 0xaa2928be4e330731bc1f0289edebfc72ccb9979ffc703a3de4edd8ea760462da.

Solidity: e AnchorPreCommitted(from indexed address, anchorId indexed uint256, blockHeight uint32)

type EthereumAnchorRepositoryContractRaw

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

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

func (*EthereumAnchorRepositoryContractRaw) Call

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractRaw) 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 (*EthereumAnchorRepositoryContractRaw) Transact

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

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

func (*EthereumAnchorRepositoryContractRaw) Transfer

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractRaw) 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 EthereumAnchorRepositoryContractSession

type EthereumAnchorRepositoryContractSession struct {
	Contract     *EthereumAnchorRepositoryContract // 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
}

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

func (*EthereumAnchorRepositoryContractSession) Commit

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) Commit(_anchorId *big.Int, _documentRoot [32]byte, _centrifugeId *big.Int, _documentProofs [][32]byte, _signature []byte) (*types.Transaction, error)

Commit is a paid mutator transaction binding the contract method 0xad90a76b.

Solidity: function commit(_anchorId uint256, _documentRoot bytes32, _centrifugeId uint48, _documentProofs bytes32[], _signature bytes) returns()

func (*EthereumAnchorRepositoryContractSession) Commits

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) Commits(arg0 *big.Int) ([32]byte, error)

Commits is a free data retrieval call binding the contract method 0xc7c4a615.

Solidity: function commits( uint256) constant returns(bytes32)

func (*EthereumAnchorRepositoryContractSession) GetAnchorById

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) GetAnchorById(_anchorId *big.Int) (struct {
	AnchorId     *big.Int
	DocumentRoot [32]byte
	CentrifugeId *big.Int
}, error)

GetAnchorById is a free data retrieval call binding the contract method 0x32bf361b.

Solidity: function getAnchorById(_anchorId uint256) constant returns(anchorId uint256, documentRoot bytes32, centrifugeId uint48)

func (*EthereumAnchorRepositoryContractSession) HasValidPreCommit

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) HasValidPreCommit(_anchorId *big.Int) (bool, error)

HasValidPreCommit is a free data retrieval call binding the contract method 0xb5c7d034.

Solidity: function hasValidPreCommit(_anchorId uint256) constant returns(bool)

func (*EthereumAnchorRepositoryContractSession) PreCommit

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) PreCommit(_anchorId *big.Int, _signingRoot [32]byte, _centrifugeId *big.Int, _signature []byte, _expirationBlock *big.Int) (*types.Transaction, error)

PreCommit is a paid mutator transaction binding the contract method 0xf098d34c.

Solidity: function preCommit(_anchorId uint256, _signingRoot bytes32, _centrifugeId uint48, _signature bytes, _expirationBlock uint256) returns()

func (*EthereumAnchorRepositoryContractSession) PreCommits

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractSession) PreCommits(arg0 *big.Int) (struct {
	SigningRoot     [32]byte
	CentrifugeId    *big.Int
	ExpirationBlock uint32
}, error)

PreCommits is a free data retrieval call binding the contract method 0xd04cc3da.

Solidity: function preCommits( uint256) constant returns(signingRoot bytes32, centrifugeId uint48, expirationBlock uint32)

type EthereumAnchorRepositoryContractTransactor

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

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

func NewEthereumAnchorRepositoryContractTransactor

func NewEthereumAnchorRepositoryContractTransactor(address common.Address, transactor bind.ContractTransactor) (*EthereumAnchorRepositoryContractTransactor, error)

NewEthereumAnchorRepositoryContractTransactor creates a new write-only instance of EthereumAnchorRepositoryContract, bound to a specific deployed contract.

func (*EthereumAnchorRepositoryContractTransactor) Commit

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactor) Commit(opts *bind.TransactOpts, _anchorId *big.Int, _documentRoot [32]byte, _centrifugeId *big.Int, _documentProofs [][32]byte, _signature []byte) (*types.Transaction, error)

Commit is a paid mutator transaction binding the contract method 0xad90a76b.

Solidity: function commit(_anchorId uint256, _documentRoot bytes32, _centrifugeId uint48, _documentProofs bytes32[], _signature bytes) returns()

func (*EthereumAnchorRepositoryContractTransactor) PreCommit

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactor) PreCommit(opts *bind.TransactOpts, _anchorId *big.Int, _signingRoot [32]byte, _centrifugeId *big.Int, _signature []byte, _expirationBlock *big.Int) (*types.Transaction, error)

PreCommit is a paid mutator transaction binding the contract method 0xf098d34c.

Solidity: function preCommit(_anchorId uint256, _signingRoot bytes32, _centrifugeId uint48, _signature bytes, _expirationBlock uint256) returns()

type EthereumAnchorRepositoryContractTransactorRaw

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

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

func (*EthereumAnchorRepositoryContractTransactorRaw) Transact

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

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

func (*EthereumAnchorRepositoryContractTransactorRaw) Transfer

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactorRaw) 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 EthereumAnchorRepositoryContractTransactorSession

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

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

func (*EthereumAnchorRepositoryContractTransactorSession) Commit

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactorSession) Commit(_anchorId *big.Int, _documentRoot [32]byte, _centrifugeId *big.Int, _documentProofs [][32]byte, _signature []byte) (*types.Transaction, error)

Commit is a paid mutator transaction binding the contract method 0xad90a76b.

Solidity: function commit(_anchorId uint256, _documentRoot bytes32, _centrifugeId uint48, _documentProofs bytes32[], _signature bytes) returns()

func (*EthereumAnchorRepositoryContractTransactorSession) PreCommit

func (_EthereumAnchorRepositoryContract *EthereumAnchorRepositoryContractTransactorSession) PreCommit(_anchorId *big.Int, _signingRoot [32]byte, _centrifugeId *big.Int, _signature []byte, _expirationBlock *big.Int) (*types.Transaction, error)

PreCommit is a paid mutator transaction binding the contract method 0xf098d34c.

Solidity: function preCommit(_anchorId uint256, _signingRoot bytes32, _centrifugeId uint48, _signature bytes, _expirationBlock uint256) returns()

type PreCommitData

type PreCommitData struct {
	AnchorID        AnchorID
	SigningRoot     DocumentRoot
	CentrifugeID    identity.CentID
	Signature       []byte
	ExpirationBlock *big.Int
	SchemaVersion   uint
}

PreCommitData holds required document details for pre-commit

type WatchCommit

type WatchCommit struct {
	CommitData *CommitData
	Error      error
}

WatchCommit holds the commit data received from ethereum event

type WatchPreCommit

type WatchPreCommit struct {
	PreCommit *PreCommitData
	Error     error
}

WatchPreCommit holds the pre commit data received from ethereum event

Jump to

Keyboard shortcuts

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