Documentation ¶
Index ¶
- func AddKeys(a, b types.Key) (ret types.Key, err error)
- func AddKeys2(a, b, B types.Key) (ret types.Key, err error)
- func BytesToWords(sec types.SecretKey, lang string) (string, error)
- func CheckKey(key types.PublicKey) bool
- func CheckRingSignature(prefix types.Hash, keyImage types.KeyImage, pks []types.PublicKey, ...) bool
- func DerivationToScalar(derivation types.KeyDerivation, outIndex int) (res types.EcScalar, err error)
- func DerivePublicKey(derivation types.KeyDerivation, outIndex int, pub types.PublicKey) (derPub types.PublicKey, err error)
- func DeriveSecretKey(derivation types.KeyDerivation, outIndex int, sec types.SecretKey) (derSec types.SecretKey, err error)
- func DeriveSubaddressPublicKey(pub types.PublicKey, derivation types.KeyDerivation, outIndex int) (derPub types.PublicKey, err error)
- func EcdhDecode(masked *types.EcdhTuple, sharedSec types.Key, shortAmount bool) bool
- func EcdhEncode(unmasked *types.EcdhTuple, sharedSec types.Key, shortAmount bool) bool
- func GenC(a types.Key, amount types.Lk_amount) (ret types.Key, err error)
- func GenerateKeyDerivation(pub types.PublicKey, sec types.SecretKey) (der types.KeyDerivation, err error)
- func GenerateKeyImage(pub types.PublicKey, sec types.SecretKey) (ki types.KeyImage, err error)
- func GenerateKeys(recoverKey types.SecretKey) (sk types.SecretKey, pk types.PublicKey)
- func GenerateRingSignature(prefix types.Hash, keyImage types.KeyImage, pks []types.PublicKey, ...) (*types.Signature, error)
- func GetSubaddress(keys *types.AccountKey, index uint32) (addr types.AccountAddress)
- func GetSubaddressSecretKey(main types.SecretKey, index uint32) (sub types.SecretKey)
- func ScAdd(a, b types.EcScalar) (ret types.Key)
- func ScSub(a, b types.EcScalar) (ret types.Key)
- func Scalarmult8(p types.Key) (ret types.Key, err error)
- func ScalarmultBase(a types.Key) (ret types.Key)
- func ScalarmultH(a types.Key) (ret types.Key)
- func ScalarmultKey(p, a types.Key) (ret types.Key, err error)
- func SecretAdd(a, b types.SecretKey) (r types.SecretKey)
- func SecretKeyToPublicKey(sec types.SecretKey) (pub types.PublicKey, err error)
- func SkGen() (ret types.Key)
- func SkpkGen() (sk types.Key, pk types.Key)
- func TlvAddKeyV(a types.KeyV) (sum types.Key, err error)
- func TlvGetPreMlsagHash(rctsign *types.RctSig) (key types.Key, err error)
- func TlvGetSubaddress(keys *types.AccountKey, index uint32) (addr types.AccountAddress, err error)
- func TlvKeyVTest(keysie int) error
- func TlvProveRangeBulletproof(amounts types.KeyV, sk types.KeyV) (b *types.Bulletproof, c types.KeyV, masks types.KeyV, err error)
- func TlvProveRangeBulletproof128(amounts types.KeyV, sk types.KeyV) (b *types.Bulletproof, c types.KeyV, masks types.KeyV, err error)
- func TlvProveRctMGSimple(message types.Key, pubs types.CtkeyV, inSk types.Ctkey, a, Count types.Key, ...) (sig *types.MgSig, err error)
- func TlvRctSign(rctsign *types.RctSig) error
- func TlvRctsigForTest(rctsign *types.RctSig) (*types.RctSig, error)
- func TlvVerBulletproof(bp *types.Bulletproof) (bool, error)
- func TlvVerBulletproof128(bp *types.Bulletproof) (bool, error)
- func TlvVerRctNotSemanticsSimple(rctsign *types.RctSig) bool
- func TlvVerRctSimple(rctsign *types.RctSig) (error, bool)
- func WordsToBytes(words string) (sec types.SecretKey, err error)
- func ZeroCommit(amount types.Lk_amount) (ret types.Key, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BytesToWords ¶
BytesToWords convert recover_key to words
func CheckRingSignature ¶
func CheckRingSignature(prefix types.Hash, keyImage types.KeyImage, pks []types.PublicKey, sig *types.Signature) bool
CheckRingSignature true means RingSignature ok.
func DerivationToScalar ¶
func DerivationToScalar(derivation types.KeyDerivation, outIndex int) (res types.EcScalar, err error)
DerivationToScalar key-derivation to ec-scalar
func DerivePublicKey ¶
func DerivePublicKey(derivation types.KeyDerivation, outIndex int, pub types.PublicKey) (derPub types.PublicKey, err error)
DerivePublicKey derive sub public-key
func DeriveSecretKey ¶
func DeriveSecretKey(derivation types.KeyDerivation, outIndex int, sec types.SecretKey) (derSec types.SecretKey, err error)
DeriveSecretKey derive sub secret-key
func DeriveSubaddressPublicKey ¶
func DeriveSubaddressPublicKey(pub types.PublicKey, derivation types.KeyDerivation, outIndex int) (derPub types.PublicKey, err error)
DeriveSubaddressPublicKey derive public-key for subaddress.
func EcdhDecode ¶
EcdhDecode decode ecdhTuple info
func EcdhEncode ¶
EcdhEncode encode ecdhTuple info
func GenerateKeyDerivation ¶
func GenerateKeyDerivation(pub types.PublicKey, sec types.SecretKey) (der types.KeyDerivation, err error)
GenerateKeyDerivation generate KeyDerivation
func GenerateKeyImage ¶
GenerateKeyImage generate key_image
func GenerateKeys ¶
GenerateKeys generate secret_key and public_key
func GenerateRingSignature ¶
func GenerateRingSignature(prefix types.Hash, keyImage types.KeyImage, pks []types.PublicKey, sec types.SecretKey, secIndex uint) (*types.Signature, error)
GenerateRingSignature --
func GetSubaddress ¶
func GetSubaddress(keys *types.AccountKey, index uint32) (addr types.AccountAddress)
GetSubaddress get sub public_key pair by index
func GetSubaddressSecretKey ¶
GetSubaddressSecretKey get sub secret_key by index.
func Scalarmult8 ¶
Computes 8P x_scalarmult8(rct_key_t p ,rct_key_t ret);
func SecretKeyToPublicKey ¶
SecretKeyToPublicKey get public-key from secret-key
func TlvGetSubaddress ¶
func TlvGetSubaddress(keys *types.AccountKey, index uint32) (addr types.AccountAddress, err error)
func TlvKeyVTest ¶
func TlvProveRctMGSimple ¶
func TlvRctSign ¶
func TlvVerBulletproof ¶
func TlvVerBulletproof(bp *types.Bulletproof) (bool, error)
func TlvVerBulletproof128 ¶
func TlvVerBulletproof128(bp *types.Bulletproof) (bool, error)
func WordsToBytes ¶
WordsToBytes convert words to recover_key
Types ¶
This section is empty.