blockchain

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

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) PersistRegisterDIDTx added in v0.3.0

func (c *IDChainStore) PersistRegisterDIDTx(batch database.Batch,
	idKey []byte, tx *types.Transaction, blockHeight uint32,
	blockTimeStamp uint32) error

func (*IDChainStore) TryGetExpiresHeight added in v0.1.3

func (c *IDChainStore) TryGetExpiresHeight(txn *types.Transaction,
	blockHeight uint32,
	blockTimeStamp uint32) (uint32, error)

Jump to

Keyboard shortcuts

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