mvc

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PkScriptToAddres2 added in v1.0.3

func PkScriptToAddres2(net *chaincfg2.Params, pkScript string) (string, error)

func PkScriptToAddress added in v1.0.3

func PkScriptToAddress(net *chaincfg.Params, pkScript string) (string, error)

Types

type MVCParser

type MVCParser struct {
	// contains filtered or unexported fields
}

MVCParser is the MVC chain parser

func NewMVCParser

func NewMVCParser(config *decoder.ParserConfig) *MVCParser

NewMVCParser creates an MVC parser

func (*MVCParser) GetChainName

func (p *MVCParser) GetChainName() string

GetChainName returns the chain name

func (*MVCParser) ParseTransaction

func (p *MVCParser) ParseTransaction(txBytes []byte, chainParams interface{}) ([]*decoder.Pin, error)

ParseTransaction parses an MVC transaction

type RawTransaction

type RawTransaction struct {
	TxID     string
	Version  []byte
	Vins     []TxIn
	Vouts    []TxOut
	LockTime []byte
	// contains filtered or unexported fields
}

RawTransaction is the MVC raw transaction structure

type TxIn

type TxIn struct {
	TxID []byte
	Vout []byte
	// contains filtered or unexported fields
}

TxIn represents a transaction input

type TxOut

type TxOut struct {
	// contains filtered or unexported fields
}

TxOut represents a transaction output

Jump to

Keyboard shortcuts

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