Documentation ¶
Index ¶
- Variables
- func AddKeyV(a KeyV) (Key, error)
- func AddKeys(a, b Key) (Key, error)
- func AddKeys2(a, b, B Key) (Key, error)
- func CurveOrder() Key
- func EcdhEncode(masked *EcdhTuple, sharedSec Key, shortAmount bool) bool
- func FromLkamountsToKeyv(amounts []Lk_amount) KeyV
- func GenC(a Key, amount Lk_amount) (ret Key, _ error)
- func GetPreMlsagHash(rctsign *RctSig) (Key, error)
- func Identity() Key
- func ProveRangeBulletproof(amounts KeyV, sk KeyV) (*Bulletproof, KeyV, KeyV, error)
- func ProveRangeBulletproof128(amounts KeyV, sk KeyV) (*Bulletproof, KeyV, KeyV, error)
- func ProveRctMGSimple(message Key, pubs CtkeyV, inSk Ctkey, a, Count Key, mscout *Key, ...) (sig *MgSig, err error)
- func ScAdd(a, b EcScalar) (ret Key)
- func ScSub(a, b EcScalar) (ret Key)
- func Scalarmult8(p Key) (ret Key, _ error)
- func ScalarmultBase(a Key) Key
- func ScalarmultH(key Key) Key
- func ScalarmultKey(p, a Key) (Key, error)
- func SkGen() (ret Key)
- func SkpkGen() (sk Key, pk Key)
- func VerBulletproof(bp *Bulletproof) (bool, error)
- func VerBulletproof128(bp *Bulletproof) (bool, error)
- func VerRctNonSemanticsSimple(rs *RctSig) bool
- func VerRctSimpleTlv(rs *RctSig) bool
- func Zero() Key
- func ZeroCommit(amount Lk_amount) (Key, error)
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 CurveOrder ¶
func CurveOrder() Key
func EcdhEncode ¶
func FromLkamountsToKeyv ¶
func FromLkamountsToKeyv(amounts []Lk_amount) KeyV
func GetPreMlsagHash ¶
func GetPreMlsagHash(rctsign *RctSig) (Key, error)
41.112 µs/op(cgo) 6 µs/op(c)
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 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 SkpkGen ¶
func SkpkGen() (sk Key, pk Key)
generates a random secret and corresponding public key
func VerBulletproof ¶
func VerBulletproof128 ¶
func VerRctNonSemanticsSimple ¶
func VerRctNonSemanticsSimple(rs *RctSig) bool
func VerRctSimpleTlv ¶
func VerRctSimpleTlv(rs *RctSig) bool
func ZeroCommit ¶
func ZeroCommit(amount Lk_amount) (Key, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.