Documentation ¶
Index ¶
- Constants
- Variables
- func KeyPrefix(p string) []byte
- func ParamKeyTable() paramtypes.KeyTable
- func RegisterCodec(cdc *codec.LegacyAmino)
- func RegisterInterfaces(registry cdctypes.InterfaceRegistry)
- func RegisterMsgServer(s grpc1.Server, srv MsgServer)
- func RegisterQueryServer(s grpc1.Server, srv QueryServer)
- type DidKeeper
- type GenesisState
- func (*GenesisState) Descriptor() ([]byte, []int)
- func (m *GenesisState) GetRegulators() *Regulators
- 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 (gs 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 MsgClient
- type MsgIssueLicenseCredential
- func (*MsgIssueLicenseCredential) Descriptor() ([]byte, []int)
- func (m *MsgIssueLicenseCredential) GetSignBytes() []byte
- func (m *MsgIssueLicenseCredential) GetSigners() []sdk.AccAddress
- func (m *MsgIssueLicenseCredential) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueLicenseCredential) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueLicenseCredential) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueLicenseCredential) ProtoMessage()
- func (m *MsgIssueLicenseCredential) Reset()
- func (m *MsgIssueLicenseCredential) Route() string
- func (m *MsgIssueLicenseCredential) Size() (n int)
- func (m *MsgIssueLicenseCredential) String() string
- func (m *MsgIssueLicenseCredential) Type() string
- func (m *MsgIssueLicenseCredential) Unmarshal(dAtA []byte) error
- func (m *MsgIssueLicenseCredential) ValidateBasic() error
- func (m *MsgIssueLicenseCredential) XXX_DiscardUnknown()
- func (m *MsgIssueLicenseCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueLicenseCredential) XXX_Merge(src proto.Message)
- func (m *MsgIssueLicenseCredential) XXX_Size() int
- func (m *MsgIssueLicenseCredential) XXX_Unmarshal(b []byte) error
- type MsgIssueLicenseCredentialResponse
- func (*MsgIssueLicenseCredentialResponse) Descriptor() ([]byte, []int)
- func (m *MsgIssueLicenseCredentialResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueLicenseCredentialResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueLicenseCredentialResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueLicenseCredentialResponse) ProtoMessage()
- func (m *MsgIssueLicenseCredentialResponse) Reset()
- func (m *MsgIssueLicenseCredentialResponse) Size() (n int)
- func (m *MsgIssueLicenseCredentialResponse) String() string
- func (m *MsgIssueLicenseCredentialResponse) Unmarshal(dAtA []byte) error
- func (m *MsgIssueLicenseCredentialResponse) XXX_DiscardUnknown()
- func (m *MsgIssueLicenseCredentialResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueLicenseCredentialResponse) XXX_Merge(src proto.Message)
- func (m *MsgIssueLicenseCredentialResponse) XXX_Size() int
- func (m *MsgIssueLicenseCredentialResponse) XXX_Unmarshal(b []byte) error
- type MsgIssueRegistrationCredential
- func (*MsgIssueRegistrationCredential) Descriptor() ([]byte, []int)
- func (m *MsgIssueRegistrationCredential) GetSignBytes() []byte
- func (m *MsgIssueRegistrationCredential) GetSigners() []sdk.AccAddress
- func (m *MsgIssueRegistrationCredential) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueRegistrationCredential) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueRegistrationCredential) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueRegistrationCredential) ProtoMessage()
- func (m *MsgIssueRegistrationCredential) Reset()
- func (m *MsgIssueRegistrationCredential) Route() string
- func (m *MsgIssueRegistrationCredential) Size() (n int)
- func (m *MsgIssueRegistrationCredential) String() string
- func (m *MsgIssueRegistrationCredential) Type() string
- func (m *MsgIssueRegistrationCredential) Unmarshal(dAtA []byte) error
- func (m *MsgIssueRegistrationCredential) ValidateBasic() error
- func (m *MsgIssueRegistrationCredential) XXX_DiscardUnknown()
- func (m *MsgIssueRegistrationCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueRegistrationCredential) XXX_Merge(src proto.Message)
- func (m *MsgIssueRegistrationCredential) XXX_Size() int
- func (m *MsgIssueRegistrationCredential) XXX_Unmarshal(b []byte) error
- type MsgIssueRegistrationCredentialResponse
- func (*MsgIssueRegistrationCredentialResponse) Descriptor() ([]byte, []int)
- func (m *MsgIssueRegistrationCredentialResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueRegistrationCredentialResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueRegistrationCredentialResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueRegistrationCredentialResponse) ProtoMessage()
- func (m *MsgIssueRegistrationCredentialResponse) Reset()
- func (m *MsgIssueRegistrationCredentialResponse) Size() (n int)
- func (m *MsgIssueRegistrationCredentialResponse) String() string
- func (m *MsgIssueRegistrationCredentialResponse) Unmarshal(dAtA []byte) error
- func (m *MsgIssueRegistrationCredentialResponse) XXX_DiscardUnknown()
- func (m *MsgIssueRegistrationCredentialResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueRegistrationCredentialResponse) XXX_Merge(src proto.Message)
- func (m *MsgIssueRegistrationCredentialResponse) XXX_Size() int
- func (m *MsgIssueRegistrationCredentialResponse) XXX_Unmarshal(b []byte) error
- type MsgIssueRegulatorCredential
- func (*MsgIssueRegulatorCredential) Descriptor() ([]byte, []int)
- func (m *MsgIssueRegulatorCredential) GetSignBytes() []byte
- func (m *MsgIssueRegulatorCredential) GetSigners() []sdk.AccAddress
- func (m *MsgIssueRegulatorCredential) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueRegulatorCredential) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueRegulatorCredential) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueRegulatorCredential) ProtoMessage()
- func (m *MsgIssueRegulatorCredential) Reset()
- func (m *MsgIssueRegulatorCredential) Route() string
- func (m *MsgIssueRegulatorCredential) Size() (n int)
- func (m *MsgIssueRegulatorCredential) String() string
- func (m *MsgIssueRegulatorCredential) Type() string
- func (m *MsgIssueRegulatorCredential) Unmarshal(dAtA []byte) error
- func (m *MsgIssueRegulatorCredential) ValidateBasic() error
- func (m *MsgIssueRegulatorCredential) XXX_DiscardUnknown()
- func (m *MsgIssueRegulatorCredential) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueRegulatorCredential) XXX_Merge(src proto.Message)
- func (m *MsgIssueRegulatorCredential) XXX_Size() int
- func (m *MsgIssueRegulatorCredential) XXX_Unmarshal(b []byte) error
- type MsgIssueRegulatorCredentialResponse
- func (*MsgIssueRegulatorCredentialResponse) Descriptor() ([]byte, []int)
- func (m *MsgIssueRegulatorCredentialResponse) Marshal() (dAtA []byte, err error)
- func (m *MsgIssueRegulatorCredentialResponse) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgIssueRegulatorCredentialResponse) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgIssueRegulatorCredentialResponse) ProtoMessage()
- func (m *MsgIssueRegulatorCredentialResponse) Reset()
- func (m *MsgIssueRegulatorCredentialResponse) Size() (n int)
- func (m *MsgIssueRegulatorCredentialResponse) String() string
- func (m *MsgIssueRegulatorCredentialResponse) Unmarshal(dAtA []byte) error
- func (m *MsgIssueRegulatorCredentialResponse) XXX_DiscardUnknown()
- func (m *MsgIssueRegulatorCredentialResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgIssueRegulatorCredentialResponse) XXX_Merge(src proto.Message)
- func (m *MsgIssueRegulatorCredentialResponse) XXX_Size() int
- func (m *MsgIssueRegulatorCredentialResponse) XXX_Unmarshal(b []byte) error
- type MsgServer
- type Params
- type QueryClient
- type QueryServer
- type Regulators
- func (*Regulators) Descriptor() ([]byte, []int)
- func (m Regulators) Equal(dp2 Regulators) bool
- func (m *Regulators) GetAddresses() []string
- func (m *Regulators) GetDids() map[string]string
- func (m *Regulators) Marshal() (dAtA []byte, err error)
- func (m *Regulators) MarshalTo(dAtA []byte) (int, error)
- func (m *Regulators) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Regulators) ProtoMessage()
- func (m *Regulators) Reset()
- func (m *Regulators) Size() (n int)
- func (m *Regulators) String() string
- func (m *Regulators) Unmarshal(dAtA []byte) error
- func (m *Regulators) XXX_DiscardUnknown()
- func (m *Regulators) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Regulators) XXX_Merge(src proto.Message)
- func (m *Regulators) XXX_Size() int
- func (m *Regulators) XXX_Unmarshal(b []byte) error
- type UnimplementedMsgServer
- func (*UnimplementedMsgServer) IssueLicenseCredential(ctx context.Context, req *MsgIssueLicenseCredential) (*MsgIssueLicenseCredentialResponse, error)
- func (*UnimplementedMsgServer) IssueRegistrationCredential(ctx context.Context, req *MsgIssueRegistrationCredential) (*MsgIssueRegistrationCredentialResponse, error)
- func (*UnimplementedMsgServer) IssueRegulatorCredential(ctx context.Context, req *MsgIssueRegulatorCredential) (*MsgIssueRegulatorCredentialResponse, error)
- type UnimplementedQueryServer
- type VcKeeper
Constants ¶
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" )
const ( TypeMsgIssueRegulatorCredential = "issuer-regulator-credential" TypeMsgIssueRegistrationCredential = "issuer-registration-credential" TypeMsgIssueLicenseCredential = "issuer-license-credential" )
define message types
const DefaultIndex uint64 = 1
DefaultIndex is the default capability global index
Variables ¶
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
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 ( ErrInvalidLengthTx = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTx = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupTx = fmt.Errorf("proto: unexpected end of group") )
var ( // ModuleCdc codec used by the module (protobuf) ModuleCdc = codec.NewProtoCodec(cdctypes.NewInterfaceRegistry()) )
var (
ParamStoreKeyRegulators = []byte("regulators_keys")
)
ParamStoreKeyRegulators key to store the parameters on
Functions ¶
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 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) 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 ¶
func (m *MsgIssueLicenseCredential) Type() string
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 (m *MsgIssueLicenseCredentialResponse) Reset()
func (*MsgIssueLicenseCredentialResponse) Size ¶
func (m *MsgIssueLicenseCredentialResponse) Size() (n int)
func (*MsgIssueLicenseCredentialResponse) String ¶
func (m *MsgIssueLicenseCredentialResponse) String() 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 (m *MsgIssueLicenseCredentialResponse) XXX_Merge(src proto.Message)
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 ¶
func (m *MsgIssueRegistrationCredential) Route() string
Route returns the module router key
func (*MsgIssueRegistrationCredential) Size ¶
func (m *MsgIssueRegistrationCredential) Size() (n int)
func (*MsgIssueRegistrationCredential) String ¶
func (m *MsgIssueRegistrationCredential) String() string
func (*MsgIssueRegistrationCredential) Type ¶
func (m *MsgIssueRegistrationCredential) Type() string
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) ProtoMessage()
func (*MsgIssueRegistrationCredentialResponse) Reset ¶
func (m *MsgIssueRegistrationCredentialResponse) Reset()
func (*MsgIssueRegistrationCredentialResponse) Size ¶
func (m *MsgIssueRegistrationCredentialResponse) Size() (n int)
func (*MsgIssueRegistrationCredentialResponse) String ¶
func (m *MsgIssueRegistrationCredentialResponse) String() 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 (m *MsgIssueRegistrationCredentialResponse) XXX_Merge(src proto.Message)
func (*MsgIssueRegistrationCredentialResponse) XXX_Size ¶
func (m *MsgIssueRegistrationCredentialResponse) XXX_Size() int
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 (m *MsgIssueRegulatorCredential) Route() string
func (*MsgIssueRegulatorCredential) Size ¶
func (m *MsgIssueRegulatorCredential) Size() (n int)
func (*MsgIssueRegulatorCredential) String ¶
func (m *MsgIssueRegulatorCredential) String() string
func (*MsgIssueRegulatorCredential) Type ¶
func (m *MsgIssueRegulatorCredential) Type() string
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 (m *MsgIssueRegulatorCredentialResponse) Reset()
func (*MsgIssueRegulatorCredentialResponse) Size ¶
func (m *MsgIssueRegulatorCredentialResponse) Size() (n int)
func (*MsgIssueRegulatorCredentialResponse) String ¶
func (m *MsgIssueRegulatorCredentialResponse) String() 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 (m *MsgIssueRegulatorCredentialResponse) XXX_Merge(src proto.Message)
func (*MsgIssueRegulatorCredentialResponse) XXX_Size ¶
func (m *MsgIssueRegulatorCredentialResponse) XXX_Size() int
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
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 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) 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) IssueLicenseCredential(ctx context.Context, req *MsgIssueLicenseCredential) (*MsgIssueLicenseCredentialResponse, error)
func (*UnimplementedMsgServer) IssueRegistrationCredential ¶
func (*UnimplementedMsgServer) IssueRegistrationCredential(ctx context.Context, req *MsgIssueRegistrationCredential) (*MsgIssueRegistrationCredentialResponse, error)
func (*UnimplementedMsgServer) IssueRegulatorCredential ¶
func (*UnimplementedMsgServer) IssueRegulatorCredential(ctx context.Context, req *MsgIssueRegulatorCredential) (*MsgIssueRegulatorCredentialResponse, error)
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