Documentation ¶
Index ¶
- Constants
- Variables
- func ArrayToSlice(array [operation.Ed25519KeySize]byte) []byte
- func BigIntToScalar(bn *big.Int) *operation.Scalar
- func ConvertIntToBinary(inum int, n int) []byte
- func ConvertUint64ToBinary(number uint64, n int) []*operation.Scalar
- func ScalarToBigInt(sc *operation.Scalar) *big.Int
- func SliceToArray(slice []byte) [operation.Ed25519KeySize]byte
- type PrivacyUtilLogger
Constants ¶
View Source
const ( CommitmentRingSize = 8 CommitmentRingSizeExp = 3 NumBase = 5 MaxExp = 64 MaxOutputCoin = 32 MaxInputCoin = 32 MaxOutputNumberParam = 256 RingSize = 8 )
Variables ¶
View Source
var Logger = PrivacyUtilLogger{}
Logger is the exported Logger instance for this package
Functions ¶
func ArrayToSlice ¶
func ArrayToSlice(array [operation.Ed25519KeySize]byte) []byte
func ConvertIntToBinary ¶
ConvertIntToBinary represents a integer number in binary array with little endian with size n
func ConvertUint64ToBinary ¶
ConvertIntToBinary represents a integer number in binary
func SliceToArray ¶
func SliceToArray(slice []byte) [operation.Ed25519KeySize]byte
Types ¶
type PrivacyUtilLogger ¶
func (*PrivacyUtilLogger) Init ¶
func (logger *PrivacyUtilLogger) Init(inst common.Logger)
Click to show internal directories.
Click to hide internal directories.