Documentation
¶
Index ¶
- Constants
- type Counterfactual
- type Info
- type Service
- type ServiceImpl
- func (is *ServiceImpl) Add(id core.ID, counterfactual *Counterfactual) (*core.ProofClaim, error)
- func (is *ServiceImpl) AddressOf(counterfactual *Counterfactual) (common.Address, error)
- func (is *ServiceImpl) Deploy(counterfactual *Counterfactual) (common.Address, *types.Transaction, error)
- func (is *ServiceImpl) DeployerAddr() *common.Address
- func (is *ServiceImpl) Forward(id core.ID, ethAddr common.Address, ksignpk *ecdsa.PublicKey, ...) (common.Hash, error)
- func (is *ServiceImpl) Get(ethAddr common.Address) (*Counterfactual, error)
- func (is *ServiceImpl) ImplAddr() *common.Address
- func (is *ServiceImpl) Info(ethAddr common.Address) (*Info, error)
- func (is *ServiceImpl) Initialized() bool
- func (is *ServiceImpl) IsDeployed(ethAddr common.Address) (bool, error)
- func (is *ServiceImpl) List(limit int) ([]common.Address, error)
Constants ¶
View Source
const CompressedPkLen = 33
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Counterfactual ¶
type Counterfactual struct { Operational common.Address `json:"operational"` OperationalPk *utils.PublicKey `json:"operationalPk"` Relayer common.Address `json:"relayer"` Recoverer common.Address `json:"recoverer"` Revokator common.Address `json:"revokator"` Impl common.Address `json:"impl"` }
func (*Counterfactual) Decode ¶
func (i *Counterfactual) Decode(encoded []byte) error
func (*Counterfactual) Encode ¶
func (i *Counterfactual) Encode() []byte
type Service ¶
type Service interface { Initialized() bool AddressOf(counterfactual *Counterfactual) (common.Address, error) Deploy(counterfactual *Counterfactual) (common.Address, *types.Transaction, error) IsDeployed(ethAddr common.Address) (bool, error) Info(ethAddr common.Address) (*Info, error) Forward(id core.ID, ethAddr common.Address, ksignpk *ecdsa.PublicKey, to common.Address, data []byte, value *big.Int, gas uint64, sig []byte) (common.Hash, error) Add(id core.ID, counterfactual *Counterfactual) (*core.ProofClaim, error) List(limit int) ([]common.Address, error) Get(ethAddr common.Address) (*Counterfactual, error) DeployerAddr() *common.Address ImplAddr() *common.Address }
type ServiceImpl ¶
type ServiceImpl struct {
// contains filtered or unexported fields
}
func (*ServiceImpl) Add ¶
func (is *ServiceImpl) Add(id core.ID, counterfactual *Counterfactual) (*core.ProofClaim, error)
Add creates a merkle tree of a new user in the relay, given the identity data of the user.
func (*ServiceImpl) AddressOf ¶
func (is *ServiceImpl) AddressOf(counterfactual *Counterfactual) (common.Address, error)
AddressOf returns the address of the smart contract given the identity data of a user.
func (*ServiceImpl) Deploy ¶
func (is *ServiceImpl) Deploy(counterfactual *Counterfactual) (common.Address, *types.Transaction, error)
Deploy deploys the user's smart contract in the blockchain.
func (*ServiceImpl) DeployerAddr ¶
func (is *ServiceImpl) DeployerAddr() *common.Address
func (*ServiceImpl) Get ¶
func (is *ServiceImpl) Get(ethAddr common.Address) (*Counterfactual, error)
func (*ServiceImpl) ImplAddr ¶
func (is *ServiceImpl) ImplAddr() *common.Address
func (*ServiceImpl) Initialized ¶
func (is *ServiceImpl) Initialized() bool
func (*ServiceImpl) IsDeployed ¶
func (is *ServiceImpl) IsDeployed(ethAddr common.Address) (bool, error)
IsDeployed checks if the users's smart contract is deployed in the blockchain.
Click to show internal directories.
Click to hide internal directories.