Documentation ¶
Index ¶
- func CheckLICr(pkr *c_type.PKr, licr *c_type.LICr, height uint64) bool
- func Combine(l *c_type.Uint256, r *c_type.Uint256) (out c_type.Uint256)
- func ConfirmOutput(desc *ConfirmOutputDesc) (e error)
- func DecOutput(desc *InfoDesc)
- func FetchRootCM(tk *c_type.Tk, til *c_type.Uint256) (root_cm c_type.Uint256)
- func GenAssetCC(desc *AssetDesc)
- func GenInputProofBySk(desc *InputDesc) (e error)
- func GenInputSProofBySk(desc *InputSDesc) (e error)
- func GenOutputProof(desc *OutputDesc) (e error)
- func IsPKValid(pk *c_type.Uint512) bool
- func IsPKrValid(pkr *c_type.PKr) bool
- func Is_czero_debug() bool
- func Pk2PKrAndLICr(addr *c_type.Uint512, height uint64) (pkr c_type.PKr, licr c_type.LICr, ret bool)
- func PtrOfSlice(s []byte) *C.uchar
- func SignBalance(desc *c_type.BalanceDesc)
- func SignPKrBySk(sk *c_type.Uint512, data *c_type.Uint256, pkr *c_type.PKr) (sign c_type.Uint512, e error)
- func VerifyBalance(desc *c_type.BalanceDesc) (e error)
- func VerifyInput(desc *InputVerifyDesc) (e error)
- func VerifyInputS(desc *VerifyInputSDesc) (e error)
- func VerifyOutput(desc *OutputVerifyDesc) (e error)
- func VerifyPKr(data *c_type.Uint256, sign *c_type.Uint512, pkr *c_type.PKr) bool
- func ZeroInit(account_dir string, netType c_type.NetType) error
- func ZeroInit_NoCircuit() error
- func ZeroInit_OnlyInOuts() error
- type AssetDesc
- type Common
- type ConfirmOutputDesc
- type ConfirmPkgDesc
- type In
- type InfoDesc
- type InputDesc
- type InputSDesc
- type InputVerifyDesc
- type Out
- type OutputDesc
- type OutputVerifyDesc
- type VerifyInputSDesc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfirmOutput ¶
func ConfirmOutput(desc *ConfirmOutputDesc) (e error)
func GenAssetCC ¶
func GenAssetCC(desc *AssetDesc)
func GenInputProofBySk ¶
func GenInputSProofBySk ¶
func GenInputSProofBySk(desc *InputSDesc) (e error)
func GenOutputProof ¶
func GenOutputProof(desc *OutputDesc) (e error)
func IsPKrValid ¶
func Is_czero_debug ¶
func Is_czero_debug() bool
func Pk2PKrAndLICr ¶
func PtrOfSlice ¶
func SignBalance ¶
func SignBalance(desc *c_type.BalanceDesc)
func SignPKrBySk ¶
func VerifyBalance ¶
func VerifyBalance(desc *c_type.BalanceDesc) (e error)
func VerifyInput ¶
func VerifyInput(desc *InputVerifyDesc) (e error)
func VerifyInputS ¶
func VerifyInputS(desc *VerifyInputSDesc) (e error)
func VerifyOutput ¶
func VerifyOutput(desc *OutputVerifyDesc) (e error)
func ZeroInit_NoCircuit ¶
func ZeroInit_NoCircuit() error
func ZeroInit_OnlyInOuts ¶
func ZeroInit_OnlyInOuts() error
Types ¶
type ConfirmOutputDesc ¶
type ConfirmPkgDesc ¶
type InputDesc ¶
type InputDesc struct { //---in0-- Sk c_type.Uint512 //---in--- Seed c_type.Uint256 Pkr c_type.PKr RPK c_type.Uint256 Einfo c_type.Einfo //-- Index uint64 Anchor c_type.Uint256 Position uint32 Path [c_type.DEPTH * 32]byte //---out--- Asset_cm_ret c_type.Uint256 Ar_ret c_type.Uint256 Nil_ret c_type.Uint256 Til_ret c_type.Uint256 Proof_ret [c_type.PROOF_WIDTH]byte }
type InputSDesc ¶
type InputVerifyDesc ¶
type OutputDesc ¶
type OutputDesc struct { //---in--- Tkn_currency c_type.Uint256 Tkn_value c_type.Uint256 Tkt_category c_type.Uint256 Tkt_value c_type.Uint256 Memo c_type.Uint512 Pkr c_type.PKr Height uint64 //---out--- Asset_cm_ret c_type.Uint256 Ar_ret c_type.Uint256 Key_ret c_type.Uint256 Out_cm_ret c_type.Uint256 Einfo_ret c_type.Einfo RPK_ret c_type.Uint256 Proof_ret c_type.Proof }
type OutputVerifyDesc ¶
Click to show internal directories.
Click to hide internal directories.