resolver

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2018 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResolver

func NewResolver(net string, address string) (*resolver, error)

Types

type DIDAttribute

type DIDAttribute struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type DIDAuthentication

type DIDAuthentication struct {
	Type      string `json:"type"`
	PublicKey string `json:"publicKey"`
}

type DIDDocument

type DIDDocument struct {
	Context        string              `json:"@context"`
	Id             string              `json:"id"`
	PublicKey      []DIDPublicKey      `json:"publicKey"`
	Authentication []DIDAuthentication `json:"authentication"`
	Service        []DIDAttribute      `json:"service"`
}

type DIDLog

type DIDLog struct {
	DidPublicKeyLogs      []LogPublicKeyChanged
	DidAuthenticationLogs []LogAuthenticationChanged
	DidAttributeLogs      []LogAttributeChanged
}

type DIDPublicKey

type DIDPublicKey struct {
	Id           string `json:"id"`
	Type         string `json:"type"`
	Owner        string `json:"owner"`
	PublicKeyHex string `json:"publicKeyHex"`
}

type LogAttributeChanged

type LogAttributeChanged struct {
	Identity       common.Address
	Name           []byte
	Value          []byte
	ValidTo        *big.Int
	PreviousChange *big.Int
}

type LogAuthenticationChanged

type LogAuthenticationChanged struct {
	Identity           common.Address
	AuthenticationType [32]byte
	Authentication     [32]byte
	ValidTo            *big.Int
	PreviousChange     *big.Int
}

type LogPublicKeyChanged

type LogPublicKeyChanged struct {
	Identity       common.Address
	PublicKeyType  [32]byte
	PublicKey      [32]byte
	ValidTo        *big.Int
	PreviousChange *big.Int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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