types

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2022 License: Apache-2.0 Imports: 30 Imported by: 0

Documentation

Overview

Package types is a reverse proxy.

It translates gRPC into RESTful JSON APIs.

Index

Constants

View Source
const (
	EventTypeAddDidDoc     = "add_did_doc"
	EventTypeAddCredential = "add_credential"

	AttributeKeyDid          = "did"
	AttributeKeyPubKey       = "pub_key"
	AttributeKeyCredType     = "cred_type"
	AttributeKeyIssuer       = "issuer"
	AttributeKeyIssued       = "issued"
	AttributeKeyClaimID      = "claim"
	AttributeKeyKYCValidated = "kyc_validated"
	AttributeValueCategory   = ModuleName
)
View Source
const (
	ModuleName   = "did"
	StoreKey     = ModuleName
	RouterKey    = ModuleName
	QuerierRoute = ModuleName
)
View Source
const (
	TypeMsgAddDid        = "add-did"
	TypeMsgAddCredential = "add-credential"
)
View Source
const (
	DefaultCodespace = ModuleName
)

Variables

View Source
var (
	ErrInvalidLengthDid        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowDid          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupDid = fmt.Errorf("proto: unexpected end of group")
)
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 (
	ErrInvalidDid         = sdkerrors.Register(DefaultCodespace, 2, "invalid did")
	ErrInvalidPubKey      = sdkerrors.Register(DefaultCodespace, 3, "invalid pubKey")
	ErrDidPubKeyMismatch  = sdkerrors.Register(DefaultCodespace, 4, "did pubKey mismatch")
	ErrInvalidIssuer      = sdkerrors.Register(DefaultCodespace, 5, "invalid issuer")
	ErrInvalidCredentials = sdkerrors.Register(DefaultCodespace, 6, "invalid credentials")
	ErrInvalidClaimId     = sdkerrors.Register(DefaultCodespace, 7, "invalid claim ID")
)
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 (
	ValidDid      = regexp.MustCompile(`^did:(ixo:|sov:)([a-zA-Z0-9]){21,22}([/][a-zA-Z0-9:]+|)$`)
	ValidPubKey   = regexp.MustCompile(`^[123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ]{43,44}$`)
	IsValidDid    = ValidDid.MatchString
	IsValidPubKey = ValidPubKey.MatchString
)
View Source
var DidKey = []byte{0x01}
View Source
var (
	EmptyDid = ""
)
View Source
var (

	// ModuleCdc references the global x/did module codec. Note, the codec should
	// ONLY be used in certain instances of tests and for JSON encoding as Amino is
	// still used for that purpose.
	//
	// The actual codec used for serialization should be provided to x/did and
	// defined at the application level.
	ModuleCdc = codec.NewAminoCodec(amino)
)
View Source
var ValidDidDoc = BaseDidDoc{
	Did:         "FrNMgb6xmPoVfWoFk5zDGn",
	PubKey:      "96UYka2KZEw3nNb58GfP48wPeBUjPrUFrM4AnFhoBzqx",
	Credentials: []*DidCredential{},
}

Functions

func GetDidPrefixKey

func GetDidPrefixKey(did exported.Did) []byte

func RegisterInterfaces

func RegisterInterfaces(registry types.InterfaceRegistry)

func RegisterLegacyAminoCodec

func RegisterLegacyAminoCodec(cdc *codec.LegacyAmino)

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 (such as grpc.SendHeader, etc) to stop working. Consider using RegisterQueryHandlerFromEndpoint instead.

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

func UnmarshalIxoDid

func UnmarshalIxoDid(jsonIxoDid string) (exported.IxoDid, error)

func ValidateGenesis

func ValidateGenesis(data *GenesisState) error

ValidateGenesis performs no inspection

Types

type BaseDidDoc

type BaseDidDoc struct {
	Did         string           `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty" yaml:"did"`
	PubKey      string           `protobuf:"bytes,2,opt,name=pub_key,json=pubKey,proto3" json:"pubKey" yaml:"pubKey"`
	Credentials []*DidCredential `protobuf:"bytes,3,rep,name=credentials,proto3" json:"credentials,omitempty" yaml:"credentials"`
}

func NewBaseDidDoc

func NewBaseDidDoc(did exported.Did, pubKey string) BaseDidDoc

func (*BaseDidDoc) AddCredential

func (dd *BaseDidDoc) AddCredential(cred *DidCredential)

func (BaseDidDoc) Address

func (dd BaseDidDoc) Address() sdk.AccAddress

func (*BaseDidDoc) Descriptor

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

func (BaseDidDoc) GetCredentials

func (dd BaseDidDoc) GetCredentials() []DidCredential

func (BaseDidDoc) GetDid

func (dd BaseDidDoc) GetDid() exported.Did

func (BaseDidDoc) GetPubKey

func (dd BaseDidDoc) GetPubKey() string

func (*BaseDidDoc) Marshal

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

func (*BaseDidDoc) MarshalTo

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

func (*BaseDidDoc) MarshalToSizedBuffer

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

func (BaseDidDoc) MarshalYAML

func (dd BaseDidDoc) MarshalYAML() (interface{}, error)

func (*BaseDidDoc) ProtoMessage

func (*BaseDidDoc) ProtoMessage()

func (*BaseDidDoc) Reset

func (m *BaseDidDoc) Reset()

func (*BaseDidDoc) SetDid

func (dd *BaseDidDoc) SetDid(did exported.Did) error

func (*BaseDidDoc) SetPubKey

func (dd *BaseDidDoc) SetPubKey(pubKey string) error

func (*BaseDidDoc) Size

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

func (BaseDidDoc) String

func (dd BaseDidDoc) String() string

func (*BaseDidDoc) Unmarshal

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

func (*BaseDidDoc) XXX_DiscardUnknown

func (m *BaseDidDoc) XXX_DiscardUnknown()

func (*BaseDidDoc) XXX_Marshal

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

func (*BaseDidDoc) XXX_Merge

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

func (*BaseDidDoc) XXX_Size

func (m *BaseDidDoc) XXX_Size() int

func (*BaseDidDoc) XXX_Unmarshal

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

type Claim

type Claim struct {
	Id           string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id"`
	KYCValidated bool   `protobuf:"varint,2,opt,name=KYC_validated,json=KYCValidated,proto3" json:"KYCValidated" yaml:"KYCValidated"`
}

func (*Claim) Descriptor

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

func (*Claim) GetId

func (m *Claim) GetId() string

func (*Claim) GetKYCValidated

func (m *Claim) GetKYCValidated() bool

func (*Claim) Marshal

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

func (*Claim) MarshalTo

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

func (*Claim) MarshalToSizedBuffer

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

func (*Claim) ProtoMessage

func (*Claim) ProtoMessage()

func (*Claim) Reset

func (m *Claim) Reset()

func (*Claim) Size

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

func (*Claim) String

func (m *Claim) String() string

func (*Claim) Unmarshal

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

func (*Claim) XXX_DiscardUnknown

func (m *Claim) XXX_DiscardUnknown()

func (*Claim) XXX_Marshal

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

func (*Claim) XXX_Merge

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

func (*Claim) XXX_Size

func (m *Claim) XXX_Size() int

func (*Claim) XXX_Unmarshal

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

type DidCredential

type DidCredential struct {
	CredType []string `protobuf:"bytes,1,rep,name=cred_type,json=credType,proto3" json:"type" yaml:"type"`
	Issuer   string   `protobuf:"bytes,2,opt,name=issuer,proto3" json:"issuer,omitempty" yaml:"issuer"`
	Issued   string   `protobuf:"bytes,3,opt,name=issued,proto3" json:"issued,omitempty" yaml:"issued"`
	Claim    *Claim   `protobuf:"bytes,4,opt,name=claim,proto3" json:"claim,omitempty" yaml:"claim"`
}

func (*DidCredential) Descriptor

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

func (*DidCredential) GetClaim

func (m *DidCredential) GetClaim() *Claim

func (*DidCredential) GetCredType

func (m *DidCredential) GetCredType() []string

func (*DidCredential) GetIssued

func (m *DidCredential) GetIssued() string

func (*DidCredential) GetIssuer

func (m *DidCredential) GetIssuer() string

func (*DidCredential) Marshal

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

func (*DidCredential) MarshalTo

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

func (*DidCredential) MarshalToSizedBuffer

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

func (*DidCredential) ProtoMessage

func (*DidCredential) ProtoMessage()

func (*DidCredential) Reset

func (m *DidCredential) Reset()

func (*DidCredential) Size

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

func (*DidCredential) String

func (m *DidCredential) String() string

func (*DidCredential) Unmarshal

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

func (*DidCredential) XXX_DiscardUnknown

func (m *DidCredential) XXX_DiscardUnknown()

func (*DidCredential) XXX_Marshal

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

func (*DidCredential) XXX_Merge

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

func (*DidCredential) XXX_Size

func (m *DidCredential) XXX_Size() int

func (*DidCredential) XXX_Unmarshal

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

type GenesisState

type GenesisState struct {
	DidDocs []*types.Any `protobuf:"bytes,1,rep,name=did_docs,json=didDocs,proto3" json:"did_docs,omitempty" yaml:"did_docs"`
}

func DefaultGenesisState

func DefaultGenesisState() *GenesisState

DefaultGenesisState - Return a default genesis state

func NewGenesisState

func NewGenesisState(dd []exported.DidDoc) *GenesisState

func (*GenesisState) Descriptor

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

func (*GenesisState) GetDidDocs

func (m *GenesisState) GetDidDocs() []*types.Any

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) UnpackInterfaces

func (data GenesisState) UnpackInterfaces(unpacker types.AnyUnpacker) error

UnpackInterfaces implements UnpackInterfacesMessage.UnpackInterfaces

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 IxoDid

type IxoDid struct {
	Did                 string  `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty" yaml:"did"`
	VerifyKey           string  `protobuf:"bytes,2,opt,name=verify_key,json=verifyKey,proto3" json:"verifyKey" yaml:"verifyKey"`
	EncryptionPublicKey string  `` /* 135-byte string literal not displayed */
	Secret              *Secret `protobuf:"bytes,4,opt,name=secret,proto3" json:"secret,omitempty" yaml:"secret"`
}

func (*IxoDid) Descriptor

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

func (*IxoDid) GetDid

func (m *IxoDid) GetDid() string

func (*IxoDid) GetEncryptionPublicKey

func (m *IxoDid) GetEncryptionPublicKey() string

func (*IxoDid) GetSecret

func (m *IxoDid) GetSecret() *Secret

func (*IxoDid) GetVerifyKey

func (m *IxoDid) GetVerifyKey() string

func (*IxoDid) Marshal

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

func (*IxoDid) MarshalTo

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

func (*IxoDid) MarshalToSizedBuffer

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

func (*IxoDid) ProtoMessage

func (*IxoDid) ProtoMessage()

func (*IxoDid) Reset

func (m *IxoDid) Reset()

func (*IxoDid) Size

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

func (*IxoDid) String

func (m *IxoDid) String() string

func (*IxoDid) Unmarshal

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

func (*IxoDid) XXX_DiscardUnknown

func (m *IxoDid) XXX_DiscardUnknown()

func (*IxoDid) XXX_Marshal

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

func (*IxoDid) XXX_Merge

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

func (*IxoDid) XXX_Size

func (m *IxoDid) XXX_Size() int

func (*IxoDid) XXX_Unmarshal

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

type MsgAddCredential

type MsgAddCredential struct {
	DidCredential DidCredential `protobuf:"bytes,1,opt,name=did_credential,json=didCredential,proto3" json:"credential" yaml:"credential"`
}

func NewMsgAddCredential

func NewMsgAddCredential(did string, credType []string, issuer string, issued string) *MsgAddCredential

func (*MsgAddCredential) Descriptor

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

func (*MsgAddCredential) GetDidCredential

func (m *MsgAddCredential) GetDidCredential() DidCredential

func (MsgAddCredential) GetSignBytes

func (msg MsgAddCredential) GetSignBytes() []byte

func (MsgAddCredential) GetSignerDid

func (msg MsgAddCredential) GetSignerDid() exported.Did

func (MsgAddCredential) GetSigners

func (msg MsgAddCredential) GetSigners() []sdk.AccAddress

func (*MsgAddCredential) Marshal

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

func (*MsgAddCredential) MarshalTo

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

func (*MsgAddCredential) MarshalToSizedBuffer

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

func (*MsgAddCredential) ProtoMessage

func (*MsgAddCredential) ProtoMessage()

func (*MsgAddCredential) Reset

func (m *MsgAddCredential) Reset()

func (MsgAddCredential) Route

func (msg MsgAddCredential) Route() string

func (*MsgAddCredential) Size

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

func (*MsgAddCredential) String

func (m *MsgAddCredential) String() string

func (MsgAddCredential) Type

func (msg MsgAddCredential) Type() string

func (*MsgAddCredential) Unmarshal

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

func (MsgAddCredential) ValidateBasic

func (msg MsgAddCredential) ValidateBasic() error

func (*MsgAddCredential) XXX_DiscardUnknown

func (m *MsgAddCredential) XXX_DiscardUnknown()

func (*MsgAddCredential) XXX_Marshal

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

func (*MsgAddCredential) XXX_Merge

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

func (*MsgAddCredential) XXX_Size

func (m *MsgAddCredential) XXX_Size() int

func (*MsgAddCredential) XXX_Unmarshal

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

type MsgAddCredentialResponse

type MsgAddCredentialResponse struct {
}

func (*MsgAddCredentialResponse) Descriptor

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

func (*MsgAddCredentialResponse) Marshal

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

func (*MsgAddCredentialResponse) MarshalTo

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

func (*MsgAddCredentialResponse) MarshalToSizedBuffer

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

func (*MsgAddCredentialResponse) ProtoMessage

func (*MsgAddCredentialResponse) ProtoMessage()

func (*MsgAddCredentialResponse) Reset

func (m *MsgAddCredentialResponse) Reset()

func (*MsgAddCredentialResponse) Size

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

func (*MsgAddCredentialResponse) String

func (m *MsgAddCredentialResponse) String() string

func (*MsgAddCredentialResponse) Unmarshal

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

func (*MsgAddCredentialResponse) XXX_DiscardUnknown

func (m *MsgAddCredentialResponse) XXX_DiscardUnknown()

func (*MsgAddCredentialResponse) XXX_Marshal

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

func (*MsgAddCredentialResponse) XXX_Merge

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

func (*MsgAddCredentialResponse) XXX_Size

func (m *MsgAddCredentialResponse) XXX_Size() int

func (*MsgAddCredentialResponse) XXX_Unmarshal

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

type MsgAddDid

type MsgAddDid struct {
	Did    string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty" json:"did" yaml:"did"`
	PubKey string `protobuf:"bytes,2,opt,name=pubKey,proto3" json:"pubKey,omitempty" json:"pubKey" yaml:"pubKey"`
}

func NewMsgAddDid

func NewMsgAddDid(did string, publicKey string) *MsgAddDid

func (*MsgAddDid) Descriptor

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

func (*MsgAddDid) GetDid

func (m *MsgAddDid) GetDid() string

func (*MsgAddDid) GetPubKey

func (m *MsgAddDid) GetPubKey() string

func (MsgAddDid) GetSignBytes

func (msg MsgAddDid) GetSignBytes() []byte

func (MsgAddDid) GetSignerDid

func (msg MsgAddDid) GetSignerDid() exported.Did

func (MsgAddDid) GetSigners

func (msg MsgAddDid) GetSigners() []sdk.AccAddress

func (*MsgAddDid) Marshal

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

func (*MsgAddDid) MarshalTo

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

func (*MsgAddDid) MarshalToSizedBuffer

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

func (*MsgAddDid) ProtoMessage

func (*MsgAddDid) ProtoMessage()

func (*MsgAddDid) Reset

func (m *MsgAddDid) Reset()

func (MsgAddDid) Route

func (msg MsgAddDid) Route() string

func (*MsgAddDid) Size

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

func (*MsgAddDid) String

func (m *MsgAddDid) String() string

func (MsgAddDid) Type

func (msg MsgAddDid) Type() string

func (*MsgAddDid) Unmarshal

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

func (MsgAddDid) ValidateBasic

func (msg MsgAddDid) ValidateBasic() error

func (*MsgAddDid) XXX_DiscardUnknown

func (m *MsgAddDid) XXX_DiscardUnknown()

func (*MsgAddDid) XXX_Marshal

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

func (*MsgAddDid) XXX_Merge

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

func (*MsgAddDid) XXX_Size

func (m *MsgAddDid) XXX_Size() int

func (*MsgAddDid) XXX_Unmarshal

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

type MsgAddDidResponse

type MsgAddDidResponse struct {
}

func (*MsgAddDidResponse) Descriptor

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

func (*MsgAddDidResponse) Marshal

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

func (*MsgAddDidResponse) MarshalTo

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

func (*MsgAddDidResponse) MarshalToSizedBuffer

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

func (*MsgAddDidResponse) ProtoMessage

func (*MsgAddDidResponse) ProtoMessage()

func (*MsgAddDidResponse) Reset

func (m *MsgAddDidResponse) Reset()

func (*MsgAddDidResponse) Size

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

func (*MsgAddDidResponse) String

func (m *MsgAddDidResponse) String() string

func (*MsgAddDidResponse) Unmarshal

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

func (*MsgAddDidResponse) XXX_DiscardUnknown

func (m *MsgAddDidResponse) XXX_DiscardUnknown()

func (*MsgAddDidResponse) XXX_Marshal

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

func (*MsgAddDidResponse) XXX_Merge

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

func (*MsgAddDidResponse) XXX_Size

func (m *MsgAddDidResponse) XXX_Size() int

func (*MsgAddDidResponse) XXX_Unmarshal

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

type MsgClient

type MsgClient interface {
	AddDid(ctx context.Context, in *MsgAddDid, opts ...grpc.CallOption) (*MsgAddDidResponse, error)
	AddCredential(ctx context.Context, in *MsgAddCredential, opts ...grpc.CallOption) (*MsgAddCredentialResponse, 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 MsgServer

type MsgServer interface {
	AddDid(context.Context, *MsgAddDid) (*MsgAddDidResponse, error)
	AddCredential(context.Context, *MsgAddCredential) (*MsgAddCredentialResponse, error)
}

MsgServer is the server API for Msg service.

type QueryAddressFromBase58EncodedPubkeyRequest

type QueryAddressFromBase58EncodedPubkeyRequest struct {
	PubKey string `protobuf:"bytes,1,opt,name=pubKey,proto3" json:"pubKey,omitempty" json:"pubKey" yaml:"pubKey"`
}

func (*QueryAddressFromBase58EncodedPubkeyRequest) Descriptor

func (*QueryAddressFromBase58EncodedPubkeyRequest) GetPubKey

func (*QueryAddressFromBase58EncodedPubkeyRequest) Marshal

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

func (*QueryAddressFromBase58EncodedPubkeyRequest) MarshalTo

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

func (*QueryAddressFromBase58EncodedPubkeyRequest) MarshalToSizedBuffer

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

func (*QueryAddressFromBase58EncodedPubkeyRequest) ProtoMessage

func (*QueryAddressFromBase58EncodedPubkeyRequest) Reset

func (*QueryAddressFromBase58EncodedPubkeyRequest) Size

func (*QueryAddressFromBase58EncodedPubkeyRequest) String

func (*QueryAddressFromBase58EncodedPubkeyRequest) Unmarshal

func (*QueryAddressFromBase58EncodedPubkeyRequest) XXX_DiscardUnknown

func (m *QueryAddressFromBase58EncodedPubkeyRequest) XXX_DiscardUnknown()

func (*QueryAddressFromBase58EncodedPubkeyRequest) XXX_Marshal

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

func (*QueryAddressFromBase58EncodedPubkeyRequest) XXX_Merge

func (*QueryAddressFromBase58EncodedPubkeyRequest) XXX_Size

func (*QueryAddressFromBase58EncodedPubkeyRequest) XXX_Unmarshal

type QueryAddressFromBase58EncodedPubkeyResponse

type QueryAddressFromBase58EncodedPubkeyResponse struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" json:"address" yaml:"address"`
}

func (*QueryAddressFromBase58EncodedPubkeyResponse) Descriptor

func (*QueryAddressFromBase58EncodedPubkeyResponse) GetAddress

func (*QueryAddressFromBase58EncodedPubkeyResponse) Marshal

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

func (*QueryAddressFromBase58EncodedPubkeyResponse) MarshalTo

func (*QueryAddressFromBase58EncodedPubkeyResponse) MarshalToSizedBuffer

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

func (*QueryAddressFromBase58EncodedPubkeyResponse) ProtoMessage

func (*QueryAddressFromBase58EncodedPubkeyResponse) Reset

func (*QueryAddressFromBase58EncodedPubkeyResponse) Size

func (*QueryAddressFromBase58EncodedPubkeyResponse) String

func (*QueryAddressFromBase58EncodedPubkeyResponse) Unmarshal

func (*QueryAddressFromBase58EncodedPubkeyResponse) XXX_DiscardUnknown

func (m *QueryAddressFromBase58EncodedPubkeyResponse) XXX_DiscardUnknown()

func (*QueryAddressFromBase58EncodedPubkeyResponse) XXX_Marshal

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

func (*QueryAddressFromBase58EncodedPubkeyResponse) XXX_Merge

func (*QueryAddressFromBase58EncodedPubkeyResponse) XXX_Size

func (*QueryAddressFromBase58EncodedPubkeyResponse) XXX_Unmarshal

type QueryAddressFromDidRequest

type QueryAddressFromDidRequest struct {
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty" json:"did" yaml:"did"`
}

func (*QueryAddressFromDidRequest) Descriptor

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

func (*QueryAddressFromDidRequest) GetDid

func (m *QueryAddressFromDidRequest) GetDid() string

func (*QueryAddressFromDidRequest) Marshal

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

func (*QueryAddressFromDidRequest) MarshalTo

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

func (*QueryAddressFromDidRequest) MarshalToSizedBuffer

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

func (*QueryAddressFromDidRequest) ProtoMessage

func (*QueryAddressFromDidRequest) ProtoMessage()

func (*QueryAddressFromDidRequest) Reset

func (m *QueryAddressFromDidRequest) Reset()

func (*QueryAddressFromDidRequest) Size

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

func (*QueryAddressFromDidRequest) String

func (m *QueryAddressFromDidRequest) String() string

func (*QueryAddressFromDidRequest) Unmarshal

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

func (*QueryAddressFromDidRequest) XXX_DiscardUnknown

func (m *QueryAddressFromDidRequest) XXX_DiscardUnknown()

func (*QueryAddressFromDidRequest) XXX_Marshal

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

func (*QueryAddressFromDidRequest) XXX_Merge

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

func (*QueryAddressFromDidRequest) XXX_Size

func (m *QueryAddressFromDidRequest) XXX_Size() int

func (*QueryAddressFromDidRequest) XXX_Unmarshal

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

type QueryAddressFromDidResponse

type QueryAddressFromDidResponse struct {
	Address string `protobuf:"bytes,1,opt,name=address,proto3" json:"address,omitempty" json:"address" yaml:"address"`
}

func (*QueryAddressFromDidResponse) Descriptor

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

func (*QueryAddressFromDidResponse) GetAddress

func (m *QueryAddressFromDidResponse) GetAddress() string

func (*QueryAddressFromDidResponse) Marshal

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

func (*QueryAddressFromDidResponse) MarshalTo

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

func (*QueryAddressFromDidResponse) MarshalToSizedBuffer

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

func (*QueryAddressFromDidResponse) ProtoMessage

func (*QueryAddressFromDidResponse) ProtoMessage()

func (*QueryAddressFromDidResponse) Reset

func (m *QueryAddressFromDidResponse) Reset()

func (*QueryAddressFromDidResponse) Size

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

func (*QueryAddressFromDidResponse) String

func (m *QueryAddressFromDidResponse) String() string

func (*QueryAddressFromDidResponse) Unmarshal

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

func (*QueryAddressFromDidResponse) XXX_DiscardUnknown

func (m *QueryAddressFromDidResponse) XXX_DiscardUnknown()

func (*QueryAddressFromDidResponse) XXX_Marshal

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

func (*QueryAddressFromDidResponse) XXX_Merge

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

func (*QueryAddressFromDidResponse) XXX_Size

func (m *QueryAddressFromDidResponse) XXX_Size() int

func (*QueryAddressFromDidResponse) XXX_Unmarshal

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

type QueryAllDidDocsRequest

type QueryAllDidDocsRequest struct {
}

func (*QueryAllDidDocsRequest) Descriptor

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

func (*QueryAllDidDocsRequest) Marshal

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

func (*QueryAllDidDocsRequest) MarshalTo

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

func (*QueryAllDidDocsRequest) MarshalToSizedBuffer

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

func (*QueryAllDidDocsRequest) ProtoMessage

func (*QueryAllDidDocsRequest) ProtoMessage()

func (*QueryAllDidDocsRequest) Reset

func (m *QueryAllDidDocsRequest) Reset()

func (*QueryAllDidDocsRequest) Size

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

func (*QueryAllDidDocsRequest) String

func (m *QueryAllDidDocsRequest) String() string

func (*QueryAllDidDocsRequest) Unmarshal

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

func (*QueryAllDidDocsRequest) XXX_DiscardUnknown

func (m *QueryAllDidDocsRequest) XXX_DiscardUnknown()

func (*QueryAllDidDocsRequest) XXX_Marshal

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

func (*QueryAllDidDocsRequest) XXX_Merge

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

func (*QueryAllDidDocsRequest) XXX_Size

func (m *QueryAllDidDocsRequest) XXX_Size() int

func (*QueryAllDidDocsRequest) XXX_Unmarshal

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

type QueryAllDidDocsResponse

type QueryAllDidDocsResponse struct {
	Diddocs []*types.Any `protobuf:"bytes,1,rep,name=diddocs,proto3" json:"diddocs,omitempty" json:"did_docs" yaml:"did_docs"`
}

func (*QueryAllDidDocsResponse) Descriptor

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

func (*QueryAllDidDocsResponse) GetDiddocs

func (m *QueryAllDidDocsResponse) GetDiddocs() []*types.Any

func (*QueryAllDidDocsResponse) Marshal

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

func (*QueryAllDidDocsResponse) MarshalTo

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

func (*QueryAllDidDocsResponse) MarshalToSizedBuffer

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

func (*QueryAllDidDocsResponse) ProtoMessage

func (*QueryAllDidDocsResponse) ProtoMessage()

func (*QueryAllDidDocsResponse) Reset

func (m *QueryAllDidDocsResponse) Reset()

func (*QueryAllDidDocsResponse) Size

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

func (*QueryAllDidDocsResponse) String

func (m *QueryAllDidDocsResponse) String() string

func (*QueryAllDidDocsResponse) Unmarshal

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

func (*QueryAllDidDocsResponse) XXX_DiscardUnknown

func (m *QueryAllDidDocsResponse) XXX_DiscardUnknown()

func (*QueryAllDidDocsResponse) XXX_Marshal

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

func (*QueryAllDidDocsResponse) XXX_Merge

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

func (*QueryAllDidDocsResponse) XXX_Size

func (m *QueryAllDidDocsResponse) XXX_Size() int

func (*QueryAllDidDocsResponse) XXX_Unmarshal

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

type QueryAllDidsRequest

type QueryAllDidsRequest struct {
}

func (*QueryAllDidsRequest) Descriptor

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

func (*QueryAllDidsRequest) Marshal

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

func (*QueryAllDidsRequest) MarshalTo

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

func (*QueryAllDidsRequest) MarshalToSizedBuffer

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

func (*QueryAllDidsRequest) ProtoMessage

func (*QueryAllDidsRequest) ProtoMessage()

func (*QueryAllDidsRequest) Reset

func (m *QueryAllDidsRequest) Reset()

func (*QueryAllDidsRequest) Size

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

func (*QueryAllDidsRequest) String

func (m *QueryAllDidsRequest) String() string

func (*QueryAllDidsRequest) Unmarshal

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

func (*QueryAllDidsRequest) XXX_DiscardUnknown

func (m *QueryAllDidsRequest) XXX_DiscardUnknown()

func (*QueryAllDidsRequest) XXX_Marshal

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

func (*QueryAllDidsRequest) XXX_Merge

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

func (*QueryAllDidsRequest) XXX_Size

func (m *QueryAllDidsRequest) XXX_Size() int

func (*QueryAllDidsRequest) XXX_Unmarshal

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

type QueryAllDidsResponse

type QueryAllDidsResponse struct {
	Dids []string `protobuf:"bytes,1,rep,name=dids,proto3" json:"dids,omitempty" json:"dids" yaml:"dids"`
}

func (*QueryAllDidsResponse) Descriptor

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

func (*QueryAllDidsResponse) GetDids

func (m *QueryAllDidsResponse) GetDids() []string

func (*QueryAllDidsResponse) Marshal

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

func (*QueryAllDidsResponse) MarshalTo

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

func (*QueryAllDidsResponse) MarshalToSizedBuffer

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

func (*QueryAllDidsResponse) ProtoMessage

func (*QueryAllDidsResponse) ProtoMessage()

func (*QueryAllDidsResponse) Reset

func (m *QueryAllDidsResponse) Reset()

func (*QueryAllDidsResponse) Size

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

func (*QueryAllDidsResponse) String

func (m *QueryAllDidsResponse) String() string

func (*QueryAllDidsResponse) Unmarshal

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

func (*QueryAllDidsResponse) XXX_DiscardUnknown

func (m *QueryAllDidsResponse) XXX_DiscardUnknown()

func (*QueryAllDidsResponse) XXX_Marshal

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

func (*QueryAllDidsResponse) XXX_Merge

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

func (*QueryAllDidsResponse) XXX_Size

func (m *QueryAllDidsResponse) XXX_Size() int

func (*QueryAllDidsResponse) XXX_Unmarshal

func (m *QueryAllDidsResponse) 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 QueryDidDocRequest

type QueryDidDocRequest struct {
	Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty" json:"did" yaml:"did"`
}

func (*QueryDidDocRequest) Descriptor

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

func (*QueryDidDocRequest) GetDid

func (m *QueryDidDocRequest) GetDid() string

func (*QueryDidDocRequest) Marshal

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

func (*QueryDidDocRequest) MarshalTo

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

func (*QueryDidDocRequest) MarshalToSizedBuffer

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

func (*QueryDidDocRequest) ProtoMessage

func (*QueryDidDocRequest) ProtoMessage()

func (*QueryDidDocRequest) Reset

func (m *QueryDidDocRequest) Reset()

func (*QueryDidDocRequest) Size

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

func (*QueryDidDocRequest) String

func (m *QueryDidDocRequest) String() string

func (*QueryDidDocRequest) Unmarshal

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

func (*QueryDidDocRequest) XXX_DiscardUnknown

func (m *QueryDidDocRequest) XXX_DiscardUnknown()

func (*QueryDidDocRequest) XXX_Marshal

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

func (*QueryDidDocRequest) XXX_Merge

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

func (*QueryDidDocRequest) XXX_Size

func (m *QueryDidDocRequest) XXX_Size() int

func (*QueryDidDocRequest) XXX_Unmarshal

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

type QueryDidDocResponse

type QueryDidDocResponse struct {
	Diddoc *types.Any `protobuf:"bytes,1,opt,name=diddoc,proto3" json:"diddoc,omitempty" json:"did_doc" yaml:"did_doc"`
}

func (*QueryDidDocResponse) Descriptor

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

func (*QueryDidDocResponse) GetDiddoc

func (m *QueryDidDocResponse) GetDiddoc() *types.Any

func (*QueryDidDocResponse) Marshal

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

func (*QueryDidDocResponse) MarshalTo

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

func (*QueryDidDocResponse) MarshalToSizedBuffer

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

func (*QueryDidDocResponse) ProtoMessage

func (*QueryDidDocResponse) ProtoMessage()

func (*QueryDidDocResponse) Reset

func (m *QueryDidDocResponse) Reset()

func (*QueryDidDocResponse) Size

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

func (*QueryDidDocResponse) String

func (m *QueryDidDocResponse) String() string

func (*QueryDidDocResponse) Unmarshal

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

func (*QueryDidDocResponse) XXX_DiscardUnknown

func (m *QueryDidDocResponse) XXX_DiscardUnknown()

func (*QueryDidDocResponse) XXX_Marshal

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

func (*QueryDidDocResponse) XXX_Merge

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

func (*QueryDidDocResponse) XXX_Size

func (m *QueryDidDocResponse) XXX_Size() int

func (*QueryDidDocResponse) XXX_Unmarshal

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

type Secret

type Secret struct {
	Seed                 string `protobuf:"bytes,1,opt,name=seed,proto3" json:"seed,omitempty" yaml:"seed"`
	SignKey              string `protobuf:"bytes,2,opt,name=sign_key,json=signKey,proto3" json:"signKey" yaml:"signKey"`
	EncryptionPrivateKey string `` /* 139-byte string literal not displayed */
}

func (*Secret) Descriptor

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

func (*Secret) GetEncryptionPrivateKey

func (m *Secret) GetEncryptionPrivateKey() string

func (*Secret) GetSeed

func (m *Secret) GetSeed() string

func (*Secret) GetSignKey

func (m *Secret) GetSignKey() string

func (*Secret) Marshal

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

func (*Secret) MarshalTo

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

func (*Secret) MarshalToSizedBuffer

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

func (*Secret) ProtoMessage

func (*Secret) ProtoMessage()

func (*Secret) Reset

func (m *Secret) Reset()

func (*Secret) Size

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

func (*Secret) String

func (m *Secret) String() string

func (*Secret) Unmarshal

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

func (*Secret) XXX_DiscardUnknown

func (m *Secret) XXX_DiscardUnknown()

func (*Secret) XXX_Marshal

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

func (*Secret) XXX_Merge

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

func (*Secret) XXX_Size

func (m *Secret) XXX_Size() int

func (*Secret) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) AddCredential

func (*UnimplementedMsgServer) AddDid

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

func (*UnimplementedQueryServer) AddressFromDid

func (*UnimplementedQueryServer) AllDidDocs

func (*UnimplementedQueryServer) AllDids

func (*UnimplementedQueryServer) DidDoc

Jump to

Keyboard shortcuts

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