privacy_util

package
v0.0.0-...-7ece11e Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CommitmentRingSize    = 8
	CommitmentRingSizeExp = 3
	NumBase               = 5
	MaxExp                = 64
	MaxOutputCoin         = 32
	MaxInputCoin          = 32
	MaxOutputNumberParam  = 256
	RingSize              = 8
)

Variables

Logger is the exported Logger instance for this package

Functions

func ArrayToSlice

func ArrayToSlice(array [operation.Ed25519KeySize]byte) []byte

func BigIntToScalar

func BigIntToScalar(bn *big.Int) *operation.Scalar

func ConvertIntToBinary

func ConvertIntToBinary(inum int, n int) []byte

ConvertIntToBinary represents a integer number in binary array with little endian with size n

func ConvertUint64ToBinary

func ConvertUint64ToBinary(number uint64, n int) []*operation.Scalar

ConvertIntToBinary represents a integer number in binary

func ScalarToBigInt

func ScalarToBigInt(sc *operation.Scalar) *big.Int

func SliceToArray

func SliceToArray(slice []byte) [operation.Ed25519KeySize]byte

Types

type PrivacyUtilLogger

type PrivacyUtilLogger struct {
	Log common.Logger
}

func (*PrivacyUtilLogger) Init

func (logger *PrivacyUtilLogger) Init(inst common.Logger)

Jump to

Keyboard shortcuts

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