eth

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2024 License: AGPL-3.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Resolver

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

func NewResolver

func NewResolver(url, address string) (*Resolver, error)

NewResolver create new ethereum resolver.

func (*Resolver) BlockchainID

func (r *Resolver) BlockchainID() string

func (*Resolver) Resolve

func (r *Resolver) Resolve(
	ctx context.Context,
	did w3c.DID,
	opts *services.ResolverOpts,
) (services.IdentityState, error)

func (*Resolver) ResolveGist

func (r *Resolver) ResolveGist(
	ctx context.Context,
	opts *services.ResolverOpts,
) (*services.GistInfo, error)

type ResolverOption added in v0.0.5

type ResolverOption func(*Resolver)

type StateContract

type StateContract interface {
	GetGISTRoot(opts *bind.CallOpts) (*big.Int, error)
	GetGISTRootInfo(opts *bind.CallOpts, root *big.Int) (contract.IStateGistRootInfo, error)
	GetGISTProofByRoot(opts *bind.CallOpts, id *big.Int, root *big.Int) (contract.IStateGistProof, error)

	GetStateInfoById(opts *bind.CallOpts, id *big.Int) (contract.IStateStateInfo, error)
	GetStateInfoByIdAndState(opts *bind.CallOpts, id *big.Int, state *big.Int) (contract.IStateStateInfo, error)
}

Directories

Path Synopsis
contract
mock
Package mock_eth is a generated GoMock package.
Package mock_eth is a generated GoMock package.

Jump to

Keyboard shortcuts

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