Versions in this module Expand all Collapse all v0 v0.0.26 Apr 17, 2020 Changes in this version + type UploadAccessControlLevel uint8 + const Priv_RestrictedGroup + const Priv_UploaderOnly + const Public type UploadParams + AccessControlLevel UploadAccessControlLevel v0.0.25 Apr 6, 2020 v0.0.24 Apr 6, 2020 v0.0.23 Apr 4, 2020 v0.0.22 Apr 4, 2020 v0.0.21 Apr 4, 2020 v0.0.20 Apr 3, 2020 v0.0.19 Apr 3, 2020 v0.0.18 Apr 3, 2020 v0.0.17 Apr 3, 2020 v0.0.16 Apr 3, 2020 v0.0.15 Apr 2, 2020 Changes in this version + func BCAddressToEthAddress(address string) [20]byte + func ECRecoverFromTx(data GetTxByHashResult) (retKey [64]byte, err error) + func EthAddressToBCAddress(address [20]byte) string + func GetBalance(ethAddress [20]byte) (big.Int, error) + func GetEarnings(ethAddress [20]byte) (big.Int, error) + func GetNodeID2Address(nodeID [32]byte) ([20]byte, error) + func GetPublickeyFromContract(username string, timeout time.Duration) (pubkey [64]byte, err error) + func GetRegisteredSP(ethAddress [20]byte) (sp *RegisteredSp, err error) + func GetUsernameFromContract(address [20]byte) (username [32]byte, err error) + func IsTxAcceptedByBlockchain(txid string) (bool, error) + func ProposeUpload(params *UploadParams) (txid string, err error) + func RegisterUsername(params *RegisterUsernameParams) (txid string, err error) + func Unpack(methodName string, input []byte) (inter interface{}, err error) + type GetTxByHashResult struct + BlockHash string + BlockNumber string + From string + Gas string + GasPrice string + Hash string + Input string + Nonce string + R string + S string + To string + TransactionIndex string + V string + Value string + type InputDeconstruct struct + ArchonSPs [][20]byte + ContainerSignature [ethcrypto.SignatureLength]byte + HashedArchonFilepath [32]byte + Params encodings.ProposeUploadParams + Shardsize uint64 + type ProposeUploadArgs struct + ArchonSPs [][20]byte + ContainerSignatureR [32]byte + ContainerSignatureS [32]byte + HashedArchonFilepath [32]byte + Params [32]byte + Shardsize uint64 + type RegisterUsernameParams struct + Username string + Wallet wallet.EthereumKeyset + type TxLog rpc_utils.TxLog + type TxLogs rpc_utils.TxLogs + func GetTxLogs(txid string) (TxLogs, error) + type TxReceipt rpc_utils.TxReceipt + type UploadParams struct + ArchonFilepath string + CompressionType uint8 + ContainerSignature [ethcrypto.SignatureLength]byte + CustomField uint8 + EncryptionType uint8 + ErasureCodeType uint8 + FileContainerType uint8 + Filesize uint64 + MinSLARequirements int + SPsToUploadTo [][20]byte + ServiceDuration uint32 + ShardContainerType uint8 + Shardsize uint64 + UploadPmt uint64 + Wallet wallet.EthereumKeyset + type UploadTx struct + AmountPaid string + BlockHash string + BlockNumber string + From string + Gas string + GasPrice string + Hash string + Input string + InputDeconstructed InputDeconstruct + Nonce string + PublicKey [64]byte + R string + S string + To string + TransactionIndex string + UsernameCompressed [32]byte + V string + func GetUploadTx(txHash [32]byte) (uploadTx UploadTx, err error)