types

package
v1.1.0-develop.5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 38 Imported by: 3

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	BaseMinimalDenom = "ncheq"
	BaseFactor       = 1e9
)
View Source
const (
	JSONWebKey2020Type             = "JsonWebKey2020"
	Ed25519VerificationKey2020Type = "Ed25519VerificationKey2020"
	Ed25519VerificationKey2018Type = "Ed25519VerificationKey2018"
)
View Source
const (
	DefaultDidNamespace       = "testnet"
	DefaultCreateDidTxFee     = 50e9                   // 50 CHEQ or 50000000000 ncheq
	DefaultUpdateDidTxFee     = 25e9                   // 25 CHEQ or 25000000000 ncheq
	DefaultDeactivateDidTxFee = 10e9                   // 10 CHEQ or 10000000000 ncheq
	DefaultBurnFactor         = "0.500000000000000000" // 0.5 or 50%
)
View Source
const (
	// ModuleName defines the module name
	ModuleName = "cheqd"

	// StoreKey defines the primary module store key
	StoreKey = ModuleName

	// RouterKey is the message route for slashing
	RouterKey = ModuleName

	// QuerierRoute defines the module's query routing key
	QuerierRoute = ModuleName

	DidMethod = ModuleName
)
View Source
const (
	LatestDidDocVersionKey = "did-latest:"
	DidDocVersionKey       = "did-version:"
	DidDocCountKey         = "did-count:"
	DidNamespaceKey        = "did-namespace:"
)
View Source
const (
	QueryGetDidDoc            = "get-diddoc"
	QueryGetAllDidDocVersions = "get-all-diddoc-versions"
	QueryGetDidDocVersion     = "get-diddoc-version"
)

Variables

View Source
var (
	ErrInvalidLengthDiddoc        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDiddoc          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDiddoc = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrBadRequest                 = sdkerrors.Register(ModuleName, 1000, "bad request")
	ErrInvalidSignature           = sdkerrors.Register(ModuleName, 1100, "invalid signature detected")
	ErrSignatureNotFound          = sdkerrors.Register(ModuleName, 1101, "signature is required but not found")
	ErrDidDocExists               = sdkerrors.Register(ModuleName, 1200, "DID Doc exists")
	ErrDidDocNotFound             = sdkerrors.Register(ModuleName, 1201, "DID Doc not found")
	ErrVerificationMethodNotFound = sdkerrors.Register(ModuleName, 1202, "verification method not found")
	ErrUnexpectedDidVersion       = sdkerrors.Register(ModuleName, 1203, "unexpected DID version")
	ErrBasicValidation            = sdkerrors.Register(ModuleName, 1205, "basic validation failed")
	ErrNamespaceValidation        = sdkerrors.Register(ModuleName, 1206, "DID namespace validation failed")
	ErrDIDDocDeactivated          = sdkerrors.Register(ModuleName, 1207, "DID Doc already deactivated")
	ErrUnpackStateValue           = sdkerrors.Register(ModuleName, 1300, "invalid did state value")
	ErrInternal                   = sdkerrors.Register(ModuleName, 1500, "internal error")
)

x/cheqd module sentinel errors

View Source
var (
	ErrInvalidLengthFee        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowFee          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupFee = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthGenesis        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowGenesis          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthQuery        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowQuery          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var (
	ParamStoreKeyFeeParams = []byte("feeparams")
)

Parameter store key

Functions

func GetDidDocVersionKey

func GetDidDocVersionKey(did string, version string) []byte

func GetDidDocVersionsPrefix

func GetDidDocVersionsPrefix(did string) []byte

func GetLatestDidDocVersionKey

func GetLatestDidDocVersionKey(did string) []byte

func GetLatestDidDocVersionPrefix

func GetLatestDidDocVersionPrefix() []byte

func GetServiceIds

func GetServiceIds(vms []*Service) []string

func GetSignInfoIds

func GetSignInfoIds(infos []*SignInfo) []string

func GetVerificationMethodIds

func GetVerificationMethodIds(vms []*VerificationMethod) []string

func IsUniqueSignInfoList

func IsUniqueSignInfoList(infos []*SignInfo) bool

func MsgCreateDidPayloadFromDid

func MsgCreateDidPayloadFromDid(did *didtypesv1.Did) didtypesv1.MsgCreateDidPayload

func NormalizeSignInfoList

func NormalizeSignInfoList(signatures []*SignInfo)

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryHandler

func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error

RegisterQueryHandler registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over "conn".

func RegisterQueryHandlerClient

func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error

RegisterQueryHandlerClient registers the http handlers for service Query to "mux". The handlers forward requests to the grpc endpoint over the given implementation of "QueryClient". Note: the gRPC framework executes interceptors within the gRPC handler. If the passed in "QueryClient" doesn't go through the normal gRPC flow (creating a gRPC client etc.) then it will be up to the passed in "QueryClient" to call the correct interceptors.

func RegisterQueryHandlerFromEndpoint

func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, opts []grpc.DialOption) (err error)

RegisterQueryHandlerFromEndpoint is same as RegisterQueryHandler but automatically dials to "endpoint" and closes the connection when "ctx" gets done.

func RegisterQueryHandlerServer

func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error

RegisterQueryHandlerServer registers the http handlers for service Query to "mux". UnaryRPC :call QueryServer directly. StreamingRPC :currently unsupported pending https://github.com/grpc/grpc-go/issues/906. Note that using this registration option will cause many gRPC library features to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func VerificationMethodListToMapByFragment

func VerificationMethodListToMapByFragment(vms []*VerificationMethod) map[string]VerificationMethod

func VerifySignature

func VerifySignature(vm VerificationMethod, message []byte, signature []byte) error

Types

type CustomErrorRule

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

func HasPrefix

func HasPrefix(prefix string) *CustomErrorRule

func IsBase58Ed25519VerificationKey2018 added in v1.1.0

func IsBase58Ed25519VerificationKey2018() *CustomErrorRule

func IsDID

func IsDID(allowedNamespaces []string) *CustomErrorRule

func IsDIDUrl

func IsDIDUrl(allowedNamespaces []string, pathRule, queryRule, fragmentRule ValidationType) *CustomErrorRule

func IsID

func IsID() *CustomErrorRule

func IsJWK

func IsJWK() *CustomErrorRule

func IsMultibase

func IsMultibase() *CustomErrorRule

func IsMultibaseEd25519VerificationKey2020 added in v1.1.0

func IsMultibaseEd25519VerificationKey2020() *CustomErrorRule

func IsMultibaseEncodedEd25519PubKey

func IsMultibaseEncodedEd25519PubKey() *CustomErrorRule

func IsURI

func IsURI() *CustomErrorRule

func IsUUID

func IsUUID() *CustomErrorRule

func IsUniqueServiceListByIDRule added in v1.1.0

func IsUniqueServiceListByIDRule() *CustomErrorRule

func IsUniqueSignInfoListByIDRule added in v1.1.0

func IsUniqueSignInfoListByIDRule() *CustomErrorRule

func IsUniqueSignInfoListRule

func IsUniqueSignInfoListRule() *CustomErrorRule

func IsUniqueStrList

func IsUniqueStrList() *CustomErrorRule

func IsUniqueVerificationMethodListByIDRule added in v1.1.0

func IsUniqueVerificationMethodListByIDRule() *CustomErrorRule

func NewCustomErrorRule

func NewCustomErrorRule(fn func(value interface{}) error) *CustomErrorRule

func ValidMsgCreateDidPayloadRule

func ValidMsgCreateDidPayloadRule(allowedNamespaces []string) *CustomErrorRule

func ValidMsgDeactivateDidPayloadRule

func ValidMsgDeactivateDidPayloadRule(allowedNamespaces []string) *CustomErrorRule

func ValidMsgUpdateDidPayloadRule

func ValidMsgUpdateDidPayloadRule(allowedNamespaces []string) *CustomErrorRule

func ValidServiceRule

func ValidServiceRule(baseDid string, allowedNamespaces []string) *CustomErrorRule

func ValidSignInfoRule

func ValidSignInfoRule(allowedNamespaces []string) *CustomErrorRule

func ValidVerificationMethodRule

func ValidVerificationMethodRule(baseDid string, allowedNamespaces []string) *CustomErrorRule

func (CustomErrorRule) Validate

func (c CustomErrorRule) Validate(value interface{}) error

type DidDoc

type DidDoc struct {
	Context              []string              `protobuf:"bytes,1,rep,name=context,proto3" json:"context,omitempty"`
	Id                   string                `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Controller           []string              `protobuf:"bytes,3,rep,name=controller,proto3" json:"controller,omitempty"`
	VerificationMethod   []*VerificationMethod `protobuf:"bytes,4,rep,name=verification_method,json=verificationMethod,proto3" json:"verification_method,omitempty"`
	Authentication       []string              `protobuf:"bytes,5,rep,name=authentication,proto3" json:"authentication,omitempty"`
	AssertionMethod      []string              `protobuf:"bytes,6,rep,name=assertion_method,json=assertionMethod,proto3" json:"assertion_method,omitempty"`
	CapabilityInvocation []string              `protobuf:"bytes,7,rep,name=capability_invocation,json=capabilityInvocation,proto3" json:"capability_invocation,omitempty"`
	CapabilityDelegation []string              `protobuf:"bytes,8,rep,name=capability_delegation,json=capabilityDelegation,proto3" json:"capability_delegation,omitempty"`
	KeyAgreement         []string              `protobuf:"bytes,9,rep,name=key_agreement,json=keyAgreement,proto3" json:"key_agreement,omitempty"`
	Service              []*Service            `protobuf:"bytes,10,rep,name=service,proto3" json:"service,omitempty"`
	AlsoKnownAs          []string              `protobuf:"bytes,11,rep,name=also_known_as,json=alsoKnownAs,proto3" json:"also_known_as,omitempty"`
}

func NewDidDoc

func NewDidDoc(context []string, id string, controller []string, verificationMethod []*VerificationMethod,
	authentication []string, assertionMethod []string, capabilityInvocation []string, capabilityDelegation []string,
	keyAgreement []string, service []*Service, alsoKnownAs []string,
) *DidDoc

func (*DidDoc) AllControllerDids

func (didDoc *DidDoc) AllControllerDids() []string

AllControllerDids returns controller DIDs used in both did.controllers and did.verification_method.controller

func (*DidDoc) Descriptor

func (*DidDoc) Descriptor() ([]byte, []int)

func (*DidDoc) GetAlsoKnownAs

func (m *DidDoc) GetAlsoKnownAs() []string

func (*DidDoc) GetAssertionMethod

func (m *DidDoc) GetAssertionMethod() []string

func (*DidDoc) GetAuthentication

func (m *DidDoc) GetAuthentication() []string

func (*DidDoc) GetCapabilityDelegation

func (m *DidDoc) GetCapabilityDelegation() []string

func (*DidDoc) GetCapabilityInvocation

func (m *DidDoc) GetCapabilityInvocation() []string

func (*DidDoc) GetContext

func (m *DidDoc) GetContext() []string

func (*DidDoc) GetController

func (m *DidDoc) GetController() []string

func (*DidDoc) GetControllersOrSubject

func (didDoc *DidDoc) GetControllersOrSubject() []string

func (*DidDoc) GetId

func (m *DidDoc) GetId() string

func (*DidDoc) GetKeyAgreement

func (m *DidDoc) GetKeyAgreement() []string

func (*DidDoc) GetService

func (m *DidDoc) GetService() []*Service

func (*DidDoc) GetVerificationMethod

func (m *DidDoc) GetVerificationMethod() []*VerificationMethod

func (*DidDoc) GetVerificationMethodControllers

func (didDoc *DidDoc) GetVerificationMethodControllers() []string

func (*DidDoc) Marshal

func (m *DidDoc) Marshal() (dAtA []byte, err error)

func (*DidDoc) MarshalTo

func (m *DidDoc) MarshalTo(dAtA []byte) (int, error)

func (*DidDoc) MarshalToSizedBuffer

func (m *DidDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DidDoc) ProtoMessage

func (*DidDoc) ProtoMessage()

func (*DidDoc) ReplaceDids

func (didDoc *DidDoc) ReplaceDids(old, new string)

ReplaceDids replaces ids in all controller and id fields

func (*DidDoc) Reset

func (m *DidDoc) Reset()

func (*DidDoc) Size

func (m *DidDoc) Size() (n int)

func (*DidDoc) String

func (m *DidDoc) String() string

func (*DidDoc) Unmarshal

func (m *DidDoc) Unmarshal(dAtA []byte) error

func (DidDoc) Validate

func (didDoc DidDoc) Validate(allowedNamespaces []string) error

func (*DidDoc) XXX_DiscardUnknown

func (m *DidDoc) XXX_DiscardUnknown()

func (*DidDoc) XXX_Marshal

func (m *DidDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DidDoc) XXX_Merge

func (m *DidDoc) XXX_Merge(src proto.Message)

func (*DidDoc) XXX_Size

func (m *DidDoc) XXX_Size() int

func (*DidDoc) XXX_Unmarshal

func (m *DidDoc) XXX_Unmarshal(b []byte) error

type DidDocVersionSet

type DidDocVersionSet struct {
	LatestVersion string                `protobuf:"bytes,1,opt,name=latest_version,json=latestVersion,proto3" json:"latest_version,omitempty"`
	DidDocs       []*DidDocWithMetadata `protobuf:"bytes,2,rep,name=did_docs,json=didDocs,proto3" json:"did_docs,omitempty"`
}

func (*DidDocVersionSet) Descriptor

func (*DidDocVersionSet) Descriptor() ([]byte, []int)

func (*DidDocVersionSet) GetDidDocs

func (m *DidDocVersionSet) GetDidDocs() []*DidDocWithMetadata

func (*DidDocVersionSet) GetLatestVersion

func (m *DidDocVersionSet) GetLatestVersion() string

func (*DidDocVersionSet) Marshal

func (m *DidDocVersionSet) Marshal() (dAtA []byte, err error)

func (*DidDocVersionSet) MarshalTo

func (m *DidDocVersionSet) MarshalTo(dAtA []byte) (int, error)

func (*DidDocVersionSet) MarshalToSizedBuffer

func (m *DidDocVersionSet) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DidDocVersionSet) ProtoMessage

func (*DidDocVersionSet) ProtoMessage()

func (*DidDocVersionSet) Reset

func (m *DidDocVersionSet) Reset()

func (*DidDocVersionSet) Size

func (m *DidDocVersionSet) Size() (n int)

func (*DidDocVersionSet) String

func (m *DidDocVersionSet) String() string

func (*DidDocVersionSet) Unmarshal

func (m *DidDocVersionSet) Unmarshal(dAtA []byte) error

func (*DidDocVersionSet) XXX_DiscardUnknown

func (m *DidDocVersionSet) XXX_DiscardUnknown()

func (*DidDocVersionSet) XXX_Marshal

func (m *DidDocVersionSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DidDocVersionSet) XXX_Merge

func (m *DidDocVersionSet) XXX_Merge(src proto.Message)

func (*DidDocVersionSet) XXX_Size

func (m *DidDocVersionSet) XXX_Size() int

func (*DidDocVersionSet) XXX_Unmarshal

func (m *DidDocVersionSet) XXX_Unmarshal(b []byte) error

type DidDocWithMetadata

type DidDocWithMetadata struct {
	DidDoc   *DidDoc   `protobuf:"bytes,1,opt,name=did_doc,json=didDoc,proto3" json:"did_doc,omitempty"`
	Metadata *Metadata `protobuf:"bytes,2,opt,name=metadata,proto3" json:"metadata,omitempty"`
}

func NewDidDocWithMetadata

func NewDidDocWithMetadata(didDoc *DidDoc, metadata *Metadata) DidDocWithMetadata

func (*DidDocWithMetadata) Descriptor

func (*DidDocWithMetadata) Descriptor() ([]byte, []int)

func (*DidDocWithMetadata) GetDidDoc

func (m *DidDocWithMetadata) GetDidDoc() *DidDoc

func (*DidDocWithMetadata) GetMetadata

func (m *DidDocWithMetadata) GetMetadata() *Metadata

func (*DidDocWithMetadata) Marshal

func (m *DidDocWithMetadata) Marshal() (dAtA []byte, err error)

func (*DidDocWithMetadata) MarshalTo

func (m *DidDocWithMetadata) MarshalTo(dAtA []byte) (int, error)

func (*DidDocWithMetadata) MarshalToSizedBuffer

func (m *DidDocWithMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*DidDocWithMetadata) ProtoMessage

func (*DidDocWithMetadata) ProtoMessage()

func (*DidDocWithMetadata) ReplaceDids

func (d *DidDocWithMetadata) ReplaceDids(old, new string)

func (*DidDocWithMetadata) Reset

func (m *DidDocWithMetadata) Reset()

func (*DidDocWithMetadata) Size

func (m *DidDocWithMetadata) Size() (n int)

func (*DidDocWithMetadata) String

func (m *DidDocWithMetadata) String() string

func (*DidDocWithMetadata) Unmarshal

func (m *DidDocWithMetadata) Unmarshal(dAtA []byte) error

func (*DidDocWithMetadata) XXX_DiscardUnknown

func (m *DidDocWithMetadata) XXX_DiscardUnknown()

func (*DidDocWithMetadata) XXX_Marshal

func (m *DidDocWithMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*DidDocWithMetadata) XXX_Merge

func (m *DidDocWithMetadata) XXX_Merge(src proto.Message)

func (*DidDocWithMetadata) XXX_Size

func (m *DidDocWithMetadata) XXX_Size() int

func (*DidDocWithMetadata) XXX_Unmarshal

func (m *DidDocWithMetadata) XXX_Unmarshal(b []byte) error

type FeeParams

type FeeParams struct {
	// Tx types define the fixed fee each for the `did` module.
	CreateDid     types.Coin                             `protobuf:"bytes,1,opt,name=create_did,json=createDid,proto3" json:"create_did"`
	UpdateDid     types.Coin                             `protobuf:"bytes,2,opt,name=update_did,json=updateDid,proto3" json:"update_did"`
	DeactivateDid types.Coin                             `protobuf:"bytes,3,opt,name=deactivate_did,json=deactivateDid,proto3" json:"deactivate_did"`
	BurnFactor    github_com_cosmos_cosmos_sdk_types.Dec `` /* 131-byte string literal not displayed */
}

FeeParams defines the parameters for the `did` module fixed fee.

func DefaultFeeParams

func DefaultFeeParams() *FeeParams

DefaultFeeParams returns default cheqd module tx fee parameters

func (*FeeParams) Descriptor

func (*FeeParams) Descriptor() ([]byte, []int)

func (*FeeParams) Equal

func (this *FeeParams) Equal(that interface{}) bool

func (*FeeParams) GetCreateDid

func (m *FeeParams) GetCreateDid() types.Coin

func (*FeeParams) GetDeactivateDid

func (m *FeeParams) GetDeactivateDid() types.Coin

func (*FeeParams) GetUpdateDid

func (m *FeeParams) GetUpdateDid() types.Coin

func (*FeeParams) Marshal

func (m *FeeParams) Marshal() (dAtA []byte, err error)

func (*FeeParams) MarshalTo

func (m *FeeParams) MarshalTo(dAtA []byte) (int, error)

func (*FeeParams) MarshalToSizedBuffer

func (m *FeeParams) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*FeeParams) ProtoMessage

func (*FeeParams) ProtoMessage()

func (*FeeParams) Reset

func (m *FeeParams) Reset()

func (*FeeParams) Size

func (m *FeeParams) Size() (n int)

func (*FeeParams) String

func (m *FeeParams) String() string

func (*FeeParams) Unmarshal

func (m *FeeParams) Unmarshal(dAtA []byte) error

func (*FeeParams) ValidateBasic

func (tfp *FeeParams) ValidateBasic() error

ValidateBasic performs basic validation of cheqd module tx fee parameters

func (*FeeParams) XXX_DiscardUnknown

func (m *FeeParams) XXX_DiscardUnknown()

func (*FeeParams) XXX_Marshal

func (m *FeeParams) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*FeeParams) XXX_Merge

func (m *FeeParams) XXX_Merge(src proto.Message)

func (*FeeParams) XXX_Size

func (m *FeeParams) XXX_Size() int

func (*FeeParams) XXX_Unmarshal

func (m *FeeParams) XXX_Unmarshal(b []byte) error

type GenesisState

type GenesisState struct {
	DidNamespace string              `protobuf:"bytes,1,opt,name=did_namespace,json=didNamespace,proto3" json:"did_namespace,omitempty"`
	VersionSets  []*DidDocVersionSet `protobuf:"bytes,2,rep,name=version_sets,json=versionSets,proto3" json:"version_sets,omitempty"`
	FeeParams    *FeeParams          `protobuf:"bytes,3,opt,name=fee_params,json=feeParams,proto3" json:"fee_params,omitempty"`
}

func DefaultGenesis

func DefaultGenesis() *GenesisState

DefaultGenesis returns the default `did` genesis state

func (*GenesisState) Descriptor

func (*GenesisState) Descriptor() ([]byte, []int)

func (*GenesisState) GetDidNamespace

func (m *GenesisState) GetDidNamespace() string

func (*GenesisState) GetFeeParams

func (m *GenesisState) GetFeeParams() *FeeParams

func (*GenesisState) GetVersionSets

func (m *GenesisState) GetVersionSets() []*DidDocVersionSet

func (*GenesisState) Marshal

func (m *GenesisState) Marshal() (dAtA []byte, err error)

func (*GenesisState) MarshalTo

func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)

func (*GenesisState) MarshalToSizedBuffer

func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

func (m *GenesisState) Size() (n int)

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

func (m *GenesisState) Unmarshal(dAtA []byte) error

func (GenesisState) Validate

func (gs GenesisState) Validate() error

Validate performs basic genesis state validation returning an error upon any failure.

func (GenesisState) ValidateBasic

func (gs GenesisState) ValidateBasic() error

func (GenesisState) ValidateNoDuplicates

func (gs GenesisState) ValidateNoDuplicates() error

func (GenesisState) ValidateVersionSets

func (gs GenesisState) ValidateVersionSets() error

func (*GenesisState) XXX_DiscardUnknown

func (m *GenesisState) XXX_DiscardUnknown()

func (*GenesisState) XXX_Marshal

func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*GenesisState) XXX_Merge

func (m *GenesisState) XXX_Merge(src proto.Message)

func (*GenesisState) XXX_Size

func (m *GenesisState) XXX_Size() int

func (*GenesisState) XXX_Unmarshal

func (m *GenesisState) XXX_Unmarshal(b []byte) error

type IdentityMsg

type IdentityMsg interface {
	GetSignBytes() []byte
}

type Metadata

type Metadata struct {
	Created           string `protobuf:"bytes,1,opt,name=created,proto3" json:"created,omitempty"`
	Updated           string `protobuf:"bytes,2,opt,name=updated,proto3" json:"updated,omitempty"`
	Deactivated       bool   `protobuf:"varint,3,opt,name=deactivated,proto3" json:"deactivated,omitempty"`
	VersionId         string `protobuf:"bytes,4,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
	NextVersionId     string `protobuf:"bytes,5,opt,name=next_version_id,json=nextVersionId,proto3" json:"next_version_id,omitempty"`
	PreviousVersionId string `protobuf:"bytes,6,opt,name=previous_version_id,json=previousVersionId,proto3" json:"previous_version_id,omitempty"`
}

func NewMetadataFromContext

func NewMetadataFromContext(ctx sdk.Context, version string) Metadata

func (*Metadata) Descriptor

func (*Metadata) Descriptor() ([]byte, []int)

func (*Metadata) GetCreated

func (m *Metadata) GetCreated() string

func (*Metadata) GetDeactivated

func (m *Metadata) GetDeactivated() bool

func (*Metadata) GetNextVersionId

func (m *Metadata) GetNextVersionId() string

func (*Metadata) GetPreviousVersionId

func (m *Metadata) GetPreviousVersionId() string

func (*Metadata) GetUpdated

func (m *Metadata) GetUpdated() string

func (*Metadata) GetVersionId

func (m *Metadata) GetVersionId() string

func (*Metadata) Marshal

func (m *Metadata) Marshal() (dAtA []byte, err error)

func (*Metadata) MarshalTo

func (m *Metadata) MarshalTo(dAtA []byte) (int, error)

func (*Metadata) MarshalToSizedBuffer

func (m *Metadata) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metadata) ProtoMessage

func (*Metadata) ProtoMessage()

func (*Metadata) Reset

func (m *Metadata) Reset()

func (*Metadata) Size

func (m *Metadata) Size() (n int)

func (*Metadata) String

func (m *Metadata) String() string

func (*Metadata) Unmarshal

func (m *Metadata) Unmarshal(dAtA []byte) error

func (*Metadata) Update

func (m *Metadata) Update(ctx sdk.Context, version string)

func (*Metadata) XXX_DiscardUnknown

func (m *Metadata) XXX_DiscardUnknown()

func (*Metadata) XXX_Marshal

func (m *Metadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Metadata) XXX_Merge

func (m *Metadata) XXX_Merge(src proto.Message)

func (*Metadata) XXX_Size

func (m *Metadata) XXX_Size() int

func (*Metadata) XXX_Unmarshal

func (m *Metadata) XXX_Unmarshal(b []byte) error

type MsgClient

type MsgClient interface {
	CreateDidDoc(ctx context.Context, in *MsgCreateDidDoc, opts ...grpc.CallOption) (*MsgCreateDidDocResponse, error)
	UpdateDidDoc(ctx context.Context, in *MsgUpdateDidDoc, opts ...grpc.CallOption) (*MsgUpdateDidDocResponse, error)
	DeactivateDidDoc(ctx context.Context, in *MsgDeactivateDidDoc, opts ...grpc.CallOption) (*MsgDeactivateDidDocResponse, error)
}

MsgClient is the client API for Msg service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewMsgClient

func NewMsgClient(cc grpc1.ClientConn) MsgClient

type MsgCreateDidDoc

type MsgCreateDidDoc struct {
	Payload    *MsgCreateDidDocPayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	Signatures []*SignInfo             `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
}

func NewMsgCreateDid

func NewMsgCreateDid(payload *MsgCreateDidDocPayload, signatures []*SignInfo) *MsgCreateDidDoc

func (*MsgCreateDidDoc) Descriptor

func (*MsgCreateDidDoc) Descriptor() ([]byte, []int)

func (*MsgCreateDidDoc) GetPayload

func (m *MsgCreateDidDoc) GetPayload() *MsgCreateDidDocPayload

func (*MsgCreateDidDoc) GetSignBytes

func (msg *MsgCreateDidDoc) GetSignBytes() []byte

func (*MsgCreateDidDoc) GetSignatures

func (m *MsgCreateDidDoc) GetSignatures() []*SignInfo

func (*MsgCreateDidDoc) GetSigners

func (msg *MsgCreateDidDoc) GetSigners() []sdk.AccAddress

func (*MsgCreateDidDoc) Marshal

func (m *MsgCreateDidDoc) Marshal() (dAtA []byte, err error)

func (*MsgCreateDidDoc) MarshalTo

func (m *MsgCreateDidDoc) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateDidDoc) MarshalToSizedBuffer

func (m *MsgCreateDidDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateDidDoc) Normalize

func (msg *MsgCreateDidDoc) Normalize()

func (*MsgCreateDidDoc) ProtoMessage

func (*MsgCreateDidDoc) ProtoMessage()

func (*MsgCreateDidDoc) Reset

func (m *MsgCreateDidDoc) Reset()

func (*MsgCreateDidDoc) Route

func (msg *MsgCreateDidDoc) Route() string

func (*MsgCreateDidDoc) Size

func (m *MsgCreateDidDoc) Size() (n int)

func (*MsgCreateDidDoc) String

func (m *MsgCreateDidDoc) String() string

func (*MsgCreateDidDoc) Type

func (msg *MsgCreateDidDoc) Type() string

func (*MsgCreateDidDoc) Unmarshal

func (m *MsgCreateDidDoc) Unmarshal(dAtA []byte) error

func (MsgCreateDidDoc) Validate

func (msg MsgCreateDidDoc) Validate(allowedNamespaces []string) error

func (*MsgCreateDidDoc) ValidateBasic

func (msg *MsgCreateDidDoc) ValidateBasic() error

func (*MsgCreateDidDoc) XXX_DiscardUnknown

func (m *MsgCreateDidDoc) XXX_DiscardUnknown()

func (*MsgCreateDidDoc) XXX_Marshal

func (m *MsgCreateDidDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateDidDoc) XXX_Merge

func (m *MsgCreateDidDoc) XXX_Merge(src proto.Message)

func (*MsgCreateDidDoc) XXX_Size

func (m *MsgCreateDidDoc) XXX_Size() int

func (*MsgCreateDidDoc) XXX_Unmarshal

func (m *MsgCreateDidDoc) XXX_Unmarshal(b []byte) error

type MsgCreateDidDocPayload

type MsgCreateDidDocPayload struct {
	Context              []string              `protobuf:"bytes,1,rep,name=context,proto3" json:"context,omitempty"`
	Id                   string                `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Controller           []string              `protobuf:"bytes,3,rep,name=controller,proto3" json:"controller,omitempty"`
	VerificationMethod   []*VerificationMethod `protobuf:"bytes,4,rep,name=verification_method,json=verificationMethod,proto3" json:"verification_method,omitempty"`
	Authentication       []string              `protobuf:"bytes,5,rep,name=authentication,proto3" json:"authentication,omitempty"`
	AssertionMethod      []string              `protobuf:"bytes,6,rep,name=assertion_method,json=assertionMethod,proto3" json:"assertion_method,omitempty"`
	CapabilityInvocation []string              `protobuf:"bytes,7,rep,name=capability_invocation,json=capabilityInvocation,proto3" json:"capability_invocation,omitempty"`
	CapabilityDelegation []string              `protobuf:"bytes,8,rep,name=capability_delegation,json=capabilityDelegation,proto3" json:"capability_delegation,omitempty"`
	KeyAgreement         []string              `protobuf:"bytes,9,rep,name=key_agreement,json=keyAgreement,proto3" json:"key_agreement,omitempty"`
	AlsoKnownAs          []string              `protobuf:"bytes,10,rep,name=also_known_as,json=alsoKnownAs,proto3" json:"also_known_as,omitempty"`
	Service              []*Service            `protobuf:"bytes,11,rep,name=service,proto3" json:"service,omitempty"`
	VersionId            string                `protobuf:"bytes,12,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
}

func (*MsgCreateDidDocPayload) Descriptor

func (*MsgCreateDidDocPayload) Descriptor() ([]byte, []int)

func (*MsgCreateDidDocPayload) GetAlsoKnownAs

func (m *MsgCreateDidDocPayload) GetAlsoKnownAs() []string

func (*MsgCreateDidDocPayload) GetAssertionMethod

func (m *MsgCreateDidDocPayload) GetAssertionMethod() []string

func (*MsgCreateDidDocPayload) GetAuthentication

func (m *MsgCreateDidDocPayload) GetAuthentication() []string

func (*MsgCreateDidDocPayload) GetCapabilityDelegation

func (m *MsgCreateDidDocPayload) GetCapabilityDelegation() []string

func (*MsgCreateDidDocPayload) GetCapabilityInvocation

func (m *MsgCreateDidDocPayload) GetCapabilityInvocation() []string

func (*MsgCreateDidDocPayload) GetContext

func (m *MsgCreateDidDocPayload) GetContext() []string

func (*MsgCreateDidDocPayload) GetController

func (m *MsgCreateDidDocPayload) GetController() []string

func (*MsgCreateDidDocPayload) GetId

func (m *MsgCreateDidDocPayload) GetId() string

func (*MsgCreateDidDocPayload) GetKeyAgreement

func (m *MsgCreateDidDocPayload) GetKeyAgreement() []string

func (*MsgCreateDidDocPayload) GetService

func (m *MsgCreateDidDocPayload) GetService() []*Service

func (*MsgCreateDidDocPayload) GetSignBytes

func (msg *MsgCreateDidDocPayload) GetSignBytes() []byte

func (*MsgCreateDidDocPayload) GetVerificationMethod

func (m *MsgCreateDidDocPayload) GetVerificationMethod() []*VerificationMethod

func (*MsgCreateDidDocPayload) GetVersionId

func (m *MsgCreateDidDocPayload) GetVersionId() string

func (*MsgCreateDidDocPayload) Marshal

func (m *MsgCreateDidDocPayload) Marshal() (dAtA []byte, err error)

func (*MsgCreateDidDocPayload) MarshalTo

func (m *MsgCreateDidDocPayload) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateDidDocPayload) MarshalToSizedBuffer

func (m *MsgCreateDidDocPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateDidDocPayload) Normalize

func (msg *MsgCreateDidDocPayload) Normalize()

func (*MsgCreateDidDocPayload) ProtoMessage

func (*MsgCreateDidDocPayload) ProtoMessage()

func (*MsgCreateDidDocPayload) Reset

func (m *MsgCreateDidDocPayload) Reset()

func (*MsgCreateDidDocPayload) Size

func (m *MsgCreateDidDocPayload) Size() (n int)

func (*MsgCreateDidDocPayload) String

func (m *MsgCreateDidDocPayload) String() string

func (*MsgCreateDidDocPayload) ToDidDoc

func (msg *MsgCreateDidDocPayload) ToDidDoc() DidDoc

func (*MsgCreateDidDocPayload) Unmarshal

func (m *MsgCreateDidDocPayload) Unmarshal(dAtA []byte) error

func (MsgCreateDidDocPayload) Validate

func (msg MsgCreateDidDocPayload) Validate(allowedNamespaces []string) error

func (*MsgCreateDidDocPayload) XXX_DiscardUnknown

func (m *MsgCreateDidDocPayload) XXX_DiscardUnknown()

func (*MsgCreateDidDocPayload) XXX_Marshal

func (m *MsgCreateDidDocPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateDidDocPayload) XXX_Merge

func (m *MsgCreateDidDocPayload) XXX_Merge(src proto.Message)

func (*MsgCreateDidDocPayload) XXX_Size

func (m *MsgCreateDidDocPayload) XXX_Size() int

func (*MsgCreateDidDocPayload) XXX_Unmarshal

func (m *MsgCreateDidDocPayload) XXX_Unmarshal(b []byte) error

type MsgCreateDidDocResponse

type MsgCreateDidDocResponse struct {
	Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

func (*MsgCreateDidDocResponse) Descriptor

func (*MsgCreateDidDocResponse) Descriptor() ([]byte, []int)

func (*MsgCreateDidDocResponse) GetValue

func (*MsgCreateDidDocResponse) Marshal

func (m *MsgCreateDidDocResponse) Marshal() (dAtA []byte, err error)

func (*MsgCreateDidDocResponse) MarshalTo

func (m *MsgCreateDidDocResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgCreateDidDocResponse) MarshalToSizedBuffer

func (m *MsgCreateDidDocResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgCreateDidDocResponse) ProtoMessage

func (*MsgCreateDidDocResponse) ProtoMessage()

func (*MsgCreateDidDocResponse) Reset

func (m *MsgCreateDidDocResponse) Reset()

func (*MsgCreateDidDocResponse) Size

func (m *MsgCreateDidDocResponse) Size() (n int)

func (*MsgCreateDidDocResponse) String

func (m *MsgCreateDidDocResponse) String() string

func (*MsgCreateDidDocResponse) Unmarshal

func (m *MsgCreateDidDocResponse) Unmarshal(dAtA []byte) error

func (*MsgCreateDidDocResponse) XXX_DiscardUnknown

func (m *MsgCreateDidDocResponse) XXX_DiscardUnknown()

func (*MsgCreateDidDocResponse) XXX_Marshal

func (m *MsgCreateDidDocResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgCreateDidDocResponse) XXX_Merge

func (m *MsgCreateDidDocResponse) XXX_Merge(src proto.Message)

func (*MsgCreateDidDocResponse) XXX_Size

func (m *MsgCreateDidDocResponse) XXX_Size() int

func (*MsgCreateDidDocResponse) XXX_Unmarshal

func (m *MsgCreateDidDocResponse) XXX_Unmarshal(b []byte) error

type MsgDeactivateDidDoc

type MsgDeactivateDidDoc struct {
	Payload    *MsgDeactivateDidDocPayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	Signatures []*SignInfo                 `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
}

func NewMsgDeactivateDid

func NewMsgDeactivateDid(payload *MsgDeactivateDidDocPayload, signatures []*SignInfo) *MsgDeactivateDidDoc

func (*MsgDeactivateDidDoc) Descriptor

func (*MsgDeactivateDidDoc) Descriptor() ([]byte, []int)

func (*MsgDeactivateDidDoc) GetPayload

func (*MsgDeactivateDidDoc) GetSignBytes

func (msg *MsgDeactivateDidDoc) GetSignBytes() []byte

func (*MsgDeactivateDidDoc) GetSignatures

func (m *MsgDeactivateDidDoc) GetSignatures() []*SignInfo

func (*MsgDeactivateDidDoc) GetSigners

func (msg *MsgDeactivateDidDoc) GetSigners() []sdk.AccAddress

func (*MsgDeactivateDidDoc) Marshal

func (m *MsgDeactivateDidDoc) Marshal() (dAtA []byte, err error)

func (*MsgDeactivateDidDoc) MarshalTo

func (m *MsgDeactivateDidDoc) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeactivateDidDoc) MarshalToSizedBuffer

func (m *MsgDeactivateDidDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeactivateDidDoc) Normalize

func (msg *MsgDeactivateDidDoc) Normalize()

func (*MsgDeactivateDidDoc) ProtoMessage

func (*MsgDeactivateDidDoc) ProtoMessage()

func (*MsgDeactivateDidDoc) Reset

func (m *MsgDeactivateDidDoc) Reset()

func (*MsgDeactivateDidDoc) Route

func (msg *MsgDeactivateDidDoc) Route() string

func (*MsgDeactivateDidDoc) Size

func (m *MsgDeactivateDidDoc) Size() (n int)

func (*MsgDeactivateDidDoc) String

func (m *MsgDeactivateDidDoc) String() string

func (*MsgDeactivateDidDoc) Type

func (msg *MsgDeactivateDidDoc) Type() string

func (*MsgDeactivateDidDoc) Unmarshal

func (m *MsgDeactivateDidDoc) Unmarshal(dAtA []byte) error

func (MsgDeactivateDidDoc) Validate

func (msg MsgDeactivateDidDoc) Validate(allowedNamespaces []string) error

func (*MsgDeactivateDidDoc) ValidateBasic

func (msg *MsgDeactivateDidDoc) ValidateBasic() error

func (*MsgDeactivateDidDoc) XXX_DiscardUnknown

func (m *MsgDeactivateDidDoc) XXX_DiscardUnknown()

func (*MsgDeactivateDidDoc) XXX_Marshal

func (m *MsgDeactivateDidDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeactivateDidDoc) XXX_Merge

func (m *MsgDeactivateDidDoc) XXX_Merge(src proto.Message)

func (*MsgDeactivateDidDoc) XXX_Size

func (m *MsgDeactivateDidDoc) XXX_Size() int

func (*MsgDeactivateDidDoc) XXX_Unmarshal

func (m *MsgDeactivateDidDoc) XXX_Unmarshal(b []byte) error

type MsgDeactivateDidDocPayload

type MsgDeactivateDidDocPayload struct {
	Id        string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	VersionId string `protobuf:"bytes,2,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
}

func (*MsgDeactivateDidDocPayload) Descriptor

func (*MsgDeactivateDidDocPayload) Descriptor() ([]byte, []int)

func (*MsgDeactivateDidDocPayload) GetId

func (*MsgDeactivateDidDocPayload) GetSignBytes

func (msg *MsgDeactivateDidDocPayload) GetSignBytes() []byte

func (*MsgDeactivateDidDocPayload) GetVersionId

func (m *MsgDeactivateDidDocPayload) GetVersionId() string

func (*MsgDeactivateDidDocPayload) Marshal

func (m *MsgDeactivateDidDocPayload) Marshal() (dAtA []byte, err error)

func (*MsgDeactivateDidDocPayload) MarshalTo

func (m *MsgDeactivateDidDocPayload) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeactivateDidDocPayload) MarshalToSizedBuffer

func (m *MsgDeactivateDidDocPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeactivateDidDocPayload) Normalize

func (msg *MsgDeactivateDidDocPayload) Normalize()

func (*MsgDeactivateDidDocPayload) ProtoMessage

func (*MsgDeactivateDidDocPayload) ProtoMessage()

func (*MsgDeactivateDidDocPayload) Reset

func (m *MsgDeactivateDidDocPayload) Reset()

func (*MsgDeactivateDidDocPayload) Size

func (m *MsgDeactivateDidDocPayload) Size() (n int)

func (*MsgDeactivateDidDocPayload) String

func (m *MsgDeactivateDidDocPayload) String() string

func (*MsgDeactivateDidDocPayload) Unmarshal

func (m *MsgDeactivateDidDocPayload) Unmarshal(dAtA []byte) error

func (MsgDeactivateDidDocPayload) Validate

func (msg MsgDeactivateDidDocPayload) Validate(allowedNamespaces []string) error

func (*MsgDeactivateDidDocPayload) XXX_DiscardUnknown

func (m *MsgDeactivateDidDocPayload) XXX_DiscardUnknown()

func (*MsgDeactivateDidDocPayload) XXX_Marshal

func (m *MsgDeactivateDidDocPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeactivateDidDocPayload) XXX_Merge

func (m *MsgDeactivateDidDocPayload) XXX_Merge(src proto.Message)

func (*MsgDeactivateDidDocPayload) XXX_Size

func (m *MsgDeactivateDidDocPayload) XXX_Size() int

func (*MsgDeactivateDidDocPayload) XXX_Unmarshal

func (m *MsgDeactivateDidDocPayload) XXX_Unmarshal(b []byte) error

type MsgDeactivateDidDocResponse

type MsgDeactivateDidDocResponse struct {
	Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

func (*MsgDeactivateDidDocResponse) Descriptor

func (*MsgDeactivateDidDocResponse) Descriptor() ([]byte, []int)

func (*MsgDeactivateDidDocResponse) GetValue

func (*MsgDeactivateDidDocResponse) Marshal

func (m *MsgDeactivateDidDocResponse) Marshal() (dAtA []byte, err error)

func (*MsgDeactivateDidDocResponse) MarshalTo

func (m *MsgDeactivateDidDocResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgDeactivateDidDocResponse) MarshalToSizedBuffer

func (m *MsgDeactivateDidDocResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgDeactivateDidDocResponse) ProtoMessage

func (*MsgDeactivateDidDocResponse) ProtoMessage()

func (*MsgDeactivateDidDocResponse) Reset

func (m *MsgDeactivateDidDocResponse) Reset()

func (*MsgDeactivateDidDocResponse) Size

func (m *MsgDeactivateDidDocResponse) Size() (n int)

func (*MsgDeactivateDidDocResponse) String

func (m *MsgDeactivateDidDocResponse) String() string

func (*MsgDeactivateDidDocResponse) Unmarshal

func (m *MsgDeactivateDidDocResponse) Unmarshal(dAtA []byte) error

func (*MsgDeactivateDidDocResponse) XXX_DiscardUnknown

func (m *MsgDeactivateDidDocResponse) XXX_DiscardUnknown()

func (*MsgDeactivateDidDocResponse) XXX_Marshal

func (m *MsgDeactivateDidDocResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgDeactivateDidDocResponse) XXX_Merge

func (m *MsgDeactivateDidDocResponse) XXX_Merge(src proto.Message)

func (*MsgDeactivateDidDocResponse) XXX_Size

func (m *MsgDeactivateDidDocResponse) XXX_Size() int

func (*MsgDeactivateDidDocResponse) XXX_Unmarshal

func (m *MsgDeactivateDidDocResponse) XXX_Unmarshal(b []byte) error

type MsgServer

MsgServer is the server API for Msg service.

type MsgUpdateDidDoc

type MsgUpdateDidDoc struct {
	Payload    *MsgUpdateDidDocPayload `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
	Signatures []*SignInfo             `protobuf:"bytes,2,rep,name=signatures,proto3" json:"signatures,omitempty"`
}

func NewMsgUpdateDid

func NewMsgUpdateDid(payload *MsgUpdateDidDocPayload, signatures []*SignInfo) *MsgUpdateDidDoc

func (*MsgUpdateDidDoc) Descriptor

func (*MsgUpdateDidDoc) Descriptor() ([]byte, []int)

func (*MsgUpdateDidDoc) GetPayload

func (m *MsgUpdateDidDoc) GetPayload() *MsgUpdateDidDocPayload

func (*MsgUpdateDidDoc) GetSignBytes

func (msg *MsgUpdateDidDoc) GetSignBytes() []byte

func (*MsgUpdateDidDoc) GetSignatures

func (m *MsgUpdateDidDoc) GetSignatures() []*SignInfo

func (*MsgUpdateDidDoc) GetSigners

func (msg *MsgUpdateDidDoc) GetSigners() []sdk.AccAddress

func (*MsgUpdateDidDoc) Marshal

func (m *MsgUpdateDidDoc) Marshal() (dAtA []byte, err error)

func (*MsgUpdateDidDoc) MarshalTo

func (m *MsgUpdateDidDoc) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateDidDoc) MarshalToSizedBuffer

func (m *MsgUpdateDidDoc) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateDidDoc) Normalize

func (msg *MsgUpdateDidDoc) Normalize()

func (*MsgUpdateDidDoc) ProtoMessage

func (*MsgUpdateDidDoc) ProtoMessage()

func (*MsgUpdateDidDoc) Reset

func (m *MsgUpdateDidDoc) Reset()

func (*MsgUpdateDidDoc) Route

func (msg *MsgUpdateDidDoc) Route() string

func (*MsgUpdateDidDoc) Size

func (m *MsgUpdateDidDoc) Size() (n int)

func (*MsgUpdateDidDoc) String

func (m *MsgUpdateDidDoc) String() string

func (*MsgUpdateDidDoc) Type

func (msg *MsgUpdateDidDoc) Type() string

func (*MsgUpdateDidDoc) Unmarshal

func (m *MsgUpdateDidDoc) Unmarshal(dAtA []byte) error

func (MsgUpdateDidDoc) Validate

func (msg MsgUpdateDidDoc) Validate(allowedNamespaces []string) error

func (*MsgUpdateDidDoc) ValidateBasic

func (msg *MsgUpdateDidDoc) ValidateBasic() error

func (*MsgUpdateDidDoc) XXX_DiscardUnknown

func (m *MsgUpdateDidDoc) XXX_DiscardUnknown()

func (*MsgUpdateDidDoc) XXX_Marshal

func (m *MsgUpdateDidDoc) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateDidDoc) XXX_Merge

func (m *MsgUpdateDidDoc) XXX_Merge(src proto.Message)

func (*MsgUpdateDidDoc) XXX_Size

func (m *MsgUpdateDidDoc) XXX_Size() int

func (*MsgUpdateDidDoc) XXX_Unmarshal

func (m *MsgUpdateDidDoc) XXX_Unmarshal(b []byte) error

type MsgUpdateDidDocPayload

type MsgUpdateDidDocPayload struct {
	Context              []string              `protobuf:"bytes,1,rep,name=context,proto3" json:"context,omitempty"`
	Id                   string                `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
	Controller           []string              `protobuf:"bytes,3,rep,name=controller,proto3" json:"controller,omitempty"`
	VerificationMethod   []*VerificationMethod `protobuf:"bytes,4,rep,name=verification_method,json=verificationMethod,proto3" json:"verification_method,omitempty"`
	Authentication       []string              `protobuf:"bytes,5,rep,name=authentication,proto3" json:"authentication,omitempty"`
	AssertionMethod      []string              `protobuf:"bytes,6,rep,name=assertion_method,json=assertionMethod,proto3" json:"assertion_method,omitempty"`
	CapabilityInvocation []string              `protobuf:"bytes,7,rep,name=capability_invocation,json=capabilityInvocation,proto3" json:"capability_invocation,omitempty"`
	CapabilityDelegation []string              `protobuf:"bytes,8,rep,name=capability_delegation,json=capabilityDelegation,proto3" json:"capability_delegation,omitempty"`
	KeyAgreement         []string              `protobuf:"bytes,9,rep,name=key_agreement,json=keyAgreement,proto3" json:"key_agreement,omitempty"`
	AlsoKnownAs          []string              `protobuf:"bytes,10,rep,name=also_known_as,json=alsoKnownAs,proto3" json:"also_known_as,omitempty"`
	Service              []*Service            `protobuf:"bytes,11,rep,name=service,proto3" json:"service,omitempty"`
	VersionId            string                `protobuf:"bytes,12,opt,name=version_id,json=versionId,proto3" json:"version_id,omitempty"`
}

func (*MsgUpdateDidDocPayload) Descriptor

func (*MsgUpdateDidDocPayload) Descriptor() ([]byte, []int)

func (*MsgUpdateDidDocPayload) GetAlsoKnownAs

func (m *MsgUpdateDidDocPayload) GetAlsoKnownAs() []string

func (*MsgUpdateDidDocPayload) GetAssertionMethod

func (m *MsgUpdateDidDocPayload) GetAssertionMethod() []string

func (*MsgUpdateDidDocPayload) GetAuthentication

func (m *MsgUpdateDidDocPayload) GetAuthentication() []string

func (*MsgUpdateDidDocPayload) GetCapabilityDelegation

func (m *MsgUpdateDidDocPayload) GetCapabilityDelegation() []string

func (*MsgUpdateDidDocPayload) GetCapabilityInvocation

func (m *MsgUpdateDidDocPayload) GetCapabilityInvocation() []string

func (*MsgUpdateDidDocPayload) GetContext

func (m *MsgUpdateDidDocPayload) GetContext() []string

func (*MsgUpdateDidDocPayload) GetController

func (m *MsgUpdateDidDocPayload) GetController() []string

func (*MsgUpdateDidDocPayload) GetId

func (m *MsgUpdateDidDocPayload) GetId() string

func (*MsgUpdateDidDocPayload) GetKeyAgreement

func (m *MsgUpdateDidDocPayload) GetKeyAgreement() []string

func (*MsgUpdateDidDocPayload) GetService

func (m *MsgUpdateDidDocPayload) GetService() []*Service

func (*MsgUpdateDidDocPayload) GetSignBytes

func (msg *MsgUpdateDidDocPayload) GetSignBytes() []byte

func (*MsgUpdateDidDocPayload) GetVerificationMethod

func (m *MsgUpdateDidDocPayload) GetVerificationMethod() []*VerificationMethod

func (*MsgUpdateDidDocPayload) GetVersionId

func (m *MsgUpdateDidDocPayload) GetVersionId() string

func (*MsgUpdateDidDocPayload) Marshal

func (m *MsgUpdateDidDocPayload) Marshal() (dAtA []byte, err error)

func (*MsgUpdateDidDocPayload) MarshalTo

func (m *MsgUpdateDidDocPayload) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateDidDocPayload) MarshalToSizedBuffer

func (m *MsgUpdateDidDocPayload) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateDidDocPayload) Normalize

func (msg *MsgUpdateDidDocPayload) Normalize()

func (*MsgUpdateDidDocPayload) ProtoMessage

func (*MsgUpdateDidDocPayload) ProtoMessage()

func (*MsgUpdateDidDocPayload) Reset

func (m *MsgUpdateDidDocPayload) Reset()

func (*MsgUpdateDidDocPayload) Size

func (m *MsgUpdateDidDocPayload) Size() (n int)

func (*MsgUpdateDidDocPayload) String

func (m *MsgUpdateDidDocPayload) String() string

func (*MsgUpdateDidDocPayload) ToDidDoc

func (msg *MsgUpdateDidDocPayload) ToDidDoc() DidDoc

func (*MsgUpdateDidDocPayload) Unmarshal

func (m *MsgUpdateDidDocPayload) Unmarshal(dAtA []byte) error

func (MsgUpdateDidDocPayload) Validate

func (msg MsgUpdateDidDocPayload) Validate(allowedNamespaces []string) error

func (*MsgUpdateDidDocPayload) XXX_DiscardUnknown

func (m *MsgUpdateDidDocPayload) XXX_DiscardUnknown()

func (*MsgUpdateDidDocPayload) XXX_Marshal

func (m *MsgUpdateDidDocPayload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateDidDocPayload) XXX_Merge

func (m *MsgUpdateDidDocPayload) XXX_Merge(src proto.Message)

func (*MsgUpdateDidDocPayload) XXX_Size

func (m *MsgUpdateDidDocPayload) XXX_Size() int

func (*MsgUpdateDidDocPayload) XXX_Unmarshal

func (m *MsgUpdateDidDocPayload) XXX_Unmarshal(b []byte) error

type MsgUpdateDidDocResponse

type MsgUpdateDidDocResponse struct {
	Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

func (*MsgUpdateDidDocResponse) Descriptor

func (*MsgUpdateDidDocResponse) Descriptor() ([]byte, []int)

func (*MsgUpdateDidDocResponse) GetValue

func (*MsgUpdateDidDocResponse) Marshal

func (m *MsgUpdateDidDocResponse) Marshal() (dAtA []byte, err error)

func (*MsgUpdateDidDocResponse) MarshalTo

func (m *MsgUpdateDidDocResponse) MarshalTo(dAtA []byte) (int, error)

func (*MsgUpdateDidDocResponse) MarshalToSizedBuffer

func (m *MsgUpdateDidDocResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*MsgUpdateDidDocResponse) ProtoMessage

func (*MsgUpdateDidDocResponse) ProtoMessage()

func (*MsgUpdateDidDocResponse) Reset

func (m *MsgUpdateDidDocResponse) Reset()

func (*MsgUpdateDidDocResponse) Size

func (m *MsgUpdateDidDocResponse) Size() (n int)

func (*MsgUpdateDidDocResponse) String

func (m *MsgUpdateDidDocResponse) String() string

func (*MsgUpdateDidDocResponse) Unmarshal

func (m *MsgUpdateDidDocResponse) Unmarshal(dAtA []byte) error

func (*MsgUpdateDidDocResponse) XXX_DiscardUnknown

func (m *MsgUpdateDidDocResponse) XXX_DiscardUnknown()

func (*MsgUpdateDidDocResponse) XXX_Marshal

func (m *MsgUpdateDidDocResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*MsgUpdateDidDocResponse) XXX_Merge

func (m *MsgUpdateDidDocResponse) XXX_Merge(src proto.Message)

func (*MsgUpdateDidDocResponse) XXX_Size

func (m *MsgUpdateDidDocResponse) XXX_Size() int

func (*MsgUpdateDidDocResponse) XXX_Unmarshal

func (m *MsgUpdateDidDocResponse) XXX_Unmarshal(b []byte) error

type ParamSubspace

type ParamSubspace interface {
	Get(ctx sdk.Context, key []byte, ptr interface{})
	Set(ctx sdk.Context, key []byte, param interface{})
}

ParamSubspace defines the expected Subspace interface for parameters (noalias)

type QueryAllDidDocVersionsMetadataResponse added in v1.1.0

type QueryAllDidDocVersionsMetadataResponse struct {
	Versions []*Metadata `protobuf:"bytes,1,rep,name=versions,proto3" json:"versions,omitempty"`
}

func (*QueryAllDidDocVersionsMetadataResponse) Descriptor added in v1.1.0

func (*QueryAllDidDocVersionsMetadataResponse) Descriptor() ([]byte, []int)

func (*QueryAllDidDocVersionsMetadataResponse) GetVersions added in v1.1.0

func (*QueryAllDidDocVersionsMetadataResponse) Marshal added in v1.1.0

func (m *QueryAllDidDocVersionsMetadataResponse) Marshal() (dAtA []byte, err error)

func (*QueryAllDidDocVersionsMetadataResponse) MarshalTo added in v1.1.0

func (m *QueryAllDidDocVersionsMetadataResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryAllDidDocVersionsMetadataResponse) MarshalToSizedBuffer added in v1.1.0

func (m *QueryAllDidDocVersionsMetadataResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryAllDidDocVersionsMetadataResponse) ProtoMessage added in v1.1.0

func (*QueryAllDidDocVersionsMetadataResponse) Reset added in v1.1.0

func (*QueryAllDidDocVersionsMetadataResponse) Size added in v1.1.0

func (*QueryAllDidDocVersionsMetadataResponse) String added in v1.1.0

func (*QueryAllDidDocVersionsMetadataResponse) Unmarshal added in v1.1.0

func (m *QueryAllDidDocVersionsMetadataResponse) Unmarshal(dAtA []byte) error

func (*QueryAllDidDocVersionsMetadataResponse) XXX_DiscardUnknown added in v1.1.0

func (m *QueryAllDidDocVersionsMetadataResponse) XXX_DiscardUnknown()

func (*QueryAllDidDocVersionsMetadataResponse) XXX_Marshal added in v1.1.0

func (m *QueryAllDidDocVersionsMetadataResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryAllDidDocVersionsMetadataResponse) XXX_Merge added in v1.1.0

func (*QueryAllDidDocVersionsMetadataResponse) XXX_Size added in v1.1.0

func (*QueryAllDidDocVersionsMetadataResponse) XXX_Unmarshal added in v1.1.0

func (m *QueryAllDidDocVersionsMetadataResponse) XXX_Unmarshal(b []byte) error

type QueryClient

QueryClient is the client API for Query service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

func NewQueryClient

func NewQueryClient(cc grpc1.ClientConn) QueryClient

type QueryDidDocResponse added in v1.1.0

type QueryDidDocResponse struct {
	Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

func (*QueryDidDocResponse) Descriptor added in v1.1.0

func (*QueryDidDocResponse) Descriptor() ([]byte, []int)

func (*QueryDidDocResponse) GetValue added in v1.1.0

func (m *QueryDidDocResponse) GetValue() *DidDocWithMetadata

func (*QueryDidDocResponse) Marshal added in v1.1.0

func (m *QueryDidDocResponse) Marshal() (dAtA []byte, err error)

func (*QueryDidDocResponse) MarshalTo added in v1.1.0

func (m *QueryDidDocResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDidDocResponse) MarshalToSizedBuffer added in v1.1.0

func (m *QueryDidDocResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDidDocResponse) ProtoMessage added in v1.1.0

func (*QueryDidDocResponse) ProtoMessage()

func (*QueryDidDocResponse) Reset added in v1.1.0

func (m *QueryDidDocResponse) Reset()

func (*QueryDidDocResponse) Size added in v1.1.0

func (m *QueryDidDocResponse) Size() (n int)

func (*QueryDidDocResponse) String added in v1.1.0

func (m *QueryDidDocResponse) String() string

func (*QueryDidDocResponse) Unmarshal added in v1.1.0

func (m *QueryDidDocResponse) Unmarshal(dAtA []byte) error

func (*QueryDidDocResponse) XXX_DiscardUnknown added in v1.1.0

func (m *QueryDidDocResponse) XXX_DiscardUnknown()

func (*QueryDidDocResponse) XXX_Marshal added in v1.1.0

func (m *QueryDidDocResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDidDocResponse) XXX_Merge added in v1.1.0

func (m *QueryDidDocResponse) XXX_Merge(src proto.Message)

func (*QueryDidDocResponse) XXX_Size added in v1.1.0

func (m *QueryDidDocResponse) XXX_Size() int

func (*QueryDidDocResponse) XXX_Unmarshal added in v1.1.0

func (m *QueryDidDocResponse) XXX_Unmarshal(b []byte) error

type QueryDidDocVersionResponse added in v1.1.0

type QueryDidDocVersionResponse struct {
	Value *DidDocWithMetadata `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
}

func (*QueryDidDocVersionResponse) Descriptor added in v1.1.0

func (*QueryDidDocVersionResponse) Descriptor() ([]byte, []int)

func (*QueryDidDocVersionResponse) GetValue added in v1.1.0

func (*QueryDidDocVersionResponse) Marshal added in v1.1.0

func (m *QueryDidDocVersionResponse) Marshal() (dAtA []byte, err error)

func (*QueryDidDocVersionResponse) MarshalTo added in v1.1.0

func (m *QueryDidDocVersionResponse) MarshalTo(dAtA []byte) (int, error)

func (*QueryDidDocVersionResponse) MarshalToSizedBuffer added in v1.1.0

func (m *QueryDidDocVersionResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryDidDocVersionResponse) ProtoMessage added in v1.1.0

func (*QueryDidDocVersionResponse) ProtoMessage()

func (*QueryDidDocVersionResponse) Reset added in v1.1.0

func (m *QueryDidDocVersionResponse) Reset()

func (*QueryDidDocVersionResponse) Size added in v1.1.0

func (m *QueryDidDocVersionResponse) Size() (n int)

func (*QueryDidDocVersionResponse) String added in v1.1.0

func (m *QueryDidDocVersionResponse) String() string

func (*QueryDidDocVersionResponse) Unmarshal added in v1.1.0

func (m *QueryDidDocVersionResponse) Unmarshal(dAtA []byte) error

func (*QueryDidDocVersionResponse) XXX_DiscardUnknown added in v1.1.0

func (m *QueryDidDocVersionResponse) XXX_DiscardUnknown()

func (*QueryDidDocVersionResponse) XXX_Marshal added in v1.1.0

func (m *QueryDidDocVersionResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryDidDocVersionResponse) XXX_Merge added in v1.1.0

func (m *QueryDidDocVersionResponse) XXX_Merge(src proto.Message)

func (*QueryDidDocVersionResponse) XXX_Size added in v1.1.0

func (m *QueryDidDocVersionResponse) XXX_Size() int

func (*QueryDidDocVersionResponse) XXX_Unmarshal added in v1.1.0

func (m *QueryDidDocVersionResponse) XXX_Unmarshal(b []byte) error

type QueryGetAllDidDocVersionsMetadataRequest

type QueryGetAllDidDocVersionsMetadataRequest struct {
	// is a DID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*QueryGetAllDidDocVersionsMetadataRequest) Descriptor

func (*QueryGetAllDidDocVersionsMetadataRequest) Descriptor() ([]byte, []int)

func (*QueryGetAllDidDocVersionsMetadataRequest) GetId

func (*QueryGetAllDidDocVersionsMetadataRequest) Marshal

func (m *QueryGetAllDidDocVersionsMetadataRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetAllDidDocVersionsMetadataRequest) MarshalTo

func (m *QueryGetAllDidDocVersionsMetadataRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetAllDidDocVersionsMetadataRequest) MarshalToSizedBuffer

func (m *QueryGetAllDidDocVersionsMetadataRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetAllDidDocVersionsMetadataRequest) Normalize

func (query *QueryGetAllDidDocVersionsMetadataRequest) Normalize()

func (*QueryGetAllDidDocVersionsMetadataRequest) ProtoMessage

func (*QueryGetAllDidDocVersionsMetadataRequest) Reset

func (*QueryGetAllDidDocVersionsMetadataRequest) Size

func (*QueryGetAllDidDocVersionsMetadataRequest) String

func (*QueryGetAllDidDocVersionsMetadataRequest) Unmarshal

func (*QueryGetAllDidDocVersionsMetadataRequest) XXX_DiscardUnknown

func (m *QueryGetAllDidDocVersionsMetadataRequest) XXX_DiscardUnknown()

func (*QueryGetAllDidDocVersionsMetadataRequest) XXX_Marshal

func (m *QueryGetAllDidDocVersionsMetadataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetAllDidDocVersionsMetadataRequest) XXX_Merge

func (*QueryGetAllDidDocVersionsMetadataRequest) XXX_Size

func (*QueryGetAllDidDocVersionsMetadataRequest) XXX_Unmarshal

func (m *QueryGetAllDidDocVersionsMetadataRequest) XXX_Unmarshal(b []byte) error

type QueryGetDidDocRequest

type QueryGetDidDocRequest struct {
	// is a DID to be fetched
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
}

func (*QueryGetDidDocRequest) Descriptor

func (*QueryGetDidDocRequest) Descriptor() ([]byte, []int)

func (*QueryGetDidDocRequest) GetId

func (m *QueryGetDidDocRequest) GetId() string

func (*QueryGetDidDocRequest) Marshal

func (m *QueryGetDidDocRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetDidDocRequest) MarshalTo

func (m *QueryGetDidDocRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetDidDocRequest) MarshalToSizedBuffer

func (m *QueryGetDidDocRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetDidDocRequest) Normalize

func (query *QueryGetDidDocRequest) Normalize()

func (*QueryGetDidDocRequest) ProtoMessage

func (*QueryGetDidDocRequest) ProtoMessage()

func (*QueryGetDidDocRequest) Reset

func (m *QueryGetDidDocRequest) Reset()

func (*QueryGetDidDocRequest) Size

func (m *QueryGetDidDocRequest) Size() (n int)

func (*QueryGetDidDocRequest) String

func (m *QueryGetDidDocRequest) String() string

func (*QueryGetDidDocRequest) Unmarshal

func (m *QueryGetDidDocRequest) Unmarshal(dAtA []byte) error

func (*QueryGetDidDocRequest) XXX_DiscardUnknown

func (m *QueryGetDidDocRequest) XXX_DiscardUnknown()

func (*QueryGetDidDocRequest) XXX_Marshal

func (m *QueryGetDidDocRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetDidDocRequest) XXX_Merge

func (m *QueryGetDidDocRequest) XXX_Merge(src proto.Message)

func (*QueryGetDidDocRequest) XXX_Size

func (m *QueryGetDidDocRequest) XXX_Size() int

func (*QueryGetDidDocRequest) XXX_Unmarshal

func (m *QueryGetDidDocRequest) XXX_Unmarshal(b []byte) error

type QueryGetDidDocVersionRequest

type QueryGetDidDocVersionRequest struct {
	// is a DID
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// is a unique value that maps DID Doc state at some point
	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
}

func (*QueryGetDidDocVersionRequest) Descriptor

func (*QueryGetDidDocVersionRequest) Descriptor() ([]byte, []int)

func (*QueryGetDidDocVersionRequest) GetId

func (*QueryGetDidDocVersionRequest) GetVersion

func (m *QueryGetDidDocVersionRequest) GetVersion() string

func (*QueryGetDidDocVersionRequest) Marshal

func (m *QueryGetDidDocVersionRequest) Marshal() (dAtA []byte, err error)

func (*QueryGetDidDocVersionRequest) MarshalTo

func (m *QueryGetDidDocVersionRequest) MarshalTo(dAtA []byte) (int, error)

func (*QueryGetDidDocVersionRequest) MarshalToSizedBuffer

func (m *QueryGetDidDocVersionRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*QueryGetDidDocVersionRequest) Normalize

func (query *QueryGetDidDocVersionRequest) Normalize()

func (*QueryGetDidDocVersionRequest) ProtoMessage

func (*QueryGetDidDocVersionRequest) ProtoMessage()

func (*QueryGetDidDocVersionRequest) Reset

func (m *QueryGetDidDocVersionRequest) Reset()

func (*QueryGetDidDocVersionRequest) Size

func (m *QueryGetDidDocVersionRequest) Size() (n int)

func (*QueryGetDidDocVersionRequest) String

func (*QueryGetDidDocVersionRequest) Unmarshal

func (m *QueryGetDidDocVersionRequest) Unmarshal(dAtA []byte) error

func (*QueryGetDidDocVersionRequest) XXX_DiscardUnknown

func (m *QueryGetDidDocVersionRequest) XXX_DiscardUnknown()

func (*QueryGetDidDocVersionRequest) XXX_Marshal

func (m *QueryGetDidDocVersionRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*QueryGetDidDocVersionRequest) XXX_Merge

func (m *QueryGetDidDocVersionRequest) XXX_Merge(src proto.Message)

func (*QueryGetDidDocVersionRequest) XXX_Size

func (m *QueryGetDidDocVersionRequest) XXX_Size() int

func (*QueryGetDidDocVersionRequest) XXX_Unmarshal

func (m *QueryGetDidDocVersionRequest) XXX_Unmarshal(b []byte) error

type QueryServer

QueryServer is the server API for Query service.

type Service

type Service struct {
	Id              string   `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	ServiceType     string   `protobuf:"bytes,2,opt,name=service_type,json=serviceType,proto3" json:"service_type,omitempty"`
	ServiceEndpoint []string `protobuf:"bytes,3,rep,name=service_endpoint,json=serviceEndpoint,proto3" json:"service_endpoint,omitempty"`
}

func NewService

func NewService(id string, serviceType string, serviceEndpoint []string) *Service

func (*Service) Descriptor

func (*Service) Descriptor() ([]byte, []int)

func (*Service) GetId

func (m *Service) GetId() string

func (*Service) GetServiceEndpoint

func (m *Service) GetServiceEndpoint() []string

func (*Service) GetServiceType added in v1.1.0

func (m *Service) GetServiceType() string

func (*Service) Marshal

func (m *Service) Marshal() (dAtA []byte, err error)

func (*Service) MarshalTo

func (m *Service) MarshalTo(dAtA []byte) (int, error)

func (*Service) MarshalToSizedBuffer

func (m *Service) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Service) ProtoMessage

func (*Service) ProtoMessage()

func (*Service) ReplaceDids

func (s *Service) ReplaceDids(old, new string)

ReplaceDids replaces ids in all fields

func (*Service) Reset

func (m *Service) Reset()

func (*Service) Size

func (m *Service) Size() (n int)

func (*Service) String

func (m *Service) String() string

func (*Service) Unmarshal

func (m *Service) Unmarshal(dAtA []byte) error

func (Service) Validate

func (s Service) Validate(baseDid string, allowedNamespaces []string) error

func (*Service) XXX_DiscardUnknown

func (m *Service) XXX_DiscardUnknown()

func (*Service) XXX_Marshal

func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Service) XXX_Merge

func (m *Service) XXX_Merge(src proto.Message)

func (*Service) XXX_Size

func (m *Service) XXX_Size() int

func (*Service) XXX_Unmarshal

func (m *Service) XXX_Unmarshal(b []byte) error

type SignInfo

type SignInfo struct {
	VerificationMethodId string `protobuf:"bytes,1,opt,name=verification_method_id,json=verificationMethodId,proto3" json:"verification_method_id,omitempty"`
	Signature            []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
}

func FindSignInfoBySigner

func FindSignInfoBySigner(infos []*SignInfo, signer string) (info SignInfo, found bool)

FindSignInfoBySigner returns the first sign info that corresponds to the provided signer's did

func FindSignInfosBySigner

func FindSignInfosBySigner(infos []*SignInfo, signer string) []SignInfo

FindSignInfosBySigner returns the sign infos that corresponds to the provided signer's did

func NewSignInfo

func NewSignInfo(verificationMethodID string, signature []byte) *SignInfo

func (*SignInfo) Descriptor

func (*SignInfo) Descriptor() ([]byte, []int)

func (*SignInfo) GetSignature

func (m *SignInfo) GetSignature() []byte

func (*SignInfo) GetVerificationMethodId

func (m *SignInfo) GetVerificationMethodId() string

func (*SignInfo) Marshal

func (m *SignInfo) Marshal() (dAtA []byte, err error)

func (*SignInfo) MarshalTo

func (m *SignInfo) MarshalTo(dAtA []byte) (int, error)

func (*SignInfo) MarshalToSizedBuffer

func (m *SignInfo) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*SignInfo) Normalize

func (si *SignInfo) Normalize()

func (*SignInfo) ProtoMessage

func (*SignInfo) ProtoMessage()

func (*SignInfo) Reset

func (m *SignInfo) Reset()

func (*SignInfo) Size

func (m *SignInfo) Size() (n int)

func (*SignInfo) String

func (m *SignInfo) String() string

func (*SignInfo) Unmarshal

func (m *SignInfo) Unmarshal(dAtA []byte) error

func (SignInfo) Validate

func (si SignInfo) Validate(allowedNamespaces []string) error

func (*SignInfo) XXX_DiscardUnknown

func (m *SignInfo) XXX_DiscardUnknown()

func (*SignInfo) XXX_Marshal

func (m *SignInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*SignInfo) XXX_Merge

func (m *SignInfo) XXX_Merge(src proto.Message)

func (*SignInfo) XXX_Size

func (m *SignInfo) XXX_Size() int

func (*SignInfo) XXX_Unmarshal

func (m *SignInfo) XXX_Unmarshal(b []byte) error

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) CreateDidDoc

func (*UnimplementedMsgServer) DeactivateDidDoc

func (*UnimplementedMsgServer) UpdateDidDoc

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) DidDoc

func (*UnimplementedQueryServer) DidDocVersion

type ValidationType

type ValidationType int
const (
	Optional ValidationType = iota
	Required ValidationType = iota
	Empty    ValidationType = iota
)

type VerificationMethod

type VerificationMethod struct {
	Id                     string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	VerificationMethodType string `` /* 129-byte string literal not displayed */
	Controller             string `protobuf:"bytes,3,opt,name=controller,proto3" json:"controller,omitempty"`
	VerificationMaterial   string `protobuf:"bytes,4,opt,name=verification_material,json=verificationMaterial,proto3" json:"verification_material,omitempty"`
}

func FindVerificationMethod

func FindVerificationMethod(vms []VerificationMethod, id string) (VerificationMethod, bool)

func NewVerificationMethod

func NewVerificationMethod(id string, vmType string, controller string, verificationMaterial string) *VerificationMethod

func (*VerificationMethod) Descriptor

func (*VerificationMethod) Descriptor() ([]byte, []int)

func (*VerificationMethod) GetController

func (m *VerificationMethod) GetController() string

func (*VerificationMethod) GetId

func (m *VerificationMethod) GetId() string

func (*VerificationMethod) GetVerificationMaterial

func (m *VerificationMethod) GetVerificationMaterial() string

func (*VerificationMethod) GetVerificationMethodType added in v1.1.0

func (m *VerificationMethod) GetVerificationMethodType() string

func (*VerificationMethod) Marshal

func (m *VerificationMethod) Marshal() (dAtA []byte, err error)

func (*VerificationMethod) MarshalTo

func (m *VerificationMethod) MarshalTo(dAtA []byte) (int, error)

func (*VerificationMethod) MarshalToSizedBuffer

func (m *VerificationMethod) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*VerificationMethod) ProtoMessage

func (*VerificationMethod) ProtoMessage()

func (*VerificationMethod) ReplaceDids

func (vm *VerificationMethod) ReplaceDids(old, new string)

ReplaceDids replaces ids in all fields

func (*VerificationMethod) Reset

func (m *VerificationMethod) Reset()

func (*VerificationMethod) Size

func (m *VerificationMethod) Size() (n int)

func (*VerificationMethod) String

func (m *VerificationMethod) String() string

func (*VerificationMethod) Unmarshal

func (m *VerificationMethod) Unmarshal(dAtA []byte) error

func (VerificationMethod) Validate

func (vm VerificationMethod) Validate(baseDid string, allowedNamespaces []string) error

Validation

func (*VerificationMethod) XXX_DiscardUnknown

func (m *VerificationMethod) XXX_DiscardUnknown()

func (*VerificationMethod) XXX_Marshal

func (m *VerificationMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*VerificationMethod) XXX_Merge

func (m *VerificationMethod) XXX_Merge(src proto.Message)

func (*VerificationMethod) XXX_Size

func (m *VerificationMethod) XXX_Size() int

func (*VerificationMethod) XXX_Unmarshal

func (m *VerificationMethod) XXX_Unmarshal(b []byte) error

Directories

Path Synopsis
Package v1 is a reverse proxy.
Package v1 is a reverse proxy.

Jump to

Keyboard shortcuts

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