2020-05-18 11:37:38 +00:00
|
|
|
/*
|
|
|
|
Package input provides functions dealing with transaction inputs.
|
|
|
|
*/
|
2018-08-21 10:57:48 +00:00
|
|
|
package input
|
|
|
|
|
2020-05-18 11:37:38 +00:00
|
|
|
// Input is an opaque data structure that can only be created by
|
|
|
|
// transaction.GetInputs and it represents transaction's input. It's similar
|
|
|
|
// to Neo .net framework's TransactionInput.
|
2018-08-21 10:57:48 +00:00
|
|
|
type Input struct{}
|
|
|
|
|
2020-05-18 11:37:38 +00:00
|
|
|
// GetHash returns the hash stored in the given input (which also is a
|
|
|
|
// transaction ID represented as 32 byte slice containing 256 bit BE value).
|
|
|
|
// It uses `Neo.Input.GetHash` syscall.
|
2018-08-21 10:57:48 +00:00
|
|
|
func GetHash(in Input) []byte {
|
|
|
|
return nil
|
|
|
|
}
|
|
|
|
|
2020-05-18 11:37:38 +00:00
|
|
|
// GetIndex returns the index stored in the given input (which is a
|
|
|
|
// transaction's output number). It uses `Neo.Input.GetIndex` syscall.
|
2018-08-21 10:57:48 +00:00
|
|
|
func GetIndex(in Input) int {
|
|
|
|
return 0
|
|
|
|
}
|