Documentation ¶
Index ¶
- Variables
- func TimeStampFn() string
- type AuthData
- type Resolver
- func (r *Resolver) BlockchainID() string
- func (r *Resolver) Resolve(ctx context.Context, did w3c.DID, opts *services.ResolverOpts) (services.IdentityState, error)
- func (r *Resolver) ResolveGist(ctx context.Context, opts *services.ResolverOpts) (*services.GistInfo, error)
- func (r *Resolver) TypedData(primaryType services.PrimaryType, did w3c.DID, ...) (apitypes.TypedData, error)
- func (r *Resolver) VerifyState(primaryType services.PrimaryType, identityState services.IdentityState, ...) (bool, error)
- func (r *Resolver) WalletAddress() (string, error)
- type StateContract
Constants ¶
This section is empty.
Variables ¶
View Source
var GlobalStateAPITypes = apitypes.Types{ "GlobalState": []apitypes.Type{ {Name: "from", Type: "address"}, {Name: "timestamp", Type: "uint256"}, {Name: "root", Type: "uint256"}, {Name: "replacedByRoot", Type: "uint256"}, {Name: "createdAtTimestamp", Type: "uint256"}, {Name: "replacedAtTimestamp", Type: "uint256"}, }, "EIP712Domain": []apitypes.Type{ {Name: "name", Type: "string"}, {Name: "version", Type: "string"}, {Name: "chainId", Type: "uint256"}, {Name: "verifyingContract", Type: "address"}, }, }
View Source
var IdentityStateAPITypes = apitypes.Types{ "IdentityState": []apitypes.Type{ {Name: "from", Type: "address"}, {Name: "timestamp", Type: "uint256"}, {Name: "identity", Type: "uint256"}, {Name: "state", Type: "uint256"}, {Name: "replacedByState", Type: "uint256"}, {Name: "createdAtTimestamp", Type: "uint256"}, {Name: "replacedAtTimestamp", Type: "uint256"}, }, "EIP712Domain": []apitypes.Type{ {Name: "name", Type: "string"}, {Name: "version", Type: "string"}, {Name: "chainId", Type: "uint256"}, {Name: "verifyingContract", Type: "address"}, }, }
View Source
var TimeStamp = TimeStampFn
Functions ¶
func TimeStampFn ¶
func TimeStampFn() string
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
func NewResolver ¶
NewResolver create new ethereum resolver.
func (*Resolver) BlockchainID ¶
func (*Resolver) Resolve ¶
func (r *Resolver) Resolve( ctx context.Context, did w3c.DID, opts *services.ResolverOpts, ) (services.IdentityState, error)
func (*Resolver) ResolveGist ¶
func (*Resolver) VerifyState ¶
func (r *Resolver) VerifyState( primaryType services.PrimaryType, identityState services.IdentityState, did w3c.DID, ) (bool, error)
func (*Resolver) WalletAddress ¶
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) }
Click to show internal directories.
Click to hide internal directories.