Documentation ¶
Index ¶
- Constants
- type IDChainStore
- func (c *IDChainStore) GetAllDIDTxTxData(idKey []byte) ([]id.TranasactionData, error)
- func (c *IDChainStore) GetDIDFromUri(idURI string) string
- func (c *IDChainStore) GetExpiresHeight(idKey []byte) (uint32, error)
- func (c *IDChainStore) GetLastDIDTxData(idKey []byte) (*id.TranasactionData, error)
- func (c *IDChainStore) GetRegisterIdentificationTx(idKey []byte) ([]byte, error)
- func (c *IDChainStore) TryGetExpiresHeight(txn *types.Transaction, blockHeight uint32, blockTimeStamp uint32) (uint32, error)
Constants ¶
View Source
const ( IX_DIDTXHash blockchain.EntryPrefix = 0x95 IX_DIDPayload blockchain.EntryPrefix = 0x96 IX_DIDExpiresHeight blockchain.EntryPrefix = 0x97 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IDChainStore ¶
type IDChainStore struct {
*blockchain.ChainStore
}
func NewChainStore ¶
func NewChainStore(genesisBlock *types.Block, dataPath string) (*IDChainStore, error)
func (*IDChainStore) GetAllDIDTxTxData ¶ added in v0.1.3
func (c *IDChainStore) GetAllDIDTxTxData(idKey []byte) ([]id.TranasactionData, error)
func (*IDChainStore) GetDIDFromUri ¶ added in v0.1.3
func (c *IDChainStore) GetDIDFromUri(idURI string) string
func (*IDChainStore) GetExpiresHeight ¶ added in v0.1.3
func (c *IDChainStore) GetExpiresHeight(idKey []byte) (uint32, error)
func (*IDChainStore) GetLastDIDTxData ¶ added in v0.1.3
func (c *IDChainStore) GetLastDIDTxData(idKey []byte) (*id.TranasactionData, error)
func (*IDChainStore) GetRegisterIdentificationTx ¶
func (c *IDChainStore) GetRegisterIdentificationTx(idKey []byte) ([]byte, error)
func (*IDChainStore) TryGetExpiresHeight ¶ added in v0.1.3
func (c *IDChainStore) TryGetExpiresHeight(txn *types.Transaction, blockHeight uint32, blockTimeStamp uint32) (uint32, error)
Click to show internal directories.
Click to hide internal directories.