Documentation
¶
Index ¶
- Constants
- func CreateTx(amounts []int, data Data, ownersAfter []crypto.PublicKey, ...) (Data, error)
- func DefaultInputOwnerBefore(input Data) crypto.PublicKey
- func DefaultOutputOwnerAfter(output Data) crypto.PublicKey
- func DefaultTxConsume(tx Data) Data
- func DefaultTxOwnerAfter(tx Data, idx int) crypto.PublicKey
- func DefaultTxOwnerBefore(tx Data) crypto.PublicKey
- func FulfillTx(tx Data, fulfillments cc.Fulfillments) error
- func FulfilledTx(tx Data) (bool, error)
- func GenerateTx(amounts []int, asset Data, fulfills []Data, metadata Data, operation string, ...) (Data, error)
- func GetInputFulfills(input Data) Data
- func GetInputOwnerBefore(input Data, idx int) crypto.PublicKey
- func GetInputOwnersBefore(input Data) []crypto.PublicKey
- func GetOutputAmount(output Data) int
- func GetOutputCondition(output Data) Data
- func GetOutputOwnerAfter(output Data, idx int) crypto.PublicKey
- func GetOutputOwnersAfter(output Data) []crypto.PublicKey
- func GetTxAssetData(tx Data) Data
- func GetTxAssetId(tx Data) string
- func GetTxId(tx Data) string
- func GetTxInput(tx Data, idx int) Data
- func GetTxInputs(tx Data) []Data
- func GetTxOperation(tx Data) string
- func GetTxOutput(tx Data, idx int) Data
- func GetTxOutputs(tx Data) []Data
- func HttpGetFilter(fn func(string) (Data, error), pubkey crypto.PublicKey, unspent bool) ([]Data, error)
- func HttpGetOutputs(pubkey crypto.PublicKey, unspent bool) ([]string, []int, error)
- func HttpGetTransfers(assetId string) ([]Data, error)
- func HttpGetTx(id string) (Data, error)
- func HttpPostTx(tx Data) (string, error)
- func IndividualFulfillTx(tx Data, privkey crypto.PrivateKey) error
- func MultipleFulfillTx(tx Data, pubkeys []crypto.PublicKey, signatures []string) error
- func NewInput(fulfills Data, ownersBefore []crypto.PublicKey) Data
- func NewInputs(fulfills []Data, ownersBefore [][]crypto.PublicKey) ([]Data, error)
- func NewOutput(amount int, ownersAfter []crypto.PublicKey) (Data, error)
- func NewOutputs(amounts []int, ownersAfter [][]crypto.PublicKey) (_ []Data, err error)
- func NewTx(asset Data, inputs []Data, metadata Data, operation string, outputs []Data) Data
- func TransferTx(amounts []int, assetId, consumeId string, idx int, ...) (Data, error)
- func UnfulfillTx(tx Data) (_ cc.Fulfillments, err error)
Constants ¶
View Source
const ( CREATE = "CREATE" GENESIS = "GENSIS" TRANSFER = "TRANSFER" VERSION = "0.9" )
Variables ¶
This section is empty.
Functions ¶
func DefaultInputOwnerBefore ¶
func DefaultOutputOwnerAfter ¶
func DefaultTxConsume ¶
func DefaultTxConsume(tx Data) Data
func DefaultTxOwnerAfter ¶
func DefaultTxOwnerBefore ¶
func FulfillTx ¶
func FulfillTx(tx Data, fulfillments cc.Fulfillments) error
func FulfilledTx ¶
func GenerateTx ¶
func GetInputFulfills ¶
func GetInputFulfills(input Data) Data
func GetInputOwnerBefore ¶
func GetInputOwnersBefore ¶
func GetOutputAmount ¶
func GetOutputAmount(output Data) int
func GetOutputCondition ¶
func GetOutputCondition(output Data) Data
func GetOutputOwnerAfter ¶
func GetOutputOwnersAfter ¶
func GetTxAssetData ¶
func GetTxAssetData(tx Data) Data
func GetTxAssetId ¶
func GetTxAssetId(tx Data) string
func GetTxInput ¶
func GetTxInput(tx Data, idx int) Data
func GetTxInputs ¶
func GetTxInputs(tx Data) []Data
func GetTxOperation ¶
func GetTxOperation(tx Data) string
func GetTxOutput ¶
func GetTxOutput(tx Data, idx int) Data
func GetTxOutputs ¶
func GetTxOutputs(tx Data) []Data
func HttpGetFilter ¶
func HttpGetOutputs ¶
func HttpGetTransfers ¶
func HttpPostTx ¶
func IndividualFulfillTx ¶
func IndividualFulfillTx(tx Data, privkey crypto.PrivateKey) error
func MultipleFulfillTx ¶
func NewOutputs ¶
func NewTx ¶
func NewTx(asset Data, inputs []Data, metadata Data, operation string, outputs []Data) Data
func TransferTx ¶
func UnfulfillTx ¶
func UnfulfillTx(tx Data) (_ cc.Fulfillments, err error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.