Documentation
¶
Index ¶
- Constants
- func BuildInPubkeyKey(inChainID string) []byte
- func BuildInSequenceKey(inChainID string) []byte
- func BuildOutSequenceKey(outChainID string) []byte
- func BuildOutSequenceTxKey(outChainID string, sequence int64) []byte
- func BuildQcpStoreQueryPath() []byte
- func GenQcpTxHash(tx *txs.TxQcp) string
- type QcpMapper
- func (mapper *QcpMapper) Copy() mapper.IMapper
- func (mapper *QcpMapper) GetChainInTrustPubKey(inChain string) (pubkey crypto.PubKey)
- func (mapper *QcpMapper) GetChainOutTxs(outChain string, sequence int64) *txs.TxQcp
- func (mapper *QcpMapper) GetMaxChainInSequence(inChain string) (seq int64)
- func (mapper *QcpMapper) GetMaxChainOutSequence(outChain string) (seq int64)
- func (mapper *QcpMapper) SetChainInTrustPubKey(inChain string, pubkey crypto.PubKey)
- func (mapper *QcpMapper) SetChainOutTxs(outChain string, sequence int64, txQcp *txs.TxQcp)
- func (mapper *QcpMapper) SetMaxChainInSequence(inChain string, sequence int64)
- func (mapper *QcpMapper) SetMaxChainOutSequence(outChain string, sequence int64)
- func (mapper *QcpMapper) SignAndSaveTxQcp(txQcp *txs.TxQcp, signer crypto.PrivKey) *txs.TxQcp
Constants ¶
View Source
const ( QcpFrom = "qcp.from" QcpTo = "qcp.to" QcpSequence = "qcp.sequence" QcpHash = "qcp.hash" )
View Source
const (
QcpMapperName = "qcp"
)
Variables ¶
This section is empty.
Functions ¶
func BuildInPubkeyKey ¶ added in v0.0.4
func BuildInSequenceKey ¶ added in v0.0.4
func BuildOutSequenceKey ¶ added in v0.0.4
func BuildOutSequenceTxKey ¶ added in v0.0.4
func BuildQcpStoreQueryPath ¶ added in v0.0.4
func BuildQcpStoreQueryPath() []byte
func GenQcpTxHash ¶ added in v0.2.1
Types ¶
type QcpMapper ¶
type QcpMapper struct {
*mapper.BaseMapper
}
func NewQcpMapper ¶
func (*QcpMapper) GetChainInTrustPubKey ¶ added in v0.0.4
TODO: test case
func (*QcpMapper) GetChainOutTxs ¶
func (*QcpMapper) GetMaxChainInSequence ¶
func (*QcpMapper) GetMaxChainOutSequence ¶
func (*QcpMapper) SetChainInTrustPubKey ¶ added in v0.0.4
TODO: test case
func (*QcpMapper) SetChainOutTxs ¶
func (*QcpMapper) SetMaxChainInSequence ¶
func (*QcpMapper) SetMaxChainOutSequence ¶
Click to show internal directories.
Click to hide internal directories.