ringct

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EIGHT = Key{0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
View Source
var G = Key{0x58, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66, 0x66}
View Source
var H = Key{0x8b, 0x65, 0x59, 0x70, 0x15, 0x37, 0x99, 0xaf, 0x2a, 0xea, 0xdc, 0x9f, 0xf1, 0xad, 0xd0, 0xea, 0x6c, 0x72, 0x51, 0xd5, 0x41, 0x54, 0xcf, 0xa9, 0x2c, 0x17, 0x3a, 0x0d, 0xd3, 0x9c, 0x1f, 0x94}
View Source
var I = Key{0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}
View Source
var INV_EIGHT = Key{0x79, 0x2f, 0xdc, 0xe2, 0x29, 0xe5, 0x06, 0x61, 0xd0, 0xda, 0x1c, 0x7d, 0xb3, 0x9d, 0xd3, 0x07, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x06}
View Source
var L = Key{0xed, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58, 0xd6, 0x9c, 0xf7, 0xa2, 0xde, 0xf9, 0xde, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10}
View Source
var Z = Key{0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}

Functions

func AddKeyV

func AddKeyV(a KeyV) (Key, error)

func AddKeys

func AddKeys(a, b Key) (Key, error)

func AddKeys2

func AddKeys2(a, b, B Key) (Key, error)

func CurveOrder

func CurveOrder() Key

func EcdhEncode

func EcdhEncode(masked *EcdhTuple, sharedSec Key, shortAmount bool) bool

func FromLkamountsToKeyv

func FromLkamountsToKeyv(amounts []Lk_amount) KeyV

func GenC

func GenC(a Key, amount Lk_amount) (ret Key, _ error)

func GetPreMlsagHash

func GetPreMlsagHash(rctsign *RctSig) (Key, error)

41.112 µs/op(cgo) 6 µs/op(c)

func Identity

func Identity() Key

func ProveRangeBulletproof

func ProveRangeBulletproof(amounts KeyV, sk KeyV) (*Bulletproof, KeyV, KeyV, error)

func ProveRangeBulletproof128

func ProveRangeBulletproof128(amounts KeyV, sk KeyV) (*Bulletproof, KeyV, KeyV, error)

func ProveRctMGSimple

func ProveRctMGSimple(message Key, pubs CtkeyV, inSk Ctkey, a, Count Key, mscout *Key, kLRki *MultisigKLRki, index uint32) (sig *MgSig, err error)

func ScAdd

func ScAdd(a, b EcScalar) (ret Key)

func ScSub

func ScSub(a, b EcScalar) (ret Key)

func Scalarmult8

func Scalarmult8(p Key) (ret Key, _ error)

Computes 8P

func ScalarmultBase

func ScalarmultBase(a Key) Key

does a * G where a is a scalar and G is the curve basepoint

func ScalarmultH

func ScalarmultH(key Key) Key

Computes aH where H= toPoint(cn_fast_hash(G)), G the basepoint

func ScalarmultKey

func ScalarmultKey(p, a Key) (Key, error)

does a * P where a is a scalar and P is an arbitrary point

func SkGen

func SkGen() (ret Key)

func SkpkGen

func SkpkGen() (sk Key, pk Key)

generates a random secret and corresponding public key

func VerBulletproof

func VerBulletproof(bp *Bulletproof) (bool, error)

func VerBulletproof128

func VerBulletproof128(bp *Bulletproof) (bool, error)

func VerRctNonSemanticsSimple

func VerRctNonSemanticsSimple(rs *RctSig) bool

func VerRctSimpleTlv

func VerRctSimpleTlv(rs *RctSig) bool

func Zero

func Zero() Key

func ZeroCommit

func ZeroCommit(amount Lk_amount) (Key, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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