Documentation
¶
Index ¶
- Variables
- func BuildPDEPoolForPairKey(beaconHeight uint64, token1IDStr string, token2IDStr string) []byte
- func EncodeBase58Check(b []byte) string
- type CoinRPC
- type CoinRPCV1
- type CoinRPCV2
- type CreateTransactionResult
- type CreateTransactionTokenResult
- type CurrentPDEState
- type GetBestBlockHashResult
- type GetBestBlockItem
- type GetBestBlockResult
- type ICoinInfo
- type ListOutputCoins
- type OutCoin
- type PDEContribution
- type PDEPoolForPair
- type ProofDetail
- type RandomCommitmentAndPublicKeyResult
- type RandomCommitmentResult
- type TransactionDetail
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // PDE WaitingPDEContributionPrefix = []byte("waitingpdecontribution-") PDEPoolPrefix = []byte("pdepool-") PDETradingFeePrefix = []byte("pdetradingfee-") PDETradeFeePrefix = []byte("pdetradefee-") PDEContributionStatusPrefix = []byte("pdecontributionstatus-") PDETradeStatusPrefix = []byte("pdetradestatus-") PDEWithdrawalStatusPrefix = []byte("pdewithdrawalstatus-") PDEFeeWithdrawalStatusPrefix = []byte("pdefeewithdrawalstatus-") )
key prefix
Functions ¶
func BuildPDEPoolForPairKey ¶
func EncodeBase58Check ¶
Types ¶
type CoinRPCV1 ¶
type CoinRPCV2 ¶
type CreateTransactionResult ¶
type CurrentPDEState ¶
type CurrentPDEState struct { WaitingPDEContributions map[string]*PDEContribution `json:"WaitingPDEContributions"` PDEPoolPairs map[string]*PDEPoolForPair `json:"PDEPoolPairs"` PDETradingFees map[string]uint64 `json:"PDETradingFees"` BeaconTimeStamp int64 `json:"BeaconTimeStamp"` }
type GetBestBlockHashResult ¶
type GetBestBlockItem ¶
type GetBestBlockItem struct { Height uint64 `json:"Height"` Hash string `json:"Hash"` TotalTxs uint64 `json:"TotalTxs"` BlockProducer string `json:"BlockProducer"` ValidationData string `json:"ValidationData"` Epoch uint64 `json:"Epoch"` Time int64 `json:"Time"` RemainingBlockEpoch uint64 `json:"RemainingBlockEpoch"` EpochBlock uint64 `json:"EpochBlock"` }
type GetBestBlockResult ¶
type GetBestBlockResult struct {
BestBlocks map[int]GetBestBlockItem `json:"BestBlocks"`
}
type ICoinInfo ¶
type ICoinInfo interface { GetVersion() uint8 GetCommitment() *privacy.Point GetInfo() []byte GetPublicKey() *privacy.Point GetValue() uint64 GetKeyImage() *privacy.Point GetRandomness() *privacy.Scalar GetShardID() (uint8, error) GetSNDerivator() *privacy.Scalar GetCoinDetailEncrypted() []byte IsEncrypted() bool GetTxRandom() *coin.TxRandom GetAssetTag() *privacy.Point }
type ListOutputCoins ¶
type OutCoin ¶
type OutCoin struct { Version string `json:"Version"` Index string `json:"Index"` PublicKey string `json:"PublicKey"` Commitment string `json:"Commitment"` CoinCommitment string `json:"CoinCommitment"` SNDerivator string `json:"SNDerivator"` KeyImage string `json:"KeyImage"` Randomness string `json:"Randomness"` Value string `json:"Value"` Info string `json:"Info"` TxRandom string `json:"TxRandom"` CoinDetailsEncrypted string `json:"CoinDetailsEncrypted"` AssetTag string `json:"AssetTag"` }
func NewOutCoin ¶
func NewOutcoinFromInterface ¶
type PDEContribution ¶
type PDEPoolForPair ¶
type ProofDetail ¶
func (*ProofDetail) ConvertFromProof ¶
func (proofDetail *ProofDetail) ConvertFromProof(proof privacy.Proof)
type RandomCommitmentAndPublicKeyResult ¶
type RandomCommitmentAndPublicKeyResult struct { CommitmentIndices []uint64 `json:"CommitmentIndices"` PublicKeys []string `json:"PublicKeys"` Commitments []string `json:"Commitments"` AssetTags []string `json:"AssetTags"` }
func NewRandomCommitmentAndPublicKeyResult ¶
func NewRandomCommitmentAndPublicKeyResult(commitmentIndices []uint64, publicKeys, commitments, assetTags [][]byte) *RandomCommitmentAndPublicKeyResult
type RandomCommitmentResult ¶
type RandomCommitmentResult struct { CommitmentIndices []uint64 `json:"CommitmentIndices"` MyCommitmentIndexs []uint64 `json:"MyCommitmentIndexs"` Commitments []string `json:"Commitments"` }
func NewRandomCommitmentResult ¶
func NewRandomCommitmentResult(commitmentIndexs []uint64, myCommitmentIndexs []uint64, commitments [][]byte) *RandomCommitmentResult
type TransactionDetail ¶
type TransactionDetail struct { BlockHash string `json:"BlockHash"` BlockHeight uint64 `json:"BlockHeight"` TxSize uint64 `json:"TxSize"` Index uint64 `json:"Index"` ShardID byte `json:"ShardID"` Hash string `json:"Hash"` Version int8 `json:"Version"` Type string `json:"Type"` // Transaction type LockTime string `json:"LockTime"` Fee uint64 `json:"Fee"` // Fee applies: always consant Image string `json:"Image"` IsPrivacy bool `json:"IsPrivacy"` //Proof privacy.Proof `json:"Proof"` //ProofDetail ProofDetail `json:"ProofDetail"` InputCoinPubKey string `json:"InputCoinPubKey"` SigPubKey string `json:"SigPubKey,omitempty"` // 64 bytes Sig string `json:"Sig,omitempty"` // 64 bytes Metadata string `json:"Metadata"` CustomTokenData string `json:"CustomTokenData"` PrivacyCustomTokenID string `json:"PrivacyCustomTokenID"` PrivacyCustomTokenName string `json:"PrivacyCustomTokenName"` PrivacyCustomTokenSymbol string `json:"PrivacyCustomTokenSymbol"` PrivacyCustomTokenData string `json:"PrivacyCustomTokenData"` //PrivacyCustomTokenProofDetail ProofDetail `json:"PrivacyCustomTokenProofDetail"` PrivacyCustomTokenIsPrivacy bool `json:"PrivacyCustomTokenIsPrivacy"` PrivacyCustomTokenFee uint64 `json:"PrivacyCustomTokenFee"` IsInMempool bool `json:"IsInMempool"` IsInBlock bool `json:"IsInBlock"` Info string `json:"Info"` }
Click to show internal directories.
Click to hide internal directories.