Documentation
¶
Index ¶
- func AddressFromPrivateKey(privateKey string) string
- func Decode58(src string) []byte
- func Decode64(src string) []byte
- func Decrypt(encryptedText []byte, passwordHash [32]byte) []byte
- func DeriveHash(address string, nonce int64, txActionNumber int16) string
- func Encode58(src []byte) string
- func Encode64(src []byte) string
- func Encrypt(text []byte, passwordHash [32]byte) []byte
- func GenerateKeystore(mnemonic string, passwordHash [32]byte) []byte
- func GenerateMnemonic() string
- func GenerateSeedFromKeystore(keyStoreEncrypted []byte, passwordHash [32]byte) []byte
- func GenerateSeedFromMnemonic(mnemonic string, passphrase string) []byte
- func Hash(data []byte) string
- func IsValidBlockchainAddress(address string) bool
- func SignMessage(networkCode string, privateKey string, message string) string
- func SignPlainText(privateKey string, text string) string
- func VerifyPlainTextSignature(signature string, text string) string
- type AddKycProviderTxActionDto
- type ChangeKycControllerAddressTxActionDto
- type ConfigureValidatorTxActionDto
- type CreateAccountTxActionDto
- type CreateAssetEmissionTxActionDto
- type CreateAssetTxActionDto
- type DelegateStakeTxActionDto
- type RemoveKycProviderTxActionDto
- type RemoveValidatorTxActionDto
- type SetAccountControllerTxActionDto
- type SetAccountEligibilityTxActionDto
- type SetAssetCodeTxActionDto
- type SetAssetControllerTxActionDto
- type SetAssetEligibilityTxActionDto
- type SignedTx
- type SubmitVoteTxActionDto
- type SubmitVoteWeightTxActionDto
- type TransferAssetTxActionDto
- type TransferChxTxActionDto
- type Tx
- func (tx *Tx) AddAddKycProviderAction(assetHash string, providerAddress string)
- func (tx *Tx) AddChangeKycControllerAddressAction(accountHash string, assetHash string, kycControllerAddress string)
- func (tx *Tx) AddConfigureValidatorAction(networkAddress string, sharedRewardPercent float64, isEnabled bool)
- func (tx *Tx) AddCreateAccountAction() string
- func (tx *Tx) AddCreateAssetAction() string
- func (tx *Tx) AddCreateAssetEmissionAction(emissionAccountHash string, assetHash string, amount float64)
- func (tx *Tx) AddDelegateStakeAction(validatorAddress string, amount float64)
- func (tx *Tx) AddRemoveKycProviderAction(assetHash string, providerAddress string)
- func (tx *Tx) AddRemoveValidatorAction()
- func (tx *Tx) AddSetAccountControllerAction(accountHash string, controllerAddress string)
- func (tx *Tx) AddSetAccountEligibilityAction(accountHash string, assetHash string, isPrimaryEligible bool, ...)
- func (tx *Tx) AddSetAssetCodeAction(assetHash string, assetCode string)
- func (tx *Tx) AddSetAssetControllerAction(assetHash string, controllerAddress string)
- func (tx *Tx) AddSetAssetEligibilityAction(assetHash string, isEligibilityRequired bool)
- func (tx *Tx) AddSubmitVoteAction(accountHash string, assetHash string, resolutionHash string, voteHash string)
- func (tx *Tx) AddSubmitVoteWeightAction(accountHash string, assetHash string, resolutionHash string, ...)
- func (tx *Tx) AddTransferAssetAction(fromAccountHash string, toAccountHash string, assetHash string, amount float64)
- func (tx *Tx) AddTransferChxAction(recipientAddress string, amount float64)
- func (tx *Tx) Sign(networkCode string, privateKey string) *SignedTx
- func (tx *Tx) ToJson(indentation bool) string
- type TxAction
- type WalletInfo
- func GenerateWallet() *WalletInfo
- func GenerateWalletFromKeystore(keyStoreEncrypted []byte, passwordHash [32]byte, keyIndex uint32) *WalletInfo
- func GenerateWalletFromSeed(seed []byte, keyIndex uint32) *WalletInfo
- func RestoreWalletsFromKeystore(keyStoreEncrypted []byte, passwordHash [32]byte, walletCount uint32) [](*WalletInfo)
- func RestoreWalletsFromSeed(seed []byte, walletCount uint32) [](*WalletInfo)
- func WalletFromPrivateKey(privateKey string) *WalletInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddressFromPrivateKey ¶
func GenerateKeystore ¶
func GenerateMnemonic ¶
func GenerateMnemonic() string
func SignPlainText ¶
Types ¶
type CreateAccountTxActionDto ¶
type CreateAccountTxActionDto struct{}
type CreateAssetTxActionDto ¶
type CreateAssetTxActionDto struct{}
type RemoveValidatorTxActionDto ¶
type RemoveValidatorTxActionDto struct{}
type SetAssetCodeTxActionDto ¶
type SubmitVoteTxActionDto ¶
type TransferChxTxActionDto ¶
type Tx ¶
type Tx struct {
SenderAddress string `json:"senderAddress"`
Nonce int64 `json:"nonce"`
ExpirationTime int64 `json:"expirationTime"`
ActionFee float64 `json:"actionFee"`
Actions []TxAction `json:"actions"`
}
func (*Tx) AddAddKycProviderAction ¶
func (*Tx) AddChangeKycControllerAddressAction ¶
func (*Tx) AddConfigureValidatorAction ¶
func (*Tx) AddCreateAccountAction ¶
func (*Tx) AddCreateAssetAction ¶
func (*Tx) AddCreateAssetEmissionAction ¶
func (*Tx) AddDelegateStakeAction ¶
func (*Tx) AddRemoveKycProviderAction ¶
func (*Tx) AddRemoveValidatorAction ¶
func (tx *Tx) AddRemoveValidatorAction()
func (*Tx) AddSetAccountControllerAction ¶
func (*Tx) AddSetAccountEligibilityAction ¶
func (*Tx) AddSetAssetCodeAction ¶
func (*Tx) AddSetAssetControllerAction ¶
func (*Tx) AddSetAssetEligibilityAction ¶
func (*Tx) AddSubmitVoteAction ¶
func (*Tx) AddSubmitVoteWeightAction ¶
func (*Tx) AddTransferAssetAction ¶
func (*Tx) AddTransferChxAction ¶
type TxAction ¶
type TxAction struct {
ActionType string `json:"actionType"`
ActionData interface{} `json:"actionData"`
}
type WalletInfo ¶
func GenerateWallet ¶
func GenerateWallet() *WalletInfo
func GenerateWalletFromKeystore ¶
func GenerateWalletFromKeystore(keyStoreEncrypted []byte, passwordHash [32]byte, keyIndex uint32) *WalletInfo
func GenerateWalletFromSeed ¶
func GenerateWalletFromSeed(seed []byte, keyIndex uint32) *WalletInfo
func RestoreWalletsFromKeystore ¶
func RestoreWalletsFromKeystore(keyStoreEncrypted []byte, passwordHash [32]byte, walletCount uint32) [](*WalletInfo)
func RestoreWalletsFromSeed ¶
func RestoreWalletsFromSeed(seed []byte, walletCount uint32) [](*WalletInfo)
func WalletFromPrivateKey ¶
func WalletFromPrivateKey(privateKey string) *WalletInfo
Click to show internal directories.
Click to hide internal directories.