Documentation ¶
Index ¶
- Constants
- func DeriveSerialNumber(args string) (string, error)
- func GenerateBLSKeyPairFromSeed(args string) string
- func GenerateKeyFromSeed(seedB64Encoded string) (string, error)
- func GetSignPublicKey(args string) (string, error)
- func HybridDecryptionASM(dataB64Encode string) (string, error)
- func HybridEncryptionASM(dataB64Encode string) (string, error)
- func InitBurningRequestTx(args string, serverTime int64) (string, error)
- func InitPEDContributionMetadataFromParam(metaDataParam map[string]interface{}) (*metadata.PDEContribution, error)
- func InitPEDTradeRequestMetadataFromParam(metaDataParam map[string]interface{}) (*metadata.PDETradeRequest, error)
- func InitPRVContributionTx(args string, serverTime int64) (string, error)
- func InitPRVTradeTx(args string, serverTime int64) (string, error)
- func InitPTokenContributionTx(args string, serverTime int64) (string, error)
- func InitPTokenTradeTx(args string, serverTime int64) (string, error)
- func InitParamCreatePrivacyTokenTx(args string) (*transaction.TxPrivacyTokenInitParamsForASM, error)
- func InitParamCreatePrivacyTx(args string) (*transaction.TxPrivacyInitParamsForASM, error)
- func InitPrivacyTokenTx(args string, serverTime int64) (string, error)
- func InitPrivacyTx(args string, serverTime int64) (string, error)
- func InitWithdrawRewardTx(args string, serverTime int64) (string, error)
- func RandomScalars(n string) (string, error)
- func ScalarMultBase(scalarB64Encode string) (string, error)
- func SignPoolWithdraw(args string) (string, error)
- func Staking(args string, serverTime int64) (string, error)
- func StopAutoStaking(args string, serverTime int64) (string, error)
- func VerifySign(signEncode string, signPublicKeyEncode string, amount string, ...) (bool, error)
- func WithdrawDexTx(args string, serverTime int64) (string, error)
- type Hash
Constants ¶
View Source
const ( BigIntSize = 32 // bytes HashSize = 32 // bytes )
Variables ¶
This section is empty.
Functions ¶
func DeriveSerialNumber ¶
func GenerateBLSKeyPairFromSeed ¶
GenerateBLSKeyPairFromSeed generates BLS key pair from seed
func GenerateKeyFromSeed ¶
args: seed
func GetSignPublicKey ¶
func HybridDecryptionASM ¶
plaintextB64Encode = base64Encode(private key || ciphertext) returns base64Encode(plaintextBytes)
func HybridEncryptionASM ¶
plaintextB64Encode = base64Encode(public key bytes || msg) returns base64Encode(ciphertextBytes)
func InitBurningRequestTx ¶
func InitPEDContributionMetadataFromParam ¶
func InitPEDContributionMetadataFromParam(metaDataParam map[string]interface{}) (*metadata.PDEContribution, error)
func InitPEDTradeRequestMetadataFromParam ¶
func InitPEDTradeRequestMetadataFromParam(metaDataParam map[string]interface{}) (*metadata.PDETradeRequest, error)
func InitPRVContributionTx ¶
func InitParamCreatePrivacyTokenTx ¶
func InitParamCreatePrivacyTokenTx(args string) (*transaction.TxPrivacyTokenInitParamsForASM, error)
func InitParamCreatePrivacyTx ¶
func InitParamCreatePrivacyTx(args string) (*transaction.TxPrivacyInitParamsForASM, error)
func InitWithdrawRewardTx ¶
func RandomScalars ¶
func ScalarMultBase ¶
func SignPoolWithdraw ¶
func VerifySign ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.