Documentation
¶
Index ¶
- func GetCredentialIDBytes(id uint64) []byte
- func GetCredentialIDFromBytes(bz []byte) uint64
- func GetProofIDBytes(id uint64) []byte
- func GetProofIDFromBytes(bz []byte) uint64
- func NewMsgServerImpl(keeper Keeper) types.MsgServer
- func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
- type Keeper
- func (k Keeper) AppendCredential(ctx sdk.Context, creator string, issuer string, holder string, claim int32) uint64
- func (k Keeper) AppendProof(ctx sdk.Context, proof types.Proof) uint64
- func (k Keeper) AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
- func (k Keeper) BindPort(ctx sdk.Context, portID string) error
- func (k Keeper) ChanCloseInit(ctx sdk.Context, portID, channelID string) error
- func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
- func (k Keeper) Credential(c context.Context, req *types.QueryGetCredentialRequest) (*types.QueryGetCredentialResponse, error)
- func (k Keeper) CredentialAll(c context.Context, req *types.QueryAllCredentialRequest) (*types.QueryAllCredentialResponse, error)
- func (k Keeper) GetAllCredential(ctx sdk.Context) (list []types.Credential)
- func (k Keeper) GetAllProof(ctx sdk.Context) (list []types.Proof)
- func (k Keeper) GetCredential(ctx sdk.Context, id uint64) types.Credential
- func (k Keeper) GetCredentialCount(ctx sdk.Context) uint64
- func (k Keeper) GetCredentialOwner(ctx sdk.Context, id uint64) string
- func (k Keeper) GetPort(ctx sdk.Context) string
- func (k Keeper) GetProof(ctx sdk.Context, id uint64) types.Proof
- func (k Keeper) GetProofCount(ctx sdk.Context) uint64
- func (k Keeper) GetProofOwner(ctx sdk.Context, id uint64) string
- func (k Keeper) HasCredential(ctx sdk.Context, id uint64) bool
- func (k Keeper) HasProof(ctx sdk.Context, id uint64) bool
- func (k Keeper) IsBound(ctx sdk.Context, portID string) bool
- func (k Keeper) Logger(ctx sdk.Context) log.Logger
- func (k Keeper) OnAcknowledgementVerifiableCredentialPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) OnRecvVerifiableCredentialPacket(ctx sdk.Context, packet channeltypes.Packet, ...) (packetAck types.VerifiableCredentialPacketAck, err error)
- func (k Keeper) OnTimeoutVerifiableCredentialPacket(ctx sdk.Context, packet channeltypes.Packet, ...) error
- func (k Keeper) Proof(c context.Context, req *types.QueryGetProofRequest) (*types.QueryGetProofResponse, error)
- func (k Keeper) ProofAll(c context.Context, req *types.QueryAllProofRequest) (*types.QueryAllProofResponse, error)
- func (k Keeper) RemoveCredential(ctx sdk.Context, id uint64)
- func (k Keeper) RemoveProof(ctx sdk.Context, id uint64)
- func (k Keeper) SetCredential(ctx sdk.Context, credential types.Credential)
- func (k Keeper) SetCredentialCount(ctx sdk.Context, count uint64)
- func (k Keeper) SetPort(ctx sdk.Context, portID string)
- func (k Keeper) SetProof(ctx sdk.Context, proof types.Proof)
- func (k Keeper) SetProofCount(ctx sdk.Context, count uint64)
- func (k Keeper) TransmitVerifiableCredentialPacket(ctx sdk.Context, packetData types.VerifiableCredentialPacketData, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCredentialIDBytes ¶
GetCredentialIDBytes returns the byte representation of the ID
func GetCredentialIDFromBytes ¶
GetCredentialIDFromBytes returns ID in uint64 format from a byte array
func GetProofIDBytes ¶
GetProofIDBytes returns the byte representation of the ID
func GetProofIDFromBytes ¶
GetProofIDFromBytes returns ID in uint64 format from a byte array
func NewMsgServerImpl ¶
NewMsgServerImpl returns an implementation of the MsgServer interface for the provided Keeper.
func NewQuerier ¶
func NewQuerier(k Keeper, legacyQuerierCdc *codec.LegacyAmino) sdk.Querier
Types ¶
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
func NewKeeper ¶
func NewKeeper( cdc codec.Marshaler, storeKey, memKey sdk.StoreKey, channelKeeper types.ChannelKeeper, portKeeper types.PortKeeper, scopedKeeper capabilitykeeper.ScopedKeeper, ) *Keeper
func (Keeper) AppendCredential ¶
func (k Keeper) AppendCredential( ctx sdk.Context, creator string, issuer string, holder string, claim int32, ) uint64
AppendCredential appends a credential in the store with a new id and update the count
func (Keeper) AppendProof ¶
AppendProof appends a proof in the store with a new id and update the count
func (Keeper) AuthenticateCapability ¶
func (k Keeper) AuthenticateCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) bool
AuthenticateCapability wraps the scopedKeeper's AuthenticateCapability function
func (Keeper) BindPort ¶
BindPort defines a wrapper function for the ort Keeper's function in order to expose it to module's InitGenesis function
func (Keeper) ChanCloseInit ¶
ChanCloseInit defines a wrapper function for the channel Keeper's function
func (Keeper) ClaimCapability ¶
func (k Keeper) ClaimCapability(ctx sdk.Context, cap *capabilitytypes.Capability, name string) error
ClaimCapability allows the module that can claim a capability that IBC module passes to it
func (Keeper) Credential ¶
func (k Keeper) Credential(c context.Context, req *types.QueryGetCredentialRequest) (*types.QueryGetCredentialResponse, error)
func (Keeper) CredentialAll ¶
func (k Keeper) CredentialAll(c context.Context, req *types.QueryAllCredentialRequest) (*types.QueryAllCredentialResponse, error)
func (Keeper) GetAllCredential ¶
func (k Keeper) GetAllCredential(ctx sdk.Context) (list []types.Credential)
GetAllCredential returns all credential
func (Keeper) GetAllProof ¶
GetAllProof returns all proof
func (Keeper) GetCredential ¶
GetCredential returns a credential from its id
func (Keeper) GetCredentialCount ¶
GetCredentialCount get the total number of credential
func (Keeper) GetCredentialOwner ¶
GetCredentialOwner returns the creator of the credential
func (Keeper) GetProofCount ¶
GetProofCount get the total number of proof
func (Keeper) GetProofOwner ¶
GetProofOwner returns the creator of the proof
func (Keeper) HasCredential ¶
HasCredential checks if the credential exists in the store
func (Keeper) OnAcknowledgementVerifiableCredentialPacket ¶
func (k Keeper) OnAcknowledgementVerifiableCredentialPacket(ctx sdk.Context, packet channeltypes.Packet, data types.VerifiableCredentialPacketData, ack channeltypes.Acknowledgement) error
OnAcknowledgementVerifiableCredentialPacket responds to the the success or failure of a packet acknowledgement written on the receiving chain.
func (Keeper) OnRecvVerifiableCredentialPacket ¶
func (k Keeper) OnRecvVerifiableCredentialPacket(ctx sdk.Context, packet channeltypes.Packet, data types.VerifiableCredentialPacketData) (packetAck types.VerifiableCredentialPacketAck, err error)
OnRecvVerifiableCredentialPacket processes packet reception
func (Keeper) OnTimeoutVerifiableCredentialPacket ¶
func (k Keeper) OnTimeoutVerifiableCredentialPacket(ctx sdk.Context, packet channeltypes.Packet, data types.VerifiableCredentialPacketData) error
OnTimeoutVerifiableCredentialPacket responds to the case where a packet has not been transmitted because of a timeout
func (Keeper) Proof ¶
func (k Keeper) Proof(c context.Context, req *types.QueryGetProofRequest) (*types.QueryGetProofResponse, error)
func (Keeper) ProofAll ¶
func (k Keeper) ProofAll(c context.Context, req *types.QueryAllProofRequest) (*types.QueryAllProofResponse, error)
func (Keeper) RemoveCredential ¶
RemoveCredential removes a credential from the store
func (Keeper) RemoveProof ¶
RemoveProof removes a proof from the store
func (Keeper) SetCredential ¶
func (k Keeper) SetCredential(ctx sdk.Context, credential types.Credential)
SetCredential set a specific credential in the store
func (Keeper) SetCredentialCount ¶
SetCredentialCount set the total number of credential
func (Keeper) SetProofCount ¶
SetProofCount set the total number of proof
func (Keeper) TransmitVerifiableCredentialPacket ¶
func (k Keeper) TransmitVerifiableCredentialPacket( ctx sdk.Context, packetData types.VerifiableCredentialPacketData, sourcePort, sourceChannel string, timeoutHeight clienttypes.Height, timeoutTimestamp uint64, ) error
TransmitVerifiableCredentialPacket transmits the packet over IBC with the specified source port and source channel