Documentation ¶
Index ¶
- Variables
- func GetClaimRecordKey(uuid string) []byte
- func GetClaimsAccountKey(addr []byte) []byte
- func GetClaimsOwnerKey(addr []byte) []byte
- func NewHandler(k Keeper) sdk.Handler
- func RegisterWire(cdc *wire.Codec)
- type Claim
- type ClaimMetadata
- type Content
- type Keeper
- type MsgCreateClaim
- func (msg MsgCreateClaim) Get(key interface{}) (value interface{})
- func (msg MsgCreateClaim) GetSignBytes() []byte
- func (msg MsgCreateClaim) GetSigners() []sdk.Address
- func (msg MsgCreateClaim) String() string
- func (msg MsgCreateClaim) Type() string
- func (msg MsgCreateClaim) ValidateBasic() sdk.Error
- type MsgRevokeClaim
- func (msg MsgRevokeClaim) Get(key interface{}) (value interface{})
- func (msg MsgRevokeClaim) GetSignBytes() []byte
- func (msg MsgRevokeClaim) GetSigners() []sdk.Address
- func (msg MsgRevokeClaim) String() string
- func (msg MsgRevokeClaim) Type() string
- func (msg MsgRevokeClaim) ValidateBasic() sdk.Error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ClaimRecordKeyPrefix for store prefixes ClaimRecordKeyPrefix = []byte{0x00} // prefix for each key to a candidate ClaimsAccountKeyPrefix = []byte{0x01} ClaimsOwnerKeyPrefix = []byte{0x02} )
Functions ¶
func RegisterWire ¶ added in v0.0.2
Register concrete types on wire codec
Types ¶
type Claim ¶
type Claim struct { ID string `json:"id"` Context string `json:"context"` Content Content `json:"content"` Metadata ClaimMetadata `json:"metadata"` }
Claim struct
type ClaimMetadata ¶
type ClaimMetadata struct { CreateTime time.Time `json:"create_time"` Issuer sdk.Address `json:"issuer"` Recipient sdk.Address `json:"recipient"` Expires time.Time `json:"expires"` Revocation string `json:"revocation"` }
ClaimMetadata the claim metadata
type Keeper ¶
type Keeper struct {
// contains filtered or unexported fields
}
Keeper manages identity claims
func (Keeper) CreateClaim ¶ added in v0.1.0
ClaimIssue ...
func (Keeper) RevokeClaim ¶ added in v0.1.0
Revoke ...
type MsgCreateClaim ¶ added in v0.1.0
type MsgCreateClaim struct { ID string `json:"id"` Context string `json:"context"` Content Content `json:"content"` Metadata ClaimMetadata `json:"metadata"` }
MsgCreateClaim ...
func (MsgCreateClaim) Get ¶ added in v0.1.0
func (msg MsgCreateClaim) Get(key interface{}) (value interface{})
func (MsgCreateClaim) GetSignBytes ¶ added in v0.1.0
func (msg MsgCreateClaim) GetSignBytes() []byte
GetSignBytes Get the bytes for the message signer to sign on
func (MsgCreateClaim) GetSigners ¶ added in v0.1.0
func (msg MsgCreateClaim) GetSigners() []sdk.Address
func (MsgCreateClaim) String ¶ added in v0.1.0
func (msg MsgCreateClaim) String() string
func (MsgCreateClaim) ValidateBasic ¶ added in v0.1.0
func (msg MsgCreateClaim) ValidateBasic() sdk.Error
ValidateBasic Validate Basic is used to quickly disqualify obviously invalid messages quickly
type MsgRevokeClaim ¶ added in v0.1.0
type MsgRevokeClaim struct { ClaimID string `json:"claim_id"` Owner sdk.Address `json:"owner"` Revocation string `json:"revocation"` }
RevokeMsg ...
func (MsgRevokeClaim) Get ¶ added in v0.1.0
func (msg MsgRevokeClaim) Get(key interface{}) (value interface{})
func (MsgRevokeClaim) GetSignBytes ¶ added in v0.1.0
func (msg MsgRevokeClaim) GetSignBytes() []byte
GetSignBytes Get the bytes for the message signer to sign on
func (MsgRevokeClaim) GetSigners ¶ added in v0.1.0
func (msg MsgRevokeClaim) GetSigners() []sdk.Address
func (MsgRevokeClaim) String ¶ added in v0.1.0
func (msg MsgRevokeClaim) String() string
func (MsgRevokeClaim) ValidateBasic ¶ added in v0.1.0
func (msg MsgRevokeClaim) ValidateBasic() sdk.Error
ValidateBasic Validate Basic is used to quickly disqualify obviously invalid messages quickly
Source Files ¶
Click to show internal directories.
Click to hide internal directories.