Documentation ¶
Overview ¶
Package types is a reverse proxy.
It translates gRPC into RESTful JSON APIs.
Index ¶
- Constants
- Variables
- func EmptyDID(did string) bool
- func EmptyDIDs(strings []string) bool
- func NewDID(pubKey []byte) string
- func NewVerificationMethodID(did string, name string) string
- func ParseDID(str string) (string, error)
- func ParseVerificationMethodID(id string, did string) (string, error)
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryHandler(ctx context.Context, mux *runtime.ServeMux, conn *grpc.ClientConn) error
- func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, client QueryClient) error
- func RegisterQueryHandlerFromEndpoint(ctx context.Context, mux *runtime.ServeMux, endpoint string, ...) (err error)
- func RegisterQueryHandlerServer(ctx context.Context, mux *runtime.ServeMux, server QueryServer) error
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- func Sign(signableData sdkcodec.ProtoMarshaler, seq uint64, privKey crypto.PrivKey) ([]byte, error)
- func ValidateContext(context string) bool
- func ValidateContexts(contexts []string) bool
- func ValidateDID(did string) bool
- func ValidateDIDs(strings []string) bool
- func ValidateKeyType(keyType string) bool
- func ValidateVerificationMethodID(verificationMethodID string, did string) bool
- func Verify(signature []byte, signableData sdkcodec.ProtoMarshaler, seq uint64, ...) (uint64, bool)
- type DIDDocument
- func (*DIDDocument) Descriptor() ([]byte, []int)
- func (doc DIDDocument) Empty() bool
- func (m *DIDDocument) GetId() string
- func (m *DIDDocument) GetServices() []*Service
- func (doc DIDDocument) GetSignBytes() []byte
- func (m *DIDDocument) GetVerificationMethods() []*VerificationMethod
- func (m *DIDDocument) Marshal() (dAtA []byte, err error)
- func (m *DIDDocument) MarshalTo(dAtA []byte) (int, error)
- func (m *DIDDocument) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DIDDocument) ProtoMessage()
- func (m *DIDDocument) Reset()
- func (m *DIDDocument) Size() (n int)
- func (m *DIDDocument) String() string
- func (m *DIDDocument) Unmarshal(dAtA []byte) error
- func (doc DIDDocument) Valid() bool
- func (doc DIDDocument) VerificationMethodByID(id string) (VerificationMethod, bool)
- func (doc DIDDocument) VerificationMethodFrom(relationships []VerificationRelationship, id string) (VerificationMethod, bool)
- func (m *DIDDocument) XXX_DiscardUnknown()
- func (m *DIDDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DIDDocument) XXX_Merge(src proto.Message)
- func (m *DIDDocument) XXX_Size() int
- func (m *DIDDocument) XXX_Unmarshal(b []byte) error
- type DIDDocumentOption
- func WithAssertionMethods(assertionMethods []VerificationRelationship) DIDDocumentOption
- func WithAuthentications(authentications []VerificationRelationship) DIDDocumentOption
- func WithCapabilityDelegations(capabilityDelegations []VerificationRelationship) DIDDocumentOption
- func WithCapabilityInvocations(capabilityInvocations []VerificationRelationship) DIDDocumentOption
- func WithController(controller string) DIDDocumentOption
- func WithKeyAgreements(keyAgreements []VerificationRelationship) DIDDocumentOption
- func WithServices(services []*Service) DIDDocumentOption
- func WithVerificationMethods(verificationMethods []*VerificationMethod) DIDDocumentOption
- type DIDDocumentWithSeq
- func (d DIDDocumentWithSeq) Deactivate(newSeq uint64) DIDDocumentWithSeq
- func (d DIDDocumentWithSeq) Deactivated() bool
- func (*DIDDocumentWithSeq) Descriptor() ([]byte, []int)
- func (d DIDDocumentWithSeq) Empty() bool
- func (m *DIDDocumentWithSeq) GetDocument() *DIDDocument
- func (m *DIDDocumentWithSeq) GetSequence() uint64
- func (m *DIDDocumentWithSeq) Marshal() (dAtA []byte, err error)
- func (m *DIDDocumentWithSeq) MarshalTo(dAtA []byte) (int, error)
- func (m *DIDDocumentWithSeq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DIDDocumentWithSeq) ProtoMessage()
- func (m *DIDDocumentWithSeq) Reset()
- func (m *DIDDocumentWithSeq) Size() (n int)
- func (m *DIDDocumentWithSeq) String() string
- func (m *DIDDocumentWithSeq) Unmarshal(dAtA []byte) error
- func (d DIDDocumentWithSeq) Valid() bool
- func (m *DIDDocumentWithSeq) XXX_DiscardUnknown()
- func (m *DIDDocumentWithSeq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DIDDocumentWithSeq) XXX_Merge(src proto.Message)
- func (m *DIDDocumentWithSeq) XXX_Size() int
- func (m *DIDDocumentWithSeq) XXX_Unmarshal(b []byte) error
- type DataWithSeq
- func (*DataWithSeq) Descriptor() ([]byte, []int)
- func (m *DataWithSeq) GetData() []byte
- func (m *DataWithSeq) GetSequence() uint64
- func (m *DataWithSeq) Marshal() (dAtA []byte, err error)
- func (m *DataWithSeq) MarshalTo(dAtA []byte) (int, error)
- func (m *DataWithSeq) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*DataWithSeq) ProtoMessage()
- func (m *DataWithSeq) Reset()
- func (m *DataWithSeq) Size() (n int)
- func (m *DataWithSeq) String() string
- func (m *DataWithSeq) Unmarshal(dAtA []byte) error
- func (m *DataWithSeq) XXX_DiscardUnknown()
- func (m *DataWithSeq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataWithSeq) XXX_Merge(src proto.Message)
- func (m *DataWithSeq) XXX_Size() int
- func (m *DataWithSeq) XXX_Unmarshal(b []byte) error
- type GenesisDIDDocumentKey
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetDocuments() map[string]*DIDDocumentWithSeq
- func (m *GenesisState) Marshal() (dAtA []byte, err error)
- func (m *GenesisState) MarshalTo(dAtA []byte) (int, error)
- func (m *GenesisState) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*GenesisState) ProtoMessage()
- func (m *GenesisState) Reset()
- func (m *GenesisState) Size() (n int)
- func (m *GenesisState) String() string
- func (m *GenesisState) Unmarshal(dAtA []byte) error
- func (data GenesisState) Validate() error
- func (m *GenesisState) XXX_DiscardUnknown()
- func (m *GenesisState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *GenesisState) XXX_Merge(src proto.Message)
- func (m *GenesisState) XXX_Size() int
- func (m *GenesisState) XXX_Unmarshal(b []byte) error
- type JSONStringOrStrings
- func (strings JSONStringOrStrings) Marshal() ([]byte, error)
- func (strings JSONStringOrStrings) MarshalJSON() ([]byte, error)
- func (strings *JSONStringOrStrings) MarshalTo(data []byte) (n int, err error)
- func (strings JSONStringOrStrings) Size() int
- func (strings *JSONStringOrStrings) Unmarshal(data []byte) error
- func (strings *JSONStringOrStrings) UnmarshalJSON(data []byte) error
- type MsgClient
- type MsgCreateDIDRequest
- func (*MsgCreateDIDRequest) Descriptor() ([]byte, []int)
- func (m *MsgCreateDIDRequest) GetDid() string
- func (m *MsgCreateDIDRequest) GetDocument() *DIDDocument
- func (m *MsgCreateDIDRequest) GetFromAddress() string
- func (msg *MsgCreateDIDRequest) GetSignBytes() []byte
- func (m *MsgCreateDIDRequest) GetSignature() []byte
- func (msg *MsgCreateDIDRequest) GetSigners() []sdk.AccAddress
- func (m *MsgCreateDIDRequest) GetVerificationMethodId() string
- func (m *MsgCreateDIDRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateDIDRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateDIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateDIDRequest) ProtoMessage()
- func (m *MsgCreateDIDRequest) Reset()
- func (msg *MsgCreateDIDRequest) Route() string
- func (m *MsgCreateDIDRequest) Size() (n int)
- func (m *MsgCreateDIDRequest) String() string
- func (msg *MsgCreateDIDRequest) Type() string
- func (m *MsgCreateDIDRequest) Unmarshal(dAtA []byte) error
- func (msg *MsgCreateDIDRequest) ValidateBasic() error
- func (m *MsgCreateDIDRequest) XXX_DiscardUnknown()
- func (m *MsgCreateDIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateDIDRequest) XXX_Merge(src proto.Message)
- func (m *MsgCreateDIDRequest) XXX_Size() int
- func (m *MsgCreateDIDRequest) XXX_Unmarshal(b []byte) error
- type MsgCreateDIDResponse
- func (*MsgCreateDIDResponse) Descriptor() ([]byte, []int)
- func (m *MsgCreateDIDResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgCreateDIDResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgCreateDIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgCreateDIDResponse) ProtoMessage()
- func (m *MsgCreateDIDResponse) Reset()
- func (m *MsgCreateDIDResponse) Size() (n int)
- func (m *MsgCreateDIDResponse) String() string
- func (m *MsgCreateDIDResponse) Unmarshal(dAtA []byte) error
- func (m *MsgCreateDIDResponse) XXX_DiscardUnknown()
- func (m *MsgCreateDIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgCreateDIDResponse) XXX_Merge(src proto.Message)
- func (m *MsgCreateDIDResponse) XXX_Size() int
- func (m *MsgCreateDIDResponse) XXX_Unmarshal(b []byte) error
- type MsgDeactivateDIDRequest
- func (*MsgDeactivateDIDRequest) Descriptor() ([]byte, []int)
- func (m *MsgDeactivateDIDRequest) GetDid() string
- func (m *MsgDeactivateDIDRequest) GetFromAddress() string
- func (msg *MsgDeactivateDIDRequest) GetSignBytes() []byte
- func (m *MsgDeactivateDIDRequest) GetSignature() []byte
- func (msg *MsgDeactivateDIDRequest) GetSigners() []sdk.AccAddress
- func (m *MsgDeactivateDIDRequest) GetVerificationMethodId() string
- func (m *MsgDeactivateDIDRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgDeactivateDIDRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeactivateDIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeactivateDIDRequest) ProtoMessage()
- func (m *MsgDeactivateDIDRequest) Reset()
- func (msg *MsgDeactivateDIDRequest) Route() string
- func (m *MsgDeactivateDIDRequest) Size() (n int)
- func (m *MsgDeactivateDIDRequest) String() string
- func (msg *MsgDeactivateDIDRequest) Type() string
- func (m *MsgDeactivateDIDRequest) Unmarshal(dAtA []byte) error
- func (msg *MsgDeactivateDIDRequest) ValidateBasic() error
- func (m *MsgDeactivateDIDRequest) XXX_DiscardUnknown()
- func (m *MsgDeactivateDIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeactivateDIDRequest) XXX_Merge(src proto.Message)
- func (m *MsgDeactivateDIDRequest) XXX_Size() int
- func (m *MsgDeactivateDIDRequest) XXX_Unmarshal(b []byte) error
- type MsgDeactivateDIDResponse
- func (*MsgDeactivateDIDResponse) Descriptor() ([]byte, []int)
- func (m *MsgDeactivateDIDResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgDeactivateDIDResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgDeactivateDIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgDeactivateDIDResponse) ProtoMessage()
- func (m *MsgDeactivateDIDResponse) Reset()
- func (m *MsgDeactivateDIDResponse) Size() (n int)
- func (m *MsgDeactivateDIDResponse) String() string
- func (m *MsgDeactivateDIDResponse) Unmarshal(dAtA []byte) error
- func (m *MsgDeactivateDIDResponse) XXX_DiscardUnknown()
- func (m *MsgDeactivateDIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgDeactivateDIDResponse) XXX_Merge(src proto.Message)
- func (m *MsgDeactivateDIDResponse) XXX_Size() int
- func (m *MsgDeactivateDIDResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type MsgUpdateDIDRequest
- func (*MsgUpdateDIDRequest) Descriptor() ([]byte, []int)
- func (m *MsgUpdateDIDRequest) GetDid() string
- func (m *MsgUpdateDIDRequest) GetDocument() *DIDDocument
- func (m *MsgUpdateDIDRequest) GetFromAddress() string
- func (msg *MsgUpdateDIDRequest) GetSignBytes() []byte
- func (m *MsgUpdateDIDRequest) GetSignature() []byte
- func (msg *MsgUpdateDIDRequest) GetSigners() []sdk.AccAddress
- func (m *MsgUpdateDIDRequest) GetVerificationMethodId() string
- func (m *MsgUpdateDIDRequest) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateDIDRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateDIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateDIDRequest) ProtoMessage()
- func (m *MsgUpdateDIDRequest) Reset()
- func (msg *MsgUpdateDIDRequest) Route() string
- func (m *MsgUpdateDIDRequest) Size() (n int)
- func (m *MsgUpdateDIDRequest) String() string
- func (msg *MsgUpdateDIDRequest) Type() string
- func (m *MsgUpdateDIDRequest) Unmarshal(dAtA []byte) error
- func (msg *MsgUpdateDIDRequest) ValidateBasic() error
- func (m *MsgUpdateDIDRequest) XXX_DiscardUnknown()
- func (m *MsgUpdateDIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateDIDRequest) XXX_Merge(src proto.Message)
- func (m *MsgUpdateDIDRequest) XXX_Size() int
- func (m *MsgUpdateDIDRequest) XXX_Unmarshal(b []byte) error
- type MsgUpdateDIDResponse
- func (*MsgUpdateDIDResponse) Descriptor() ([]byte, []int)
- func (m *MsgUpdateDIDResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgUpdateDIDResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgUpdateDIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgUpdateDIDResponse) ProtoMessage()
- func (m *MsgUpdateDIDResponse) Reset()
- func (m *MsgUpdateDIDResponse) Size() (n int)
- func (m *MsgUpdateDIDResponse) String() string
- func (m *MsgUpdateDIDResponse) Unmarshal(dAtA []byte) error
- func (m *MsgUpdateDIDResponse) XXX_DiscardUnknown()
- func (m *MsgUpdateDIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgUpdateDIDResponse) XXX_Merge(src proto.Message)
- func (m *MsgUpdateDIDResponse) XXX_Size() int
- func (m *MsgUpdateDIDResponse) XXX_Unmarshal(b []byte) error
- type QueryClient
- type QueryDIDRequest
- func (*QueryDIDRequest) Descriptor() ([]byte, []int)
- func (m *QueryDIDRequest) GetDidBase64() string
- func (m *QueryDIDRequest) Marshal() (dAtA []byte, err error)
- func (m *QueryDIDRequest) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDIDRequest) ProtoMessage()
- func (m *QueryDIDRequest) Reset()
- func (m *QueryDIDRequest) Size() (n int)
- func (m *QueryDIDRequest) String() string
- func (m *QueryDIDRequest) Unmarshal(dAtA []byte) error
- func (m *QueryDIDRequest) XXX_DiscardUnknown()
- func (m *QueryDIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDIDRequest) XXX_Merge(src proto.Message)
- func (m *QueryDIDRequest) XXX_Size() int
- func (m *QueryDIDRequest) XXX_Unmarshal(b []byte) error
- type QueryDIDResponse
- func (*QueryDIDResponse) Descriptor() ([]byte, []int)
- func (m *QueryDIDResponse) GetDidDocumentWithSeq() *DIDDocumentWithSeq
- func (m *QueryDIDResponse) Marshal() (dAtA []byte, err error)
- func (m *QueryDIDResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *QueryDIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*QueryDIDResponse) ProtoMessage()
- func (m *QueryDIDResponse) Reset()
- func (m *QueryDIDResponse) Size() (n int)
- func (m *QueryDIDResponse) String() string
- func (m *QueryDIDResponse) Unmarshal(dAtA []byte) error
- func (m *QueryDIDResponse) XXX_DiscardUnknown()
- func (m *QueryDIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *QueryDIDResponse) XXX_Merge(src proto.Message)
- func (m *QueryDIDResponse) XXX_Size() int
- func (m *QueryDIDResponse) XXX_Unmarshal(b []byte) error
- type QueryServer
- type Service
- func (*Service) Descriptor() ([]byte, []int)
- func (m *Service) GetId() string
- func (m *Service) GetServiceEndpoint() string
- func (m *Service) GetType() string
- func (m *Service) Marshal() (dAtA []byte, err error)
- func (m *Service) MarshalTo(dAtA []byte) (int, error)
- func (m *Service) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Service) ProtoMessage()
- func (m *Service) Reset()
- func (m *Service) Size() (n int)
- func (m *Service) String() string
- func (m *Service) Unmarshal(dAtA []byte) error
- func (s Service) Valid() bool
- func (m *Service) XXX_DiscardUnknown()
- func (m *Service) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Service) XXX_Merge(src proto.Message)
- func (m *Service) XXX_Size() int
- func (m *Service) XXX_Unmarshal(b []byte) error
- type Strings
- func (*Strings) Descriptor() ([]byte, []int)
- func (m *Strings) GetValues() []string
- func (m *Strings) Marshal() (dAtA []byte, err error)
- func (m *Strings) MarshalTo(dAtA []byte) (int, error)
- func (m *Strings) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Strings) ProtoMessage()
- func (m *Strings) Reset()
- func (m *Strings) Size() (n int)
- func (m *Strings) String() string
- func (m *Strings) Unmarshal(dAtA []byte) error
- func (m *Strings) XXX_DiscardUnknown()
- func (m *Strings) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Strings) XXX_Merge(src proto.Message)
- func (m *Strings) XXX_Size() int
- func (m *Strings) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) CreateDID(ctx context.Context, req *MsgCreateDIDRequest) (*MsgCreateDIDResponse, error)
- func (*UnimplementedMsgServer) DeactivateDID(ctx context.Context, req *MsgDeactivateDIDRequest) (*MsgDeactivateDIDResponse, error)
- func (*UnimplementedMsgServer) UpdateDID(ctx context.Context, req *MsgUpdateDIDRequest) (*MsgUpdateDIDResponse, error)
- type UnimplementedQueryServer
- type VerificationMethod
- func (*VerificationMethod) Descriptor() ([]byte, []int)
- func (m *VerificationMethod) GetController() string
- func (m *VerificationMethod) GetId() string
- func (m *VerificationMethod) GetPublicKeyBase58() string
- func (m *VerificationMethod) GetType() string
- func (m *VerificationMethod) Marshal() (dAtA []byte, err error)
- func (m *VerificationMethod) MarshalTo(dAtA []byte) (int, error)
- func (m *VerificationMethod) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VerificationMethod) ProtoMessage()
- func (m *VerificationMethod) Reset()
- func (m *VerificationMethod) Size() (n int)
- func (m *VerificationMethod) String() string
- func (m *VerificationMethod) Unmarshal(dAtA []byte) error
- func (pk VerificationMethod) Valid(did string) bool
- func (m *VerificationMethod) XXX_DiscardUnknown()
- func (m *VerificationMethod) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VerificationMethod) XXX_Merge(src proto.Message)
- func (m *VerificationMethod) XXX_Size() int
- func (m *VerificationMethod) XXX_Unmarshal(b []byte) error
- type VerificationRelationship
- func (*VerificationRelationship) Descriptor() ([]byte, []int)
- func (m *VerificationRelationship) GetContent() isVerificationRelationship_Content
- func (m *VerificationRelationship) GetVerificationMethod() *VerificationMethod
- func (m *VerificationRelationship) GetVerificationMethodId() string
- func (m *VerificationRelationship) Marshal() (dAtA []byte, err error)
- func (v VerificationRelationship) MarshalJSON() ([]byte, error)
- func (m *VerificationRelationship) MarshalTo(dAtA []byte) (int, error)
- func (m *VerificationRelationship) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*VerificationRelationship) ProtoMessage()
- func (m *VerificationRelationship) Reset()
- func (m *VerificationRelationship) Size() (n int)
- func (m *VerificationRelationship) String() string
- func (m *VerificationRelationship) Unmarshal(dAtA []byte) error
- func (v *VerificationRelationship) UnmarshalJSON(bz []byte) error
- func (v VerificationRelationship) Valid(did string) bool
- func (m *VerificationRelationship) XXX_DiscardUnknown()
- func (m *VerificationRelationship) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *VerificationRelationship) XXX_Merge(src proto.Message)
- func (*VerificationRelationship) XXX_OneofWrappers() []interface{}
- func (m *VerificationRelationship) XXX_Size() int
- func (m *VerificationRelationship) XXX_Unmarshal(b []byte) error
- type VerificationRelationship_VerificationMethod
- type VerificationRelationship_VerificationMethodId
Constants ¶
const ( DIDMethod = "panacea" Base58Charset = "123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz" )
const ( JSONWEBKEY_2020 = "JsonWebKey2020" ES256K_2019 = "EcdsaSecp256k1VerificationKey2019" ES256K_2018 = "Secp256k1VerificationKey2018" // deprecated ED25519_2018 = "Ed25519VerificationKey2018" BLS1281G1_2020 = "Bls12381G1Key2020" BLS1281G2_2020 = "Bls12381G2Key2020" GPG_2020 = "GpgVerificationKey2020" RSA_2018 = "RsaVerificationKey2018" X25519_2019 = "X25519KeyAgreementKey2019" SS256K_2019 = "SchnorrSecp256k1VerificationKey2019" ES256K_R_2020 = "EcdsaSecp256k1RecoveryMethod2020" )
const ( // ModuleName defines the module name ModuleName = "did" // 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 // MemStoreKey defines the in-memory store key MemStoreKey = "mem_capability" )
const (
ContextDIDV1 = "https://www.w3.org/ns/did/v1"
)
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
const InitialSequence uint64 = 0
Sequence is a preventative measure to distinguish replayed transactions (replay attack).
const (
MaxVerificationMethodIDLen = 128
)
Variables ¶
var ( ErrInvalidLengthDid = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowDid = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupDid = fmt.Errorf("proto: unexpected end of group") )
var ( ErrDIDExists = errors.Register(ModuleName, 2, "DID already exists") ErrInvalidDID = errors.Register(ModuleName, 3, "Invalid DID") ErrInvalidDIDDocument = errors.Register(ModuleName, 4, "Invalid DID Document") ErrDIDNotFound = errors.Register(ModuleName, 5, "DID not found") ErrInvalidSignature = errors.Register(ModuleName, 6, "Invalid signature") ErrInvalidVerificationMethodID = errors.Register(ModuleName, 7, "Invalid VerificationMethodID") ErrVerificationMethodIDNotFound = errors.Register(ModuleName, 8, "VerificationMethodID not found") ErrSigVerificationFailed = errors.Register(ModuleName, 9, "DID signature verification was failed") ErrInvalidSecp256k1PublicKey = errors.Register(ModuleName, 10, "Invalid Secp256k1 public key") ErrInvalidNetworkID = errors.Register(ModuleName, 11, "Invalid network ID") ErrInvalidDIDDocumentWithSeq = errors.Register(ModuleName, 12, "Invalid DIDDocumentWithSeq") ErrDIDDeactivated = errors.Register(ModuleName, 13, "DID was already deactivated") CodeInvalidKeyController = errors.Register(ModuleName, 14, "Invalid key controller") ErrVerificationMethodKeyTypeNotImplemented = errors.Register(ModuleName, 15, "Verification not implemented with key type") )
x/did module sentinel errors
var ( ErrInvalidLengthGenesis = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowGenesis = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupGenesis = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthQuery = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowQuery = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupQuery = fmt.Errorf("proto: unexpected end of group") )
var ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var (
DIDKeyPrefix = []byte{0x00}
)
var (
ModuleCdc = codec.NewAminoCodec(amino)
)
Functions ¶
func NewVerificationMethodID ¶
func RegisterCodec ¶
func RegisterCodec(cdc *codec.LegacyAmino)
func RegisterInterfaces ¶
func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
func RegisterMsgServer ¶
func RegisterQueryHandler ¶
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 ValidateContext ¶
func ValidateContexts ¶
func ValidateDID ¶
func ValidateDIDs ¶
func ValidateKeyType ¶
Types ¶
type DIDDocument ¶
type DIDDocument struct { Contexts *JSONStringOrStrings `protobuf:"bytes,1,opt,name=contexts,json=@context,proto3,customtype=JSONStringOrStrings" json:"contexts,omitempty"` Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"` Controller *JSONStringOrStrings `protobuf:"bytes,3,opt,name=controller,proto3,customtype=JSONStringOrStrings" json:"controller,omitempty"` VerificationMethods []*VerificationMethod `protobuf:"bytes,4,rep,name=verification_methods,json=verificationMethod,proto3" json:"verification_methods,omitempty"` // TODO: the repeated gogoproto.customtype has an issue: // https://github.com/gogo/protobuf/issues/478 Authentications []VerificationRelationship `` /* 139-byte string literal not displayed */ AssertionMethods []VerificationRelationship `` /* 144-byte string literal not displayed */ KeyAgreements []VerificationRelationship `` /* 135-byte string literal not displayed */ CapabilityInvocations []VerificationRelationship `` /* 159-byte string literal not displayed */ CapabilityDelegations []VerificationRelationship `` /* 159-byte string literal not displayed */ Services []*Service `protobuf:"bytes,10,rep,name=services,json=service,proto3" json:"services,omitempty"` }
DIDDocument defines a W3C DID Document
NOTE: All 'json_name' and 'gogoproto.customtype' tags are for panacea-core to unmarshal the v1.3 genesis which is in the W3C JSON-LD format.
On the other hand, the panacea-core and cosmos-sdk don't use those tags to marshal result to JSON (via grpc-gateway).
func NewDIDDocument ¶
func NewDIDDocument(id string, opts ...DIDDocumentOption) DIDDocument
func (*DIDDocument) Descriptor ¶
func (*DIDDocument) Descriptor() ([]byte, []int)
func (DIDDocument) Empty ¶
func (doc DIDDocument) Empty() bool
func (*DIDDocument) GetId ¶
func (m *DIDDocument) GetId() string
func (*DIDDocument) GetServices ¶
func (m *DIDDocument) GetServices() []*Service
func (DIDDocument) GetSignBytes ¶
func (doc DIDDocument) GetSignBytes() []byte
GetSignBytes returns a byte array which is used to generate a signature for verifying DID ownership.
func (*DIDDocument) GetVerificationMethods ¶
func (m *DIDDocument) GetVerificationMethods() []*VerificationMethod
func (*DIDDocument) Marshal ¶
func (m *DIDDocument) Marshal() (dAtA []byte, err error)
func (*DIDDocument) MarshalToSizedBuffer ¶
func (m *DIDDocument) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DIDDocument) ProtoMessage ¶
func (*DIDDocument) ProtoMessage()
func (*DIDDocument) Reset ¶
func (m *DIDDocument) Reset()
func (*DIDDocument) Size ¶
func (m *DIDDocument) Size() (n int)
func (*DIDDocument) String ¶
func (m *DIDDocument) String() string
func (*DIDDocument) Unmarshal ¶
func (m *DIDDocument) Unmarshal(dAtA []byte) error
func (DIDDocument) Valid ¶
func (doc DIDDocument) Valid() bool
func (DIDDocument) VerificationMethodByID ¶
func (doc DIDDocument) VerificationMethodByID(id string) (VerificationMethod, bool)
VerificationMethodByID finds a VerificationMethod by ID. If the corresponding VerificationMethod doesn't exist, it returns a false.
func (DIDDocument) VerificationMethodFrom ¶
func (doc DIDDocument) VerificationMethodFrom(relationships []VerificationRelationship, id string) (VerificationMethod, bool)
VerificationMethodFrom finds a VerificationMethod from the slice of VerificationRelationship by its ID. There are two types of VerificationRelationship. If it has a dedicated VerificationMethod, it is returned as it is. If the relationship has only a ID of VerificationMethod, this function tries to find a corresponding VerificationMethod in the DIDDocument.
func (*DIDDocument) XXX_DiscardUnknown ¶
func (m *DIDDocument) XXX_DiscardUnknown()
func (*DIDDocument) XXX_Marshal ¶
func (m *DIDDocument) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DIDDocument) XXX_Merge ¶
func (m *DIDDocument) XXX_Merge(src proto.Message)
func (*DIDDocument) XXX_Size ¶
func (m *DIDDocument) XXX_Size() int
func (*DIDDocument) XXX_Unmarshal ¶
func (m *DIDDocument) XXX_Unmarshal(b []byte) error
type DIDDocumentOption ¶
type DIDDocumentOption func(opts *DIDDocument)
func WithAssertionMethods ¶
func WithAssertionMethods(assertionMethods []VerificationRelationship) DIDDocumentOption
func WithAuthentications ¶
func WithAuthentications(authentications []VerificationRelationship) DIDDocumentOption
func WithCapabilityDelegations ¶
func WithCapabilityDelegations(capabilityDelegations []VerificationRelationship) DIDDocumentOption
func WithCapabilityInvocations ¶
func WithCapabilityInvocations(capabilityInvocations []VerificationRelationship) DIDDocumentOption
func WithController ¶
func WithController(controller string) DIDDocumentOption
func WithKeyAgreements ¶
func WithKeyAgreements(keyAgreements []VerificationRelationship) DIDDocumentOption
func WithServices ¶
func WithServices(services []*Service) DIDDocumentOption
func WithVerificationMethods ¶
func WithVerificationMethods(verificationMethods []*VerificationMethod) DIDDocumentOption
type DIDDocumentWithSeq ¶
type DIDDocumentWithSeq struct { Document *DIDDocument `protobuf:"bytes,1,opt,name=document,proto3" json:"document,omitempty"` Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` }
DIDDocumentWithSeq defines a message for DID Document with a sequence number for preventing replay attacks.
func NewDIDDocumentWithSeq ¶
func NewDIDDocumentWithSeq(doc *DIDDocument, seq uint64) DIDDocumentWithSeq
func (DIDDocumentWithSeq) Deactivate ¶
func (d DIDDocumentWithSeq) Deactivate(newSeq uint64) DIDDocumentWithSeq
Deactivate creates a new DIDDocumentWithSeq with an empty DIDDocument (tombstone). Note that it requires a new sequence.
func (DIDDocumentWithSeq) Deactivated ¶
func (d DIDDocumentWithSeq) Deactivated() bool
Deactivated returns true if the DIDDocument has been activated.
func (*DIDDocumentWithSeq) Descriptor ¶
func (*DIDDocumentWithSeq) Descriptor() ([]byte, []int)
func (DIDDocumentWithSeq) Empty ¶
func (d DIDDocumentWithSeq) Empty() bool
Empty returns true if all members in DIDDocumentWithSeq are empty. The empty struct means that the entity doesn't exist.
func (*DIDDocumentWithSeq) GetDocument ¶
func (m *DIDDocumentWithSeq) GetDocument() *DIDDocument
func (*DIDDocumentWithSeq) GetSequence ¶
func (m *DIDDocumentWithSeq) GetSequence() uint64
func (*DIDDocumentWithSeq) Marshal ¶
func (m *DIDDocumentWithSeq) Marshal() (dAtA []byte, err error)
func (*DIDDocumentWithSeq) MarshalTo ¶
func (m *DIDDocumentWithSeq) MarshalTo(dAtA []byte) (int, error)
func (*DIDDocumentWithSeq) MarshalToSizedBuffer ¶
func (m *DIDDocumentWithSeq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DIDDocumentWithSeq) ProtoMessage ¶
func (*DIDDocumentWithSeq) ProtoMessage()
func (*DIDDocumentWithSeq) Reset ¶
func (m *DIDDocumentWithSeq) Reset()
func (*DIDDocumentWithSeq) Size ¶
func (m *DIDDocumentWithSeq) Size() (n int)
func (*DIDDocumentWithSeq) String ¶
func (m *DIDDocumentWithSeq) String() string
func (*DIDDocumentWithSeq) Unmarshal ¶
func (m *DIDDocumentWithSeq) Unmarshal(dAtA []byte) error
func (DIDDocumentWithSeq) Valid ¶
func (d DIDDocumentWithSeq) Valid() bool
func (*DIDDocumentWithSeq) XXX_DiscardUnknown ¶
func (m *DIDDocumentWithSeq) XXX_DiscardUnknown()
func (*DIDDocumentWithSeq) XXX_Marshal ¶
func (m *DIDDocumentWithSeq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DIDDocumentWithSeq) XXX_Merge ¶
func (m *DIDDocumentWithSeq) XXX_Merge(src proto.Message)
func (*DIDDocumentWithSeq) XXX_Size ¶
func (m *DIDDocumentWithSeq) XXX_Size() int
func (*DIDDocumentWithSeq) XXX_Unmarshal ¶
func (m *DIDDocumentWithSeq) XXX_Unmarshal(b []byte) error
type DataWithSeq ¶
type DataWithSeq struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` Sequence uint64 `protobuf:"varint,2,opt,name=sequence,proto3" json:"sequence,omitempty"` }
DataWithSeq defines a message for data with a sequence number for preventing replay attacks.
func (*DataWithSeq) Descriptor ¶
func (*DataWithSeq) Descriptor() ([]byte, []int)
func (*DataWithSeq) GetData ¶
func (m *DataWithSeq) GetData() []byte
func (*DataWithSeq) GetSequence ¶
func (m *DataWithSeq) GetSequence() uint64
func (*DataWithSeq) Marshal ¶
func (m *DataWithSeq) Marshal() (dAtA []byte, err error)
func (*DataWithSeq) MarshalToSizedBuffer ¶
func (m *DataWithSeq) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*DataWithSeq) ProtoMessage ¶
func (*DataWithSeq) ProtoMessage()
func (*DataWithSeq) Reset ¶
func (m *DataWithSeq) Reset()
func (*DataWithSeq) Size ¶
func (m *DataWithSeq) Size() (n int)
func (*DataWithSeq) String ¶
func (m *DataWithSeq) String() string
func (*DataWithSeq) Unmarshal ¶
func (m *DataWithSeq) Unmarshal(dAtA []byte) error
func (*DataWithSeq) XXX_DiscardUnknown ¶
func (m *DataWithSeq) XXX_DiscardUnknown()
func (*DataWithSeq) XXX_Marshal ¶
func (m *DataWithSeq) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DataWithSeq) XXX_Merge ¶
func (m *DataWithSeq) XXX_Merge(src proto.Message)
func (*DataWithSeq) XXX_Size ¶
func (m *DataWithSeq) XXX_Size() int
func (*DataWithSeq) XXX_Unmarshal ¶
func (m *DataWithSeq) XXX_Unmarshal(b []byte) error
type GenesisDIDDocumentKey ¶
type GenesisDIDDocumentKey struct {
DID string `json:"did"`
}
func (GenesisDIDDocumentKey) Marshal ¶
func (k GenesisDIDDocumentKey) Marshal() string
func (*GenesisDIDDocumentKey) Unmarshal ¶
func (k *GenesisDIDDocumentKey) Unmarshal(key string) error
type GenesisState ¶
type GenesisState struct {
Documents map[string]*DIDDocumentWithSeq `` /* 159-byte string literal not displayed */
}
GenesisState defines the did module's genesis state.
func DefaultGenesis ¶
func DefaultGenesis() *GenesisState
DefaultGenesis returns the default Capability genesis state
func (*GenesisState) Descriptor ¶
func (*GenesisState) Descriptor() ([]byte, []int)
func (*GenesisState) GetDocuments ¶
func (m *GenesisState) GetDocuments() map[string]*DIDDocumentWithSeq
func (*GenesisState) Marshal ¶
func (m *GenesisState) Marshal() (dAtA []byte, err 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 (data GenesisState) Validate() error
Validate performs basic genesis state validation returning an error upon any failure.
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 JSONStringOrStrings ¶
type JSONStringOrStrings []string
func (JSONStringOrStrings) Marshal ¶
func (strings JSONStringOrStrings) Marshal() ([]byte, error)
func (JSONStringOrStrings) MarshalJSON ¶
func (strings JSONStringOrStrings) MarshalJSON() ([]byte, error)
func (*JSONStringOrStrings) MarshalTo ¶
func (strings *JSONStringOrStrings) MarshalTo(data []byte) (n int, err error)
func (JSONStringOrStrings) Size ¶
func (strings JSONStringOrStrings) Size() int
func (*JSONStringOrStrings) Unmarshal ¶
func (strings *JSONStringOrStrings) Unmarshal(data []byte) error
func (*JSONStringOrStrings) UnmarshalJSON ¶
func (strings *JSONStringOrStrings) UnmarshalJSON(data []byte) error
type MsgClient ¶
type MsgClient interface { // CreateDID defines a method for creating a DID. CreateDID(ctx context.Context, in *MsgCreateDIDRequest, opts ...grpc.CallOption) (*MsgCreateDIDResponse, error) // UpdateDID defines a method for updating a DID. UpdateDID(ctx context.Context, in *MsgUpdateDIDRequest, opts ...grpc.CallOption) (*MsgUpdateDIDResponse, error) // DeactivateDID defines a method for deactivating a DID. DeactivateDID(ctx context.Context, in *MsgDeactivateDIDRequest, opts ...grpc.CallOption) (*MsgDeactivateDIDResponse, 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 MsgCreateDIDRequest ¶ added in v2.2.0
type MsgCreateDIDRequest struct { Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` Document *DIDDocument `protobuf:"bytes,2,opt,name=document,proto3" json:"document,omitempty"` VerificationMethodId string `protobuf:"bytes,3,opt,name=verification_method_id,json=verificationMethodId,proto3" json:"verification_method_id,omitempty"` Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` FromAddress string `protobuf:"bytes,5,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` }
MsgCreateDID defines the Msg/CreateDID request type.
func NewMsgCreateDIDResponse ¶ added in v2.2.0
func NewMsgCreateDIDResponse(did string, document DIDDocument, VerificationMethodID string, Signature []byte, FromAddress string) MsgCreateDIDRequest
func (*MsgCreateDIDRequest) Descriptor ¶ added in v2.2.0
func (*MsgCreateDIDRequest) Descriptor() ([]byte, []int)
func (*MsgCreateDIDRequest) GetDid ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) GetDid() string
func (*MsgCreateDIDRequest) GetDocument ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) GetDocument() *DIDDocument
func (*MsgCreateDIDRequest) GetFromAddress ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) GetFromAddress() string
func (*MsgCreateDIDRequest) GetSignBytes ¶ added in v2.2.0
func (msg *MsgCreateDIDRequest) GetSignBytes() []byte
func (*MsgCreateDIDRequest) GetSignature ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) GetSignature() []byte
func (*MsgCreateDIDRequest) GetSigners ¶ added in v2.2.0
func (msg *MsgCreateDIDRequest) GetSigners() []sdk.AccAddress
func (*MsgCreateDIDRequest) GetVerificationMethodId ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) GetVerificationMethodId() string
func (*MsgCreateDIDRequest) Marshal ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) Marshal() (dAtA []byte, err error)
func (*MsgCreateDIDRequest) MarshalTo ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateDIDRequest) MarshalToSizedBuffer ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateDIDRequest) ProtoMessage ¶ added in v2.2.0
func (*MsgCreateDIDRequest) ProtoMessage()
func (*MsgCreateDIDRequest) Reset ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) Reset()
func (*MsgCreateDIDRequest) Route ¶ added in v2.2.0
func (msg *MsgCreateDIDRequest) Route() string
func (*MsgCreateDIDRequest) Size ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) Size() (n int)
func (*MsgCreateDIDRequest) String ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) String() string
func (*MsgCreateDIDRequest) Type ¶ added in v2.2.0
func (msg *MsgCreateDIDRequest) Type() string
func (*MsgCreateDIDRequest) Unmarshal ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) Unmarshal(dAtA []byte) error
func (*MsgCreateDIDRequest) ValidateBasic ¶ added in v2.2.0
func (msg *MsgCreateDIDRequest) ValidateBasic() error
func (*MsgCreateDIDRequest) XXX_DiscardUnknown ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) XXX_DiscardUnknown()
func (*MsgCreateDIDRequest) XXX_Marshal ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateDIDRequest) XXX_Merge ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) XXX_Merge(src proto.Message)
func (*MsgCreateDIDRequest) XXX_Size ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) XXX_Size() int
func (*MsgCreateDIDRequest) XXX_Unmarshal ¶ added in v2.2.0
func (m *MsgCreateDIDRequest) XXX_Unmarshal(b []byte) error
type MsgCreateDIDResponse ¶
type MsgCreateDIDResponse struct { }
MsgCreateDIDResponse defines the Msg/CreateDID response type.
func (*MsgCreateDIDResponse) Descriptor ¶
func (*MsgCreateDIDResponse) Descriptor() ([]byte, []int)
func (*MsgCreateDIDResponse) Marshal ¶
func (m *MsgCreateDIDResponse) Marshal() (dAtA []byte, err error)
func (*MsgCreateDIDResponse) MarshalTo ¶
func (m *MsgCreateDIDResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgCreateDIDResponse) MarshalToSizedBuffer ¶
func (m *MsgCreateDIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgCreateDIDResponse) ProtoMessage ¶
func (*MsgCreateDIDResponse) ProtoMessage()
func (*MsgCreateDIDResponse) Reset ¶
func (m *MsgCreateDIDResponse) Reset()
func (*MsgCreateDIDResponse) Size ¶
func (m *MsgCreateDIDResponse) Size() (n int)
func (*MsgCreateDIDResponse) String ¶
func (m *MsgCreateDIDResponse) String() string
func (*MsgCreateDIDResponse) Unmarshal ¶
func (m *MsgCreateDIDResponse) Unmarshal(dAtA []byte) error
func (*MsgCreateDIDResponse) XXX_DiscardUnknown ¶
func (m *MsgCreateDIDResponse) XXX_DiscardUnknown()
func (*MsgCreateDIDResponse) XXX_Marshal ¶
func (m *MsgCreateDIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgCreateDIDResponse) XXX_Merge ¶
func (m *MsgCreateDIDResponse) XXX_Merge(src proto.Message)
func (*MsgCreateDIDResponse) XXX_Size ¶
func (m *MsgCreateDIDResponse) XXX_Size() int
func (*MsgCreateDIDResponse) XXX_Unmarshal ¶
func (m *MsgCreateDIDResponse) XXX_Unmarshal(b []byte) error
type MsgDeactivateDIDRequest ¶ added in v2.2.0
type MsgDeactivateDIDRequest struct { Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` VerificationMethodId string `protobuf:"bytes,2,opt,name=verification_method_id,json=verificationMethodId,proto3" json:"verification_method_id,omitempty"` Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` FromAddress string `protobuf:"bytes,4,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` }
MsgDeactivateDID defines the Msg/DeactivateDID request type.
func NewMsgDeactivateDIDRequest ¶ added in v2.2.0
func NewMsgDeactivateDIDRequest(did string, verificationMethodID string, sig []byte, fromAddr string) *MsgDeactivateDIDRequest
NewMsgDeactivateDIDRequest is a constructor of MsgDeactivateDID.
func (*MsgDeactivateDIDRequest) Descriptor ¶ added in v2.2.0
func (*MsgDeactivateDIDRequest) Descriptor() ([]byte, []int)
func (*MsgDeactivateDIDRequest) GetDid ¶ added in v2.2.0
func (m *MsgDeactivateDIDRequest) GetDid() string
func (*MsgDeactivateDIDRequest) GetFromAddress ¶ added in v2.2.0
func (m *MsgDeactivateDIDRequest) GetFromAddress() string
func (*MsgDeactivateDIDRequest) GetSignBytes ¶ added in v2.2.0
func (msg *MsgDeactivateDIDRequest) GetSignBytes() []byte
GetSignBytes returns the canonical byte representation of the message. Used to generate a signature.
func (*MsgDeactivateDIDRequest) GetSignature ¶ added in v2.2.0
func (m *MsgDeactivateDIDRequest) GetSignature() []byte
func (*MsgDeactivateDIDRequest) GetSigners ¶ added in v2.2.0
func (msg *MsgDeactivateDIDRequest) GetSigners() []sdk.AccAddress
GetSigners return the addresses of signers that must sign.
func (*MsgDeactivateDIDRequest) GetVerificationMethodId ¶ added in v2.2.0
func (m *MsgDeactivateDIDRequest) GetVerificationMethodId() string
func (*MsgDeactivateDIDRequest) Marshal ¶ added in v2.2.0
func (m *MsgDeactivateDIDRequest) Marshal() (dAtA []byte, err error)
func (*MsgDeactivateDIDRequest) MarshalTo ¶ added in v2.2.0
func (m *MsgDeactivateDIDRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeactivateDIDRequest) MarshalToSizedBuffer ¶ added in v2.2.0
func (m *MsgDeactivateDIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeactivateDIDRequest) ProtoMessage ¶ added in v2.2.0
func (*MsgDeactivateDIDRequest) ProtoMessage()
func (*MsgDeactivateDIDRequest) Reset ¶ added in v2.2.0
func (m *MsgDeactivateDIDRequest) Reset()
func (*MsgDeactivateDIDRequest) Route ¶ added in v2.2.0
func (msg *MsgDeactivateDIDRequest) Route() string
Route returns the name of the module.
func (*MsgDeactivateDIDRequest) Size ¶ added in v2.2.0
func (m *MsgDeactivateDIDRequest) Size() (n int)
func (*MsgDeactivateDIDRequest) String ¶ added in v2.2.0
func (m *MsgDeactivateDIDRequest) String() string
func (*MsgDeactivateDIDRequest) Type ¶ added in v2.2.0
func (msg *MsgDeactivateDIDRequest) Type() string
Type returns the name of the action.
func (*MsgDeactivateDIDRequest) Unmarshal ¶ added in v2.2.0
func (m *MsgDeactivateDIDRequest) Unmarshal(dAtA []byte) error
func (*MsgDeactivateDIDRequest) ValidateBasic ¶ added in v2.2.0
func (msg *MsgDeactivateDIDRequest) ValidateBasic() error
ValidateBasic runs stateless checks on the message.
func (*MsgDeactivateDIDRequest) XXX_DiscardUnknown ¶ added in v2.2.0
func (m *MsgDeactivateDIDRequest) XXX_DiscardUnknown()
func (*MsgDeactivateDIDRequest) XXX_Marshal ¶ added in v2.2.0
func (m *MsgDeactivateDIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeactivateDIDRequest) XXX_Merge ¶ added in v2.2.0
func (m *MsgDeactivateDIDRequest) XXX_Merge(src proto.Message)
func (*MsgDeactivateDIDRequest) XXX_Size ¶ added in v2.2.0
func (m *MsgDeactivateDIDRequest) XXX_Size() int
func (*MsgDeactivateDIDRequest) XXX_Unmarshal ¶ added in v2.2.0
func (m *MsgDeactivateDIDRequest) XXX_Unmarshal(b []byte) error
type MsgDeactivateDIDResponse ¶
type MsgDeactivateDIDResponse struct { }
MsgDeactivateDIDResponse defines the Msg/DeactivateDID response type.
func (*MsgDeactivateDIDResponse) Descriptor ¶
func (*MsgDeactivateDIDResponse) Descriptor() ([]byte, []int)
func (*MsgDeactivateDIDResponse) Marshal ¶
func (m *MsgDeactivateDIDResponse) Marshal() (dAtA []byte, err error)
func (*MsgDeactivateDIDResponse) MarshalTo ¶
func (m *MsgDeactivateDIDResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgDeactivateDIDResponse) MarshalToSizedBuffer ¶
func (m *MsgDeactivateDIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgDeactivateDIDResponse) ProtoMessage ¶
func (*MsgDeactivateDIDResponse) ProtoMessage()
func (*MsgDeactivateDIDResponse) Reset ¶
func (m *MsgDeactivateDIDResponse) Reset()
func (*MsgDeactivateDIDResponse) Size ¶
func (m *MsgDeactivateDIDResponse) Size() (n int)
func (*MsgDeactivateDIDResponse) String ¶
func (m *MsgDeactivateDIDResponse) String() string
func (*MsgDeactivateDIDResponse) Unmarshal ¶
func (m *MsgDeactivateDIDResponse) Unmarshal(dAtA []byte) error
func (*MsgDeactivateDIDResponse) XXX_DiscardUnknown ¶
func (m *MsgDeactivateDIDResponse) XXX_DiscardUnknown()
func (*MsgDeactivateDIDResponse) XXX_Marshal ¶
func (m *MsgDeactivateDIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgDeactivateDIDResponse) XXX_Merge ¶
func (m *MsgDeactivateDIDResponse) XXX_Merge(src proto.Message)
func (*MsgDeactivateDIDResponse) XXX_Size ¶
func (m *MsgDeactivateDIDResponse) XXX_Size() int
func (*MsgDeactivateDIDResponse) XXX_Unmarshal ¶
func (m *MsgDeactivateDIDResponse) XXX_Unmarshal(b []byte) error
type MsgServer ¶
type MsgServer interface { // CreateDID defines a method for creating a DID. CreateDID(context.Context, *MsgCreateDIDRequest) (*MsgCreateDIDResponse, error) // UpdateDID defines a method for updating a DID. UpdateDID(context.Context, *MsgUpdateDIDRequest) (*MsgUpdateDIDResponse, error) // DeactivateDID defines a method for deactivating a DID. DeactivateDID(context.Context, *MsgDeactivateDIDRequest) (*MsgDeactivateDIDResponse, error) }
MsgServer is the server API for Msg service.
type MsgUpdateDIDRequest ¶ added in v2.2.0
type MsgUpdateDIDRequest struct { Did string `protobuf:"bytes,1,opt,name=did,proto3" json:"did,omitempty"` Document *DIDDocument `protobuf:"bytes,2,opt,name=document,proto3" json:"document,omitempty"` VerificationMethodId string `protobuf:"bytes,3,opt,name=verification_method_id,json=verificationMethodId,proto3" json:"verification_method_id,omitempty"` Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"` FromAddress string `protobuf:"bytes,5,opt,name=from_address,json=fromAddress,proto3" json:"from_address,omitempty"` }
MsgUpdateDID defines the Msg/UpdateDID request type.
func NewMsgUpdateDID ¶
func NewMsgUpdateDID(did string, doc DIDDocument, verificationMethodID string, sig []byte, fromAddr string) *MsgUpdateDIDRequest
NewMsgUpdateDID is a constructor of MsgUpdateDID.
func (*MsgUpdateDIDRequest) Descriptor ¶ added in v2.2.0
func (*MsgUpdateDIDRequest) Descriptor() ([]byte, []int)
func (*MsgUpdateDIDRequest) GetDid ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) GetDid() string
func (*MsgUpdateDIDRequest) GetDocument ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) GetDocument() *DIDDocument
func (*MsgUpdateDIDRequest) GetFromAddress ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) GetFromAddress() string
func (*MsgUpdateDIDRequest) GetSignBytes ¶ added in v2.2.0
func (msg *MsgUpdateDIDRequest) GetSignBytes() []byte
GetSignBytes returns the canonical byte representation of the message. Used to generate a signature.
func (*MsgUpdateDIDRequest) GetSignature ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) GetSignature() []byte
func (*MsgUpdateDIDRequest) GetSigners ¶ added in v2.2.0
func (msg *MsgUpdateDIDRequest) GetSigners() []sdk.AccAddress
GetSigners return the addresses of signers that must sign.
func (*MsgUpdateDIDRequest) GetVerificationMethodId ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) GetVerificationMethodId() string
func (*MsgUpdateDIDRequest) Marshal ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) Marshal() (dAtA []byte, err error)
func (*MsgUpdateDIDRequest) MarshalTo ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateDIDRequest) MarshalToSizedBuffer ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateDIDRequest) ProtoMessage ¶ added in v2.2.0
func (*MsgUpdateDIDRequest) ProtoMessage()
func (*MsgUpdateDIDRequest) Reset ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) Reset()
func (*MsgUpdateDIDRequest) Route ¶ added in v2.2.0
func (msg *MsgUpdateDIDRequest) Route() string
Route returns the name of the module.
func (*MsgUpdateDIDRequest) Size ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) Size() (n int)
func (*MsgUpdateDIDRequest) String ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) String() string
func (*MsgUpdateDIDRequest) Type ¶ added in v2.2.0
func (msg *MsgUpdateDIDRequest) Type() string
Type returns the name of the action.
func (*MsgUpdateDIDRequest) Unmarshal ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) Unmarshal(dAtA []byte) error
func (*MsgUpdateDIDRequest) ValidateBasic ¶ added in v2.2.0
func (msg *MsgUpdateDIDRequest) ValidateBasic() error
ValidateBasic runs stateless checks on the message.
func (*MsgUpdateDIDRequest) XXX_DiscardUnknown ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) XXX_DiscardUnknown()
func (*MsgUpdateDIDRequest) XXX_Marshal ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateDIDRequest) XXX_Merge ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) XXX_Merge(src proto.Message)
func (*MsgUpdateDIDRequest) XXX_Size ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) XXX_Size() int
func (*MsgUpdateDIDRequest) XXX_Unmarshal ¶ added in v2.2.0
func (m *MsgUpdateDIDRequest) XXX_Unmarshal(b []byte) error
type MsgUpdateDIDResponse ¶
type MsgUpdateDIDResponse struct { }
MsgUpdateDIDResponse defines the Msg/UpdateDID response type.
func (*MsgUpdateDIDResponse) Descriptor ¶
func (*MsgUpdateDIDResponse) Descriptor() ([]byte, []int)
func (*MsgUpdateDIDResponse) Marshal ¶
func (m *MsgUpdateDIDResponse) Marshal() (dAtA []byte, err error)
func (*MsgUpdateDIDResponse) MarshalTo ¶
func (m *MsgUpdateDIDResponse) MarshalTo(dAtA []byte) (int, error)
func (*MsgUpdateDIDResponse) MarshalToSizedBuffer ¶
func (m *MsgUpdateDIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgUpdateDIDResponse) ProtoMessage ¶
func (*MsgUpdateDIDResponse) ProtoMessage()
func (*MsgUpdateDIDResponse) Reset ¶
func (m *MsgUpdateDIDResponse) Reset()
func (*MsgUpdateDIDResponse) Size ¶
func (m *MsgUpdateDIDResponse) Size() (n int)
func (*MsgUpdateDIDResponse) String ¶
func (m *MsgUpdateDIDResponse) String() string
func (*MsgUpdateDIDResponse) Unmarshal ¶
func (m *MsgUpdateDIDResponse) Unmarshal(dAtA []byte) error
func (*MsgUpdateDIDResponse) XXX_DiscardUnknown ¶
func (m *MsgUpdateDIDResponse) XXX_DiscardUnknown()
func (*MsgUpdateDIDResponse) XXX_Marshal ¶
func (m *MsgUpdateDIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgUpdateDIDResponse) XXX_Merge ¶
func (m *MsgUpdateDIDResponse) XXX_Merge(src proto.Message)
func (*MsgUpdateDIDResponse) XXX_Size ¶
func (m *MsgUpdateDIDResponse) XXX_Size() int
func (*MsgUpdateDIDResponse) XXX_Unmarshal ¶
func (m *MsgUpdateDIDResponse) XXX_Unmarshal(b []byte) error
type QueryClient ¶
type QueryClient interface { // DID returns a DID Document with a sequence number. DID(ctx context.Context, in *QueryDIDRequest, opts ...grpc.CallOption) (*QueryDIDResponse, error) }
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 QueryDIDRequest ¶
type QueryDIDRequest struct { // NOTE: Using base64 due to the URI path cannot contain colons. DidBase64 string `protobuf:"bytes,1,opt,name=did_base64,json=didBase64,proto3" json:"did_base64,omitempty"` }
QueryDIDRequest is the request type for the Query/DIDDocumentWithSeq RPC method.
func (*QueryDIDRequest) Descriptor ¶
func (*QueryDIDRequest) Descriptor() ([]byte, []int)
func (*QueryDIDRequest) GetDidBase64 ¶
func (m *QueryDIDRequest) GetDidBase64() string
func (*QueryDIDRequest) Marshal ¶
func (m *QueryDIDRequest) Marshal() (dAtA []byte, err error)
func (*QueryDIDRequest) MarshalToSizedBuffer ¶
func (m *QueryDIDRequest) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDIDRequest) ProtoMessage ¶
func (*QueryDIDRequest) ProtoMessage()
func (*QueryDIDRequest) Reset ¶
func (m *QueryDIDRequest) Reset()
func (*QueryDIDRequest) Size ¶
func (m *QueryDIDRequest) Size() (n int)
func (*QueryDIDRequest) String ¶
func (m *QueryDIDRequest) String() string
func (*QueryDIDRequest) Unmarshal ¶
func (m *QueryDIDRequest) Unmarshal(dAtA []byte) error
func (*QueryDIDRequest) XXX_DiscardUnknown ¶
func (m *QueryDIDRequest) XXX_DiscardUnknown()
func (*QueryDIDRequest) XXX_Marshal ¶
func (m *QueryDIDRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDIDRequest) XXX_Merge ¶
func (m *QueryDIDRequest) XXX_Merge(src proto.Message)
func (*QueryDIDRequest) XXX_Size ¶
func (m *QueryDIDRequest) XXX_Size() int
func (*QueryDIDRequest) XXX_Unmarshal ¶
func (m *QueryDIDRequest) XXX_Unmarshal(b []byte) error
type QueryDIDResponse ¶
type QueryDIDResponse struct {
DidDocumentWithSeq *DIDDocumentWithSeq `protobuf:"bytes,1,opt,name=did_document_with_seq,json=didDocumentWithSeq,proto3" json:"did_document_with_seq,omitempty"`
}
QueryDIDResponse is the response type for the Query/DIDDocumentWithSeq RPC method.
func (*QueryDIDResponse) Descriptor ¶
func (*QueryDIDResponse) Descriptor() ([]byte, []int)
func (*QueryDIDResponse) GetDidDocumentWithSeq ¶
func (m *QueryDIDResponse) GetDidDocumentWithSeq() *DIDDocumentWithSeq
func (*QueryDIDResponse) Marshal ¶
func (m *QueryDIDResponse) Marshal() (dAtA []byte, err error)
func (*QueryDIDResponse) MarshalToSizedBuffer ¶
func (m *QueryDIDResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*QueryDIDResponse) ProtoMessage ¶
func (*QueryDIDResponse) ProtoMessage()
func (*QueryDIDResponse) Reset ¶
func (m *QueryDIDResponse) Reset()
func (*QueryDIDResponse) Size ¶
func (m *QueryDIDResponse) Size() (n int)
func (*QueryDIDResponse) String ¶
func (m *QueryDIDResponse) String() string
func (*QueryDIDResponse) Unmarshal ¶
func (m *QueryDIDResponse) Unmarshal(dAtA []byte) error
func (*QueryDIDResponse) XXX_DiscardUnknown ¶
func (m *QueryDIDResponse) XXX_DiscardUnknown()
func (*QueryDIDResponse) XXX_Marshal ¶
func (m *QueryDIDResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*QueryDIDResponse) XXX_Merge ¶
func (m *QueryDIDResponse) XXX_Merge(src proto.Message)
func (*QueryDIDResponse) XXX_Size ¶
func (m *QueryDIDResponse) XXX_Size() int
func (*QueryDIDResponse) XXX_Unmarshal ¶
func (m *QueryDIDResponse) XXX_Unmarshal(b []byte) error
type QueryServer ¶
type QueryServer interface { // DID returns a DID Document with a sequence number. DID(context.Context, *QueryDIDRequest) (*QueryDIDResponse, error) }
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"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` ServiceEndpoint string `protobuf:"bytes,3,opt,name=service_endpoint,json=serviceEndpoint,proto3" json:"service_endpoint,omitempty"` }
Service defines a service in the W3C DID Document.
func (*Service) Descriptor ¶
func (*Service) GetServiceEndpoint ¶
func (*Service) MarshalToSizedBuffer ¶
func (*Service) ProtoMessage ¶
func (*Service) ProtoMessage()
func (*Service) XXX_DiscardUnknown ¶
func (m *Service) XXX_DiscardUnknown()
func (*Service) XXX_Marshal ¶
func (*Service) XXX_Unmarshal ¶
type Strings ¶
type Strings struct {
Values []string `protobuf:"bytes,1,rep,name=values,proto3" json:"values,omitempty"`
}
Strings defines a JSON-LD string array format which is marshalled to a single string if the array length is 1.
func (*Strings) Descriptor ¶
func (*Strings) MarshalToSizedBuffer ¶
func (*Strings) ProtoMessage ¶
func (*Strings) ProtoMessage()
func (*Strings) XXX_DiscardUnknown ¶
func (m *Strings) XXX_DiscardUnknown()
func (*Strings) XXX_Marshal ¶
func (*Strings) XXX_Unmarshal ¶
type UnimplementedMsgServer ¶
type UnimplementedMsgServer struct { }
UnimplementedMsgServer can be embedded to have forward compatible implementations.
func (*UnimplementedMsgServer) CreateDID ¶
func (*UnimplementedMsgServer) CreateDID(ctx context.Context, req *MsgCreateDIDRequest) (*MsgCreateDIDResponse, error)
func (*UnimplementedMsgServer) DeactivateDID ¶
func (*UnimplementedMsgServer) DeactivateDID(ctx context.Context, req *MsgDeactivateDIDRequest) (*MsgDeactivateDIDResponse, error)
func (*UnimplementedMsgServer) UpdateDID ¶
func (*UnimplementedMsgServer) UpdateDID(ctx context.Context, req *MsgUpdateDIDRequest) (*MsgUpdateDIDResponse, error)
type UnimplementedQueryServer ¶
type UnimplementedQueryServer struct { }
UnimplementedQueryServer can be embedded to have forward compatible implementations.
func (*UnimplementedQueryServer) DID ¶
func (*UnimplementedQueryServer) DID(ctx context.Context, req *QueryDIDRequest) (*QueryDIDResponse, error)
type VerificationMethod ¶
type VerificationMethod struct { Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` Controller string `protobuf:"bytes,3,opt,name=controller,proto3" json:"controller,omitempty"` PublicKeyBase58 string `protobuf:"bytes,4,opt,name=public_key_base58,json=publicKeyBase58,proto3" json:"public_key_base58,omitempty"` }
VerificationMethod defines a W3C verification method
func NewVerificationMethod ¶
func NewVerificationMethod(id string, keyType string, controller string, pubKey []byte) 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) GetPublicKeyBase58 ¶
func (m *VerificationMethod) GetPublicKeyBase58() string
func (*VerificationMethod) GetType ¶
func (m *VerificationMethod) GetType() 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) 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) Valid ¶
func (pk VerificationMethod) Valid(did string) bool
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
type VerificationRelationship ¶
type VerificationRelationship struct { // VerificationRelationship can be one of a single ID or a VerificationMethod. // // Types that are valid to be assigned to Content: // // *VerificationRelationship_VerificationMethodId // *VerificationRelationship_VerificationMethod Content isVerificationRelationship_Content `protobuf_oneof:"content"` }
VerificationRelationship defines a W3C verification relationship
func NewVerificationRelationship ¶
func NewVerificationRelationship(verificationMethodID string) VerificationRelationship
func NewVerificationRelationshipDedicated ¶
func NewVerificationRelationshipDedicated(verificationMethod VerificationMethod) VerificationRelationship
func (*VerificationRelationship) Descriptor ¶
func (*VerificationRelationship) Descriptor() ([]byte, []int)
func (*VerificationRelationship) GetContent ¶
func (m *VerificationRelationship) GetContent() isVerificationRelationship_Content
func (*VerificationRelationship) GetVerificationMethod ¶
func (m *VerificationRelationship) GetVerificationMethod() *VerificationMethod
func (*VerificationRelationship) GetVerificationMethodId ¶
func (m *VerificationRelationship) GetVerificationMethodId() string
func (*VerificationRelationship) Marshal ¶
func (m *VerificationRelationship) Marshal() (dAtA []byte, err error)
func (VerificationRelationship) MarshalJSON ¶
func (v VerificationRelationship) MarshalJSON() ([]byte, error)
func (*VerificationRelationship) MarshalTo ¶
func (m *VerificationRelationship) MarshalTo(dAtA []byte) (int, error)
func (*VerificationRelationship) MarshalToSizedBuffer ¶
func (m *VerificationRelationship) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VerificationRelationship) ProtoMessage ¶
func (*VerificationRelationship) ProtoMessage()
func (*VerificationRelationship) Reset ¶
func (m *VerificationRelationship) Reset()
func (*VerificationRelationship) Size ¶
func (m *VerificationRelationship) Size() (n int)
func (*VerificationRelationship) String ¶
func (m *VerificationRelationship) String() string
func (*VerificationRelationship) Unmarshal ¶
func (m *VerificationRelationship) Unmarshal(dAtA []byte) error
func (*VerificationRelationship) UnmarshalJSON ¶
func (v *VerificationRelationship) UnmarshalJSON(bz []byte) error
func (VerificationRelationship) Valid ¶
func (v VerificationRelationship) Valid(did string) bool
func (*VerificationRelationship) XXX_DiscardUnknown ¶
func (m *VerificationRelationship) XXX_DiscardUnknown()
func (*VerificationRelationship) XXX_Marshal ¶
func (m *VerificationRelationship) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*VerificationRelationship) XXX_Merge ¶
func (m *VerificationRelationship) XXX_Merge(src proto.Message)
func (*VerificationRelationship) XXX_OneofWrappers ¶
func (*VerificationRelationship) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*VerificationRelationship) XXX_Size ¶
func (m *VerificationRelationship) XXX_Size() int
func (*VerificationRelationship) XXX_Unmarshal ¶
func (m *VerificationRelationship) XXX_Unmarshal(b []byte) error
type VerificationRelationship_VerificationMethod ¶
type VerificationRelationship_VerificationMethod struct {
VerificationMethod *VerificationMethod `protobuf:"bytes,2,opt,name=verification_method,json=verificationMethod,proto3,oneof" json:"verification_method,omitempty"`
}
func (*VerificationRelationship_VerificationMethod) MarshalTo ¶
func (m *VerificationRelationship_VerificationMethod) MarshalTo(dAtA []byte) (int, error)
func (*VerificationRelationship_VerificationMethod) MarshalToSizedBuffer ¶
func (m *VerificationRelationship_VerificationMethod) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VerificationRelationship_VerificationMethod) Size ¶
func (m *VerificationRelationship_VerificationMethod) Size() (n int)
type VerificationRelationship_VerificationMethodId ¶
type VerificationRelationship_VerificationMethodId struct {
VerificationMethodId string `` /* 129-byte string literal not displayed */
}
func (*VerificationRelationship_VerificationMethodId) MarshalTo ¶
func (m *VerificationRelationship_VerificationMethodId) MarshalTo(dAtA []byte) (int, error)
func (*VerificationRelationship_VerificationMethodId) MarshalToSizedBuffer ¶
func (m *VerificationRelationship_VerificationMethodId) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*VerificationRelationship_VerificationMethodId) Size ¶
func (m *VerificationRelationship_VerificationMethodId) Size() (n int)