types

package
v2.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2021 License: Apache-2.0 Imports: 21 Imported by: 1

Documentation

Index

Constants

View Source
const (
	// ModuleName defines the module name
	ModuleName = "regulator"

	// 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_regulator"
)
View Source
const (
	TypeMsgIssueRegulatorCredential    = "issuer-regulator-credential"
	TypeMsgIssueRegistrationCredential = "issuer-registration-credential"
	TypeMsgIssueLicenseCredential      = "issuer-license-credential"
)

define message types

View Source
const DefaultIndex uint64 = 1

DefaultIndex is the default capability global index

Variables

View Source
var (
	ErrNotARegulator = sdkerrors.Register(ModuleName, 1100, "address is not registered as regulator")
	ErrAlreadyActive = sdkerrors.Register(ModuleName, 1101, "the regulator credential has already been issued for this address")
	ErrNotRegistered = sdkerrors.Register(ModuleName, 1102, "the license credential subject does not hold a valid registration credential")
)

x/regulator module sentinel errors

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 (
	ErrInvalidLengthTx        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowTx          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group")
)
View Source
var (
	// ModuleCdc codec used by the module (protobuf)
	ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry())
)
View Source
var (
	ParamStoreKeyRegulators = []byte("regulators_keys")
)

ParamStoreKeyRegulators key to store the parameters on

Functions

func KeyPrefix

func KeyPrefix(p string) []byte

func ParamKeyTable

func ParamKeyTable() paramtypes.KeyTable

ParamKeyTable - Key declaration for parameters

func RegisterCodec

func RegisterCodec(cdc *codec.LegacyAmino)

func RegisterInterfaces

func RegisterInterfaces(registry cdctypes.InterfaceRegistry)

func RegisterMsgServer

func RegisterMsgServer(s grpc1.Server, srv MsgServer)

func RegisterQueryServer

func RegisterQueryServer(s grpc1.Server, srv QueryServer)

Types

type DidKeeper

type DidKeeper interface {
	GetDidDocument(ctx sdk.Context, key []byte) (didtypes.DidDocument, bool)
	SetDidDocument(ctx sdk.Context, key []byte, didDoc didtypes.DidDocument)
	SetDidMetadata(ctx sdk.Context, key []byte, didMeta didtypes.DidMetadata)
}

DidKeeper defines the expected did keeper functions

type GenesisState

type GenesisState struct {
	// this line is used by starport scaffolding # genesis/proto/state
	// this line is used by starport scaffolding # ibc/genesis/proto
	Regulators *Regulators `protobuf:"bytes,1,opt,name=regulators,proto3" json:"regulators,omitempty"`
}

GenesisState defines the regulator module's genesis state.

func DefaultGenesis

func DefaultGenesis(addresses ...string) *GenesisState

DefaultGenesis returns the default Capability genesis state

func (*GenesisState) Descriptor

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

func (*GenesisState) GetRegulators

func (m *GenesisState) GetRegulators() *Regulators

func (*GenesisState) Marshal

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

func (*GenesisState) MarshalTo

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

func (*GenesisState) MarshalToSizedBuffer

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

func (*GenesisState) ProtoMessage

func (*GenesisState) ProtoMessage()

func (*GenesisState) Reset

func (m *GenesisState) Reset()

func (*GenesisState) Size

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

func (*GenesisState) String

func (m *GenesisState) String() string

func (*GenesisState) Unmarshal

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

func (GenesisState) Validate

func (gs GenesisState) Validate() error

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

func (*GenesisState) 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 MsgClient

type MsgClient interface {
	// this line is used by starport scaffolding # proto/tx/rpc
	// Activate issue regulator credential to activate a regulator on chain
	IssueRegulatorCredential(ctx context.Context, in *MsgIssueRegulatorCredential, opts ...grpc.CallOption) (*MsgIssueRegulatorCredentialResponse, error)
	// IssueRegistrationCredential issue a new registration credential for a public entity
	IssueRegistrationCredential(ctx context.Context, in *MsgIssueRegistrationCredential, opts ...grpc.CallOption) (*MsgIssueRegistrationCredentialResponse, error)
	// IssueLicenseCredential issue a license to to a registered entity
	IssueLicenseCredential(ctx context.Context, in *MsgIssueLicenseCredential, opts ...grpc.CallOption) (*MsgIssueLicenseCredentialResponse, 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 MsgIssueLicenseCredential

type MsgIssueLicenseCredential struct {
	Credential *types.VerifiableCredential `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"`
	Owner      string                      `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
}

MsgIssueLicenseCredential message contains data for license credential

func NewMsgIssueLicenseCredential

func NewMsgIssueLicenseCredential(credential vctypes.VerifiableCredential, signerAccount string) *MsgIssueLicenseCredential

NewMsgIssueLicenseCredential builds a new instance of a IssuerLicenceCredential message

func (*MsgIssueLicenseCredential) Descriptor

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

func (*MsgIssueLicenseCredential) GetSignBytes

func (m *MsgIssueLicenseCredential) GetSignBytes() []byte

GetSignBytes returns the bytes of the signed message

func (*MsgIssueLicenseCredential) GetSigners

func (m *MsgIssueLicenseCredential) GetSigners() []sdk.AccAddress

GetSigners returns the account addresses singing the message

func (*MsgIssueLicenseCredential) Marshal

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

func (*MsgIssueLicenseCredential) MarshalTo

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

func (*MsgIssueLicenseCredential) MarshalToSizedBuffer

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

func (*MsgIssueLicenseCredential) ProtoMessage

func (*MsgIssueLicenseCredential) ProtoMessage()

func (*MsgIssueLicenseCredential) Reset

func (m *MsgIssueLicenseCredential) Reset()

func (*MsgIssueLicenseCredential) Route

func (m *MsgIssueLicenseCredential) Route() string

Route returns the module router key

func (*MsgIssueLicenseCredential) Size

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

func (*MsgIssueLicenseCredential) String

func (m *MsgIssueLicenseCredential) String() string

func (*MsgIssueLicenseCredential) Type

Type returns the string name of the message

func (*MsgIssueLicenseCredential) Unmarshal

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

func (*MsgIssueLicenseCredential) ValidateBasic

func (m *MsgIssueLicenseCredential) ValidateBasic() error

ValidateBasic performs basic validation of the message

func (*MsgIssueLicenseCredential) XXX_DiscardUnknown

func (m *MsgIssueLicenseCredential) XXX_DiscardUnknown()

func (*MsgIssueLicenseCredential) XXX_Marshal

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

func (*MsgIssueLicenseCredential) XXX_Merge

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

func (*MsgIssueLicenseCredential) XXX_Size

func (m *MsgIssueLicenseCredential) XXX_Size() int

func (*MsgIssueLicenseCredential) XXX_Unmarshal

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

type MsgIssueLicenseCredentialResponse

type MsgIssueLicenseCredentialResponse struct {
}

MsgIssueLicenseCredentialResponse reply for the issue license call

func (*MsgIssueLicenseCredentialResponse) Descriptor

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

func (*MsgIssueLicenseCredentialResponse) Marshal

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

func (*MsgIssueLicenseCredentialResponse) MarshalTo

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

func (*MsgIssueLicenseCredentialResponse) MarshalToSizedBuffer

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

func (*MsgIssueLicenseCredentialResponse) ProtoMessage

func (*MsgIssueLicenseCredentialResponse) ProtoMessage()

func (*MsgIssueLicenseCredentialResponse) Reset

func (*MsgIssueLicenseCredentialResponse) Size

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

func (*MsgIssueLicenseCredentialResponse) String

func (*MsgIssueLicenseCredentialResponse) Unmarshal

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

func (*MsgIssueLicenseCredentialResponse) XXX_DiscardUnknown

func (m *MsgIssueLicenseCredentialResponse) XXX_DiscardUnknown()

func (*MsgIssueLicenseCredentialResponse) XXX_Marshal

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

func (*MsgIssueLicenseCredentialResponse) XXX_Merge

func (*MsgIssueLicenseCredentialResponse) XXX_Size

func (m *MsgIssueLicenseCredentialResponse) XXX_Size() int

func (*MsgIssueLicenseCredentialResponse) XXX_Unmarshal

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

type MsgIssueRegistrationCredential

type MsgIssueRegistrationCredential struct {
	Credential *types.VerifiableCredential `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"`
	Owner      string                      `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
}

func NewMsgIssueRegistrationCredential

func NewMsgIssueRegistrationCredential(credential vctypes.VerifiableCredential, signerAccount string) *MsgIssueRegistrationCredential

NewMsgIssueRegistrationCredential builds a new instance of a the message

func (*MsgIssueRegistrationCredential) Descriptor

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

func (*MsgIssueRegistrationCredential) GetSignBytes

func (m *MsgIssueRegistrationCredential) GetSignBytes() []byte

GetSignBytes returns the bytes of the signed message

func (*MsgIssueRegistrationCredential) GetSigners

func (m *MsgIssueRegistrationCredential) GetSigners() []sdk.AccAddress

GetSigners returns the account addresses singing the message

func (*MsgIssueRegistrationCredential) Marshal

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

func (*MsgIssueRegistrationCredential) MarshalTo

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

func (*MsgIssueRegistrationCredential) MarshalToSizedBuffer

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

func (*MsgIssueRegistrationCredential) ProtoMessage

func (*MsgIssueRegistrationCredential) ProtoMessage()

func (*MsgIssueRegistrationCredential) Reset

func (m *MsgIssueRegistrationCredential) Reset()

func (*MsgIssueRegistrationCredential) Route

Route returns the module router key

func (*MsgIssueRegistrationCredential) Size

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

func (*MsgIssueRegistrationCredential) String

func (*MsgIssueRegistrationCredential) Type

Type returns the string name of the message

func (*MsgIssueRegistrationCredential) Unmarshal

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

func (*MsgIssueRegistrationCredential) ValidateBasic

func (m *MsgIssueRegistrationCredential) ValidateBasic() error

ValidateBasic performs basic validation of the message

func (*MsgIssueRegistrationCredential) XXX_DiscardUnknown

func (m *MsgIssueRegistrationCredential) XXX_DiscardUnknown()

func (*MsgIssueRegistrationCredential) XXX_Marshal

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

func (*MsgIssueRegistrationCredential) XXX_Merge

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

func (*MsgIssueRegistrationCredential) XXX_Size

func (m *MsgIssueRegistrationCredential) XXX_Size() int

func (*MsgIssueRegistrationCredential) XXX_Unmarshal

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

type MsgIssueRegistrationCredentialResponse

type MsgIssueRegistrationCredentialResponse struct {
}

MsgIssueRegistrationCredentialResponse reply for the IssueRegistartion call

func (*MsgIssueRegistrationCredentialResponse) Descriptor

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

func (*MsgIssueRegistrationCredentialResponse) Marshal

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

func (*MsgIssueRegistrationCredentialResponse) MarshalTo

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

func (*MsgIssueRegistrationCredentialResponse) MarshalToSizedBuffer

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

func (*MsgIssueRegistrationCredentialResponse) ProtoMessage

func (*MsgIssueRegistrationCredentialResponse) Reset

func (*MsgIssueRegistrationCredentialResponse) Size

func (*MsgIssueRegistrationCredentialResponse) String

func (*MsgIssueRegistrationCredentialResponse) Unmarshal

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

func (*MsgIssueRegistrationCredentialResponse) XXX_DiscardUnknown

func (m *MsgIssueRegistrationCredentialResponse) XXX_DiscardUnknown()

func (*MsgIssueRegistrationCredentialResponse) XXX_Marshal

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

func (*MsgIssueRegistrationCredentialResponse) XXX_Merge

func (*MsgIssueRegistrationCredentialResponse) XXX_Size

func (*MsgIssueRegistrationCredentialResponse) XXX_Unmarshal

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

type MsgIssueRegulatorCredential

type MsgIssueRegulatorCredential struct {
	Credential *types.VerifiableCredential `protobuf:"bytes,1,opt,name=credential,proto3" json:"credential,omitempty"`
	Owner      string                      `protobuf:"bytes,2,opt,name=owner,proto3" json:"owner,omitempty"`
}

MsgIssueRegulatorCredential is used to activate a regulator on chain

func NewMsgIssueRegulatorCredential

func NewMsgIssueRegulatorCredential(credential vctypes.VerifiableCredential, signerAccount string) *MsgIssueRegulatorCredential

func (*MsgIssueRegulatorCredential) Descriptor

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

func (*MsgIssueRegulatorCredential) GetSignBytes

func (m *MsgIssueRegulatorCredential) GetSignBytes() []byte

func (*MsgIssueRegulatorCredential) GetSigners

func (m *MsgIssueRegulatorCredential) GetSigners() []sdk.AccAddress

func (*MsgIssueRegulatorCredential) Marshal

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

func (*MsgIssueRegulatorCredential) MarshalTo

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

func (*MsgIssueRegulatorCredential) MarshalToSizedBuffer

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

func (*MsgIssueRegulatorCredential) ProtoMessage

func (*MsgIssueRegulatorCredential) ProtoMessage()

func (*MsgIssueRegulatorCredential) Reset

func (m *MsgIssueRegulatorCredential) Reset()

func (*MsgIssueRegulatorCredential) Route

func (*MsgIssueRegulatorCredential) Size

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

func (*MsgIssueRegulatorCredential) String

func (m *MsgIssueRegulatorCredential) String() string

func (*MsgIssueRegulatorCredential) Type

func (*MsgIssueRegulatorCredential) Unmarshal

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

func (*MsgIssueRegulatorCredential) ValidateBasic

func (m *MsgIssueRegulatorCredential) ValidateBasic() error

func (*MsgIssueRegulatorCredential) XXX_DiscardUnknown

func (m *MsgIssueRegulatorCredential) XXX_DiscardUnknown()

func (*MsgIssueRegulatorCredential) XXX_Marshal

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

func (*MsgIssueRegulatorCredential) XXX_Merge

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

func (*MsgIssueRegulatorCredential) XXX_Size

func (m *MsgIssueRegulatorCredential) XXX_Size() int

func (*MsgIssueRegulatorCredential) XXX_Unmarshal

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

type MsgIssueRegulatorCredentialResponse

type MsgIssueRegulatorCredentialResponse struct {
}

MsgActivateResponse contains the reponse for a successful activation of a regulator on chain

func (*MsgIssueRegulatorCredentialResponse) Descriptor

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

func (*MsgIssueRegulatorCredentialResponse) Marshal

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

func (*MsgIssueRegulatorCredentialResponse) MarshalTo

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

func (*MsgIssueRegulatorCredentialResponse) MarshalToSizedBuffer

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

func (*MsgIssueRegulatorCredentialResponse) ProtoMessage

func (*MsgIssueRegulatorCredentialResponse) ProtoMessage()

func (*MsgIssueRegulatorCredentialResponse) Reset

func (*MsgIssueRegulatorCredentialResponse) Size

func (*MsgIssueRegulatorCredentialResponse) String

func (*MsgIssueRegulatorCredentialResponse) Unmarshal

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

func (*MsgIssueRegulatorCredentialResponse) XXX_DiscardUnknown

func (m *MsgIssueRegulatorCredentialResponse) XXX_DiscardUnknown()

func (*MsgIssueRegulatorCredentialResponse) XXX_Marshal

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

func (*MsgIssueRegulatorCredentialResponse) XXX_Merge

func (*MsgIssueRegulatorCredentialResponse) XXX_Size

func (*MsgIssueRegulatorCredentialResponse) XXX_Unmarshal

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

type MsgServer

type MsgServer interface {
	// this line is used by starport scaffolding # proto/tx/rpc
	// Activate issue regulator credential to activate a regulator on chain
	IssueRegulatorCredential(context.Context, *MsgIssueRegulatorCredential) (*MsgIssueRegulatorCredentialResponse, error)
	// IssueRegistrationCredential issue a new registration credential for a public entity
	IssueRegistrationCredential(context.Context, *MsgIssueRegistrationCredential) (*MsgIssueRegistrationCredentialResponse, error)
	// IssueLicenseCredential issue a license to to a registered entity
	IssueLicenseCredential(context.Context, *MsgIssueLicenseCredential) (*MsgIssueLicenseCredentialResponse, error)
}

MsgServer is the server API for Msg service.

type Params

type Params struct {
	Regulators Regulators `json:"regulators_params" yaml:"regulators_params"`
}

Params returns all the regulators params

func DefaultParams

func DefaultParams() Params

DefaultParams default governance params

func NewParams

func NewParams(m Regulators) Params

NewParams creates a new gov Params instance

type QueryClient

type QueryClient interface {
}

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 QueryServer

type QueryServer interface {
}

QueryServer is the server API for Query service.

type Regulators

type Regulators struct {
	// the addresses of the regualtors for the chain. The addresses will be used to
	// generate DID documents at genesis.
	Addresses []string `protobuf:"bytes,1,rep,name=addresses,proto3" json:"addresses,omitempty" yaml:"addresses"`
	// DIDs is a map that is filled at init gensis time and contains:
	// <regulator address, generated uuid did>
	Dids map[string]string `` /* 149-byte string literal not displayed */
}

RegulatorsParams defines the addresses of the regulators

func DefaultRegulators

func DefaultRegulators() Regulators

DefaultRegulators default parameters for deposits

func NewRegulators

func NewRegulators(addresses ...string) Regulators

NewRegulators creates a new Regulators object

func (*Regulators) Descriptor

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

func (Regulators) Equal

func (m Regulators) Equal(dp2 Regulators) bool

Equal checks equality of Regulators

func (*Regulators) GetAddresses

func (m *Regulators) GetAddresses() []string

func (*Regulators) GetDids

func (m *Regulators) GetDids() map[string]string

func (*Regulators) Marshal

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

func (*Regulators) MarshalTo

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

func (*Regulators) MarshalToSizedBuffer

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

func (*Regulators) ProtoMessage

func (*Regulators) ProtoMessage()

func (*Regulators) Reset

func (m *Regulators) Reset()

func (*Regulators) Size

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

func (*Regulators) String

func (m *Regulators) String() string

func (*Regulators) Unmarshal

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

func (*Regulators) XXX_DiscardUnknown

func (m *Regulators) XXX_DiscardUnknown()

func (*Regulators) XXX_Marshal

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

func (*Regulators) XXX_Merge

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

func (*Regulators) XXX_Size

func (m *Regulators) XXX_Size() int

func (*Regulators) XXX_Unmarshal

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

type UnimplementedMsgServer

type UnimplementedMsgServer struct {
}

UnimplementedMsgServer can be embedded to have forward compatible implementations.

func (*UnimplementedMsgServer) IssueLicenseCredential

func (*UnimplementedMsgServer) IssueRegulatorCredential

type UnimplementedQueryServer

type UnimplementedQueryServer struct {
}

UnimplementedQueryServer can be embedded to have forward compatible implementations.

type VcKeeper

type VcKeeper interface {
	SetVerifiableCredential(ctx sdk.Context, key []byte, vc vctypes.VerifiableCredential) error
	GetVerifiableCredentialWithType(ctx sdk.Context, subjectDID, vcType string) []vctypes.VerifiableCredential
}

VcKeeper defines the expected verifiable credentials keeper functions

Jump to

Keyboard shortcuts

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