Documentation
¶
Index ¶
- Variables
- func GenerateAddress(mnemonic string, external, internal int) string
- func NewAccount() string
- func PrepareInvocationTransactionAndSign(operation string, transInJson []byte, scriptInJson []byte, keysJsonData []byte, ...) string
- func PrepareTransactionAndSign(transType int, transInJson []byte, keysJsonData []byte, mnemonic string) string
- func SendTransaction(url string, transactionData string) bool
- func StringToFixed8(s string) string
- type Keys
- type WrapperContractTransaction
Constants ¶
This section is empty.
Variables ¶
View Source
var Coin *neo.Coin
This class could be cleaned up, there is not really a standard for gomobile sdk's
View Source
var Contract ct.ContractTransaction
Functions ¶
func GenerateAddress ¶
func NewAccount ¶
func NewAccount() string
func PrepareInvocationTransactionAndSign ¶
func PrepareInvocationTransactionAndSign(operation string, transInJson []byte, scriptInJson []byte, keysJsonData []byte, mnemonic string) string
Due to the script having any type and Swift not allowing me to encode a type of any. We will have seperate function for invocation Ideally would want a better solution
func PrepareTransactionAndSign ¶
func PrepareTransactionAndSign(transType int, transInJson []byte, keysJsonData []byte, mnemonic string) string
Prepare refers to converting it from a json to a golang struct
func SendTransaction ¶
func StringToFixed8 ¶
Types ¶
type WrapperContractTransaction ¶
type WrapperContractTransaction struct { Inputs []struct { External int `json:"External"` PrevHash string `json:"PrevHash"` Address string `json:"Address"` Vout int `json:"vout"` Internal int `json:"Internal"` } `json:"Inputs"` Outputs []struct { Address string `json:"Address"` Value int64 `json:"Value"` AssetID string `json:"AssetID"` } `json:"Outputs"` Attributes []struct { Usage uint16 `json:"Usage"` Data []byte `json:"Data"` } `json:"Attributes"` Version int `json:"Version"` TransactionType int `json:"TransactionType"` }
Directories
¶
Path | Synopsis |
---|---|
Transactions
General components of a transaction in neo
|
General components of a transaction in neo |
Utils
|
|
Uint256
Taken from anthdm, code modified to integrate with current infrastructure.
|
Taken from anthdm, code modified to integrate with current infrastructure. |
Signing/rfc6979
Package rfc6979 is an implementation of RFC 6979's deterministic DSA.
|
Package rfc6979 is an implementation of RFC 6979's deterministic DSA. |
Click to show internal directories.
Click to hide internal directories.