snark

package
v0.0.0-...-b2860cf Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2019 License: Apache-2.0 Imports: 3 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateParamsShielding

func CreateParamsShielding()

func CreateParamsTransfer

func CreateParamsTransfer()

func CreateParamsUnshielding

func CreateParamsUnshielding()

func Init

func Init()

func ProveShielding

func ProveShielding(rho [32]byte, pk [32]byte, value uint64) [584]byte

func ProveTransfer

func ProveTransfer(input_rho_1 [32]byte,
	input_sk_1 [32]byte,
	input_value_1 uint64,
	input_tree_position_1 uint64,
	input_authentication_path_1 [29][32]byte,
	input_rho_2 [32]byte,
	input_sk_2 [32]byte,
	input_value_2 uint64,
	input_tree_position_2 uint64,
	input_authentication_path_2 [29][32]byte,
	output_rho_1 [32]byte,
	output_pk_1 [32]byte,
	output_value_1 uint64,
	output_rho_2 [32]byte,
	output_pk_2 [32]byte,
	output_value_2 uint64) [584]byte

func ProveUnshielding

func ProveUnshielding(rho [32]byte,
	sk [32]byte,
	value uint64,
	tree_position uint64,
	authentication_path [29][32]byte) [584]byte

func VerifyShielding

func VerifyShielding(proof [584]byte, send_nf [32]byte, cm [32]byte, value uint64) bool

func VerifyTransfer

func VerifyTransfer(proof [584]byte,
	anchor [32]byte,
	spend_nf_1 [32]byte,
	spend_nf_2 [32]byte,
	send_nf_1 [32]byte,
	send_nf_2 [32]byte,
	cm_1 [32]byte,
	cm_2 [32]byte) bool

func VerifyUnshielding

func VerifyUnshielding(proof [584]byte, spend_nf [32]byte, rt [32]byte, value uint64) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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