superzk

package
v1.0.3-rc3 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2020 License: GPL-3.0 Imports: 6 Imported by: 22

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckLICr

func CheckLICr(pkr *c_type.PKr, licr *c_type.LICr, height uint64) bool

func FetchRootCM

func FetchRootCM(tk *c_type.Tk, nl *c_type.Uint256, baser *c_type.Uint256) (root_cm c_type.Uint256, e error)

func IsMyPKr

func IsMyPKr(tk *c_type.Tk, pkr *c_type.PKr) (succ bool)

func IsPKValid

func IsPKValid(pk *c_type.Uint512) bool

func IsPKrValid

func IsPKrValid(pkr *c_type.PKr) bool

func Pk2PKr

func Pk2PKr(addr *c_type.Uint512, r *c_type.Uint256) (pkr c_type.PKr)

func Pk2PKrAndLICr

func Pk2PKrAndLICr(addr *c_type.Uint512, height uint64) (pkr c_type.PKr, licr c_type.LICr, ret bool)

func Seed2Sk

func Seed2Sk(seed *c_type.Uint256, version int) (ret c_type.Uint512)

func SignPKr_ByHeight

func SignPKr_ByHeight(num uint64, sk *c_type.Uint512, data *c_type.Uint256, pkr *c_type.PKr) (sign c_type.Uint512, e error)

func Sk2Tk

func Sk2Tk(sk *c_type.Uint512) (tk c_type.Tk, e error)

func Tk2Pk

func Tk2Pk(tk *c_type.Tk) (ret c_type.Uint512, e error)

func VerifyPKr_ByHeight

func VerifyPKr_ByHeight(num uint64, data *c_type.Uint256, sign *c_type.Uint512, pkr *c_type.PKr) bool

func ZeroInit

func ZeroInit(account_dir string, netType c_type.NetType) error

func ZeroInit_NoCircuit

func ZeroInit_NoCircuit() error

func ZeroInit_OnlyInOuts

func ZeroInit_OnlyInOuts() error

Types

This section is empty.

Jump to

Keyboard shortcuts

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