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: 0

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