input

package
v0.78.5-pre Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package input provides functions dealing with transaction inputs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHash

func GetHash(in Input) []byte

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.

func GetIndex

func GetIndex(in Input) int

GetIndex returns the index stored in the given input (which is a transaction's output number). It uses `Neo.Input.GetIndex` syscall.

Types

type Input

type Input struct{}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL