identity

package
v0.0.0-...-ec6187d Latest Latest
Warning

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

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DocMsgCreateIdentity

type DocMsgCreateIdentity struct {
	Id          string      `bson:"id"`
	PubKey      *PubKeyInfo `bson:"pubkey"`
	Certificate string      `bson:"certificate"`
	Credentials string      `bson:"credentials"`
	Owner       string      `bson:"owner"`
	Data        string      `bson:"data"`
	ExTemporary ExTemporary `bson:"ex"`
}

MsgCreateIdentity defines a message to create an identity

func (*DocMsgCreateIdentity) BuildMsg

func (m *DocMsgCreateIdentity) BuildMsg(v interface{})

func (*DocMsgCreateIdentity) GetType

func (m *DocMsgCreateIdentity) GetType() string

func (*DocMsgCreateIdentity) HandleTxMsg

func (m *DocMsgCreateIdentity) HandleTxMsg(v SdkMsg) MsgDocInfo

type DocMsgUpdateIdentity

type DocMsgUpdateIdentity struct {
	Id          string      `bson:"id"`
	PubKey      *PubKeyInfo `bson:"pubkey"`
	Certificate string      `bson:"certificate"`
	Credentials string      `bson:"credentials"`
	Owner       string      `bson:"owner"`
	Data        string      `bson:"data"`
	ExTemporary ExTemporary `bson:"ex"`
}

DocMsgUpdateIdentity MsgUpdateIdentity defines a message to update an identity

func (*DocMsgUpdateIdentity) BuildMsg

func (m *DocMsgUpdateIdentity) BuildMsg(v interface{})

func (*DocMsgUpdateIdentity) GetType

func (m *DocMsgUpdateIdentity) GetType() string

func (*DocMsgUpdateIdentity) HandleTxMsg

func (m *DocMsgUpdateIdentity) HandleTxMsg(v SdkMsg) MsgDocInfo

type ExTemporary

type ExTemporary struct {
	CertPubKey PubKeyInfo `bson:"cert_pub_key"`
}

type IdentityClient

type IdentityClient struct {
}

func NewClient

func NewClient() IdentityClient

func (IdentityClient) HandleTxMsg

func (nft IdentityClient) HandleTxMsg(v types.Msg) (MsgDocInfo, bool)

type PubKeyInfo

type PubKeyInfo struct {
	PubKey    string `bson:"pubkey"`
	Algorithm int32  `bson:"algorithm"`
}

PubKey represents a public key along with the corresponding algorithm

Jump to

Keyboard shortcuts

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